This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxH+9GYhS8qlhTcdlJuWkS38IKHbVuxsbcFHKSOaI9IbauvEkTfcR9DaAZrhFLDeDifSi9cy6IpzjZL30n1MkV9tN6i2TJ/OvhZPaJtNpKTFNyTLo/jY/NxRle/24LjSm4BnMmb1iijDpL91mi/EjkeccwO8LnWm/wMoRTJKimQSWTknhGmewDMRLXsmaCHOofQRLyOow0+xBGVjlDrO3Qp3r/CgD27ZgkkR/o/b52kxp8/N7EBCknV8Ytrw72IPlVZtlsjOBdkL5taXmhdBhOARBl1fWzUmm89ikITlwctpohDocnj/Qe/hYmh6p/gbgl/av5TwBfbx5KTsbKnTmNQ== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# smbclient -L 10.0.1.1 | |
mounttc () | |
{ | |
sudo echo -n; | |
if [[ -z $1 ]]; then | |
SERVER="10.0.1.1"; | |
else | |
SERVER="$1"; | |
fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIIGLTCCBBWgAwIBAgIJAMHi/0z+LKQcMA0GCSqGSIb3DQEBDQUAMGwxCzAJBgNV | |
BAYTAkFVMQwwCgYDVQQIEwNOU1cxFjAUBgNVBAoTDURvbmdzaGVuZyBDYWkxFjAU | |
BgNVBAMTDWRvbmdzaGVuZy5vcmcxHzAdBgkqhkiG9w0BCQEWEGhpQGRvbmdzaGVu | |
Zy5vcmcwHhcNMTQxMDIyMDUwNDI1WhcNMjQxMDE5MDUwNDI1WjBsMQswCQYDVQQG | |
EwJBVTEMMAoGA1UECBMDTlNXMRYwFAYDVQQKEw1Eb25nc2hlbmcgQ2FpMRYwFAYD | |
VQQDEw1kb25nc2hlbmcub3JnMR8wHQYJKoZIhvcNAQkBFhBoaUBkb25nc2hlbmcu | |
b3JnMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA7rHCBJbrQXnf5fgP | |
lEdOKG2DamPRdCzeSJH75uERxpVD8J+9vz8g+RJJtU50uotKbn1JzFXKiyxbgFyA | |
WC5fNuIHSil6LoXMqu+RycUT1snyx4Uv/Bj1kCaHFl8RYvzK0wK5aRKdR0vqK1jE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First, get you id_rsa.pub onto the server as /tmp/YourName.pub | |
scp ~/ssh/id_rsa.pub you@git.you.com:/tmp/dongsheng.pub | |
# Then, as root: | |
cd $HOME | |
yaourt -S gitolite-git | |
su git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name '*.part01.rar' -exec unrar -y x {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static UIImage *shrinkImage(UIImage *original, CGSize size) { | |
CGFloat scale = [UIScreen mainScreen].scale; | |
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); | |
CGContextRef context = CGBitmapContextCreate(NULL, size.width * scale, | |
size.height * scale, 8, 0, colorSpace, kCGImageAlphaPremultipliedFirst); | |
CGContextDrawImage(context, | |
CGRectMake(0, 0, size.width * scale, size.height * scale), | |
original.CGImage); | |
CGImageRef shrunken = CGBitmapContextCreateImage(context); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'./configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/private/etc' '--with-config-file-path=/etc' '--with-libxml-dir=/usr' '--with-openssl=/usr' '--with-kerberos=/usr' '--with-zlib=/usr' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--with-curl=/usr' '--enable-dba' '--with-ndbm=/usr' '--enable-exif' '--enable-ftp' '--with-gd' '--with-freetype-dir=/usr/X11/' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/X11/' '--enable-gd-native-ttf' '--with-icu-dir=/usr' '--with-iodbc=/usr' '--with-ldap=/usr' '--with-ldap-sasl=/usr' '--with-libedit=/usr' '--enable-mbstring' '--enable-mbregex' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--without-pear' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/mysql/mysql.sock' '--with-readline=/usr' '--enable-shmop' '--with-snmp=/usr' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-tidy' '--enable-wddx' '--with-xmlrpc' '--with-iconv-dir=/usr' '--with-xsl=/usr' '--enabl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'./configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/private/etc' '--with-config-file-path=/etc' '--with-libxml-dir=/usr' '--with-openssl=/usr' '--with-kerberos=/usr' '--with-zlib=/usr' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--with-curl=/usr' '--enable-dba' '--with-ndbm=/usr' '--enable-exif' '--enable-ftp' '--with-gd' '--with-freetype-dir=/usr/X11' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/X11' '--enable-gd-native-ttf' '--with-iodbc=/usr' '--with-ldap=/usr' '--with-ldap-sasl=/usr' '--with-libedit=/usr' '--enable-mbstring' '--enable-mbregex' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/mysql/mysql.sock' '--with-readline=/usr' '--enable-shmop' '--with-snmp=/usr' '--enable-soap' '--enable-sockets' '--enable-sqlite-utf8' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-tidy' '--enable-wddx' '--with-xmlrpc' '--with-iconv-dir=/usr' '--with-xsl=/usr' '--enable-zend-multibyte' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2010-10-02 14h00 | |
# Update created field in user_prefs table | |
def migrate(db): | |
with db.select('user_id, created', from_='users'): | |
all_users = db.fetchall() | |
for user in all_users: | |
with db.update('user_prefs') as obj: | |
obj.created = user['created'] | |
db.where('user_id = %s', user['user_id']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo asr restore -source /Volumes/saturn/Software/InstallESD.dmg -target /Volumes/InstallOSX/ -erase -noverify --noprompt |
OlderNewer