The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
SELECT x.id, | |
x.position, | |
x.title, | |
x.created_at | |
FROM (SELECT t.id, | |
t.title, | |
t.created_at, | |
@rownum := @rownum + 1 AS position | |
FROM posts t | |
JOIN (SELECT @rownum := 0) r |
# remove | |
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist | |
# restore | |
/usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist |
<!DOCTYPE HTML> | |
<html> | |
<head><title>Quick Upload for PHP by Babar</title></head> | |
<body> | |
<h1>Quick Upload for PHP by <a href="http://www.babar.im">Babar</a></h1> | |
<?php | |
if(isset($_FILES['userfile'][)) { | |
$uploaddir = dirname(__FILE__) . '/'; |
phpscript: "|php -q /usr/local/bin/email.php" |
<?php | |
function increment($reset = false, $l = 0) { | |
static $i; | |
if($reset) $i = $l; | |
else return ++$i; | |
return $reset; | |
} |
Afghanistan | AF | |
---|---|---|
Albania | AL | |
Algeria | DZ | |
American Samoa | AS | |
Andorra | AD | |
Angola | AO | |
Anguilla | AI | |
Antarctica | AQ | |
Antigua and Barbuda | AG | |
Argentina | AR |
.awesome-bar, .page_aside.article_aside, .main-header, .page_banner, .contributor, .article_meta-data, .article_header__buttons, footer, #disqus_thread, .promo-panel, .related-content, .article__author-bios {display:none;} | |
.page, .page--primary .page_content > .article {width: 900px} | |
body {font-family: "Lucida Grande";} |
#!/bin/sh | |
for db in $(mysql -u root -pROOTPASS -e 'show databases' -s --skip-column-names); | |
do | |
mysqldump -u root -pROOTPASS $db > $db-$(hostname)-$(date +%F-%s).sql | |
done |
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: dropbox | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# X-Interactive: false | |
# Short-Description: Control the Dropbox daemon. |