Geht nicht; no_proxy
wird komplett ignoriert:
1 |
export no_proxy=127.0.0.1,localhost,*.crusy.net |
Geht:
1 |
export no_proxy=127.0.0.1,localhost,crusy.net |
Wildcards machen den Unterschied ¯\_(ツ)_/¯
Geht nicht; no_proxy
wird komplett ignoriert:
1 |
export no_proxy=127.0.0.1,localhost,*.crusy.net |
Geht:
1 |
export no_proxy=127.0.0.1,localhost,crusy.net |
Wildcards machen den Unterschied ¯\_(ツ)_/¯
Der Prozess isectpd
ist der Scanner von Mcafee, fyi. Und wenn der viel Last erzeugt (er gehört root
, deshalb habe ich ihn erst via htop
gesehen), dann lohnt ein Blick in die konfigurierten Tasks:
1 |
$ sudo /opt/isec/ens/threatprevention/bin/isecav --listtasks |
Tasks können analog gestoppt werden:
1 |
$ sudo /opt/isec/ens/threatprevention/bin/isecav --stoptask --index 2 |
Löschen ist hier allerdings nicht möglich:
1 2 |
$ sudo /opt/isec/ens/threatprevention/bin/isecav --deltask --index 2 Cannot delete Default/ePO task from CLI. |
1 2 3 |
curl http://v2.wttr.in curl http://v2.wttr.in/Ratzeburg curl http://v2.wttr.in/{Ratzeburg,Lübeck}?format="%l:+%c+%t+%p+%w+%m" |
😍 via, auch konfigurierbar (siehe eingangs), auch im Web (natürlich), und auch gut als bash-Alias.
Auch sehr schön: WTF Util
WTF is a personal information dashboard for your terminal, developed for those who spend most of their day in the command line. […] Keep an eye on your OpsGenie schedules, Google Calendar, Git and GitHub repositories, and New Relic deployments. See who’s away in BambooHR, which Jira tickets are assigned to you, and what time it is in Barcelona. It even has weather. And clocks. And emoji.
Danke, Martin!
Hier: Über alle angeschlossenen Geräte
1 2 3 4 5 6 7 8 9 |
#!/usr/bin/env bash input="$(idevice_id --list)" IFS=$'\n' read -rd '' -a deviceIds <<<"$input" for deviceId in "${deviceIds[@]}" do echo "device id: ${deviceId}" done |
SVN Repository Directory finden (Spoiler: Auf einem Synology NAS ist es unter /volume1/svn/):
1 |
$ find / -name 'svnserve.conf' |
Bsplw. so:
1 |
$ /usr/lib/jvm/jdk1.8.0_73/bin/ControlPanel |
Wer nicht sicher ist, wo seine Java-Installation liegt:
1 |
$ dpkg -L openjdk-8-jre |
listet alle vom JDK installierten Dateien auf.
Ich will es nicht immer googlen müssen:
1 |
git reset --soft HEAD~1 |
Eingehenden Port blocken:
1 |
sudo ipfw add 1 deny tcp from any to any 80 in |
Alle definierten Regeln anzeigen:
1 |
sudo ipfw list |
Alle definierten Regeln löschen:
1 |
sudo ipfw -f flush |
Wer weiß, wie man nur bestimmte Regeln löscht?
PHP auf eine andere Version (bsplw. die des MAMP) umbiegen (in der .bash_profile):
1 2 3 4 |
# Mamp Pro 3: alias php='php -c /Library/Application\ Support/appsolute/MAMP\ PRO/conf/php.ini' # Mamp 2: alias php="/Applications/MAMP/bin/php/php5.5.10/bin/php" |
Wo liegt die php.ini?
1 |
$ php --ini | grep "Loaded Configuration File" |
Wo liegt das Verzeichnis für Erweiterungen?
1 |
cat /path/to/php/conf/php.ini | grep extension_dir |
Alle geladenen Module:
1 |
php -m |
Ist ImageMagick verfügbar?
1 |
php -r "print(class_exists('imagick'));" |
To be completed!