Open source.list
in your favorite text editor:
$ sudo nano /etc/apt/sources.list
Append this line and save changes:
deb http://download.virtualbox.org/virtualbox/debian precise contrib
Open source.list
in your favorite text editor:
$ sudo nano /etc/apt/sources.list
Append this line and save changes:
deb http://download.virtualbox.org/virtualbox/debian precise contrib
#!/bin/sh | |
for file in $(grep -il "^OnlyShowIn=MATE;$" /usr/share/applications/*.desktop); do | |
echo "patching $file" | |
sed -e "s/OnlyShowIn=MATE;/#OnlyShowIn=MATE;/ig" $file > /tmp/tempfile.tmp | |
mv -f /tmp/tempfile.tmp $file | |
done |
<?php | |
/** | |
* Get version in which SWF file is compiled | |
* @param string $file_path Path to SWF file | |
* @return int Version number (or -1 on error) | |
*/ | |
function swf_version($file_path){ | |
$ret = -1; | |
$fh = @fopen($file_path, "r"); |
<?php | |
$zmqc = new ZMQContext(); | |
$sub = $zmqc->getSocket(ZMQ::SOCKET_SUB); | |
$sub->connect("tcp://IP:PORT"); | |
$sub->setSockOpt(ZMQ::SOCKOPT_SUBSCRIBE, ""); | |
var_dump($sub->recvMulti()); |
apt-add-repository ppa:pitti/postgresql | |
apt-get update && apt-get upgrade |
sudo dpkg-reconfigure wireshark-common | |
# Select yes | |
sudo chmod +x /usr/bin/dumpcap |
<?php | |
$pid = shell_exec("nohup /command/running/in/background > /dev/null 2> /dev/null & echo $!"); |
echo "DELETE FROM item WHERE item_pid IN (SELECT item_pid FROM item_extra WHERE file_size = 0); | |
DELETE FROM item_search WHERE item_pid IN (SELECT item_pid FROM item_extra WHERE file_size = 0); | |
DELETE FROM item_stats WHERE item_pid IN (SELECT item_pid FROM item_extra WHERE file_size = 0); | |
DELETE FROM item_extra WHERE file_size = 0;" | sqlite3 /var/mobile/Media/iTunes_Control/iTunes/MediaLibrary.sqlitedb |
/var/log/path/to/nginx/*_log { | |
daily | |
missingok | |
rotate 20 | |
compress | |
delaycompress | |
notifempty | |
sharedscripts | |
postrotate | |
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid` |
Create AppleScript:
do shell script "/usr/local/bin/wget http://localhost:8800/play --spider"
Save as Application. In Applications folder find Info.plist and add these lines, so Application will not show in Dock:
NSUIElement