This file contains hidden or 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/bash | |
| #apt-get update | |
| apt-get install pptpd -y --force-yes | |
| echo localip 192.168.240.1 >> /etc/pptpd.conf | |
| echo remoteip 192.168.240.2-200 >> /etc/pptpd.conf | |
| echo ms-dns 8.8.8.8 >> /etc/ppp/pptpd-options | |
| echo ms-dns 8.8.4.4 >> /etc/ppp/pptpd-options | |
| echo "lex pptpd lexrusontwitter *" | tee -a /etc/ppp/chap-secrets | |
| /etc/init.d/pptpd restart |
This file contains hidden or 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
| # | |
| # Uncrustify Configuration File | |
| # File Created With UncrustifyX 0.4.3 (252) | |
| # | |
| # Alignment | |
| # --------- | |
| ## Alignment |
This file contains hidden or 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
| [program:cow] | |
| command=/usr/local/bin/cow -err=true -rc="/root/.cow/rc" | |
| numprocs=1 | |
| directory=/root/.cow | |
| autostart=true | |
| autorestart=unexpected | |
| startsecs=2 | |
| startretries=3 | |
| stdout_logfile=/var/log/cow.log | |
| stdout_logfile_maxbytes=2MB |
This file contains hidden or 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
| $.post(profileDataURL, function(d){d.provisioningProfiles.map(function(o){console.log('https://developer.apple.com/account/ios/profile/profileEdit.action?type=&provisioningProfileId='+o.provisioningProfileId)})}); |
This file contains hidden or 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/bash | |
| find . -name '*.DS_Store' -type f -delete; | |
| find . -name 'Thumbs.db' -type f -delete; | |
| find . -name '*.swp' -type f -delete; | |
| find . -name '*.AppleDouble' -exec rm -rf {} \; | |
| find . -name ".AppleDouble" -print0 | xargs -0 rm -rf; | |
| find . -name ".TemporaryItems" -print0 | xargs -0 rm -rf; | |
| find . -name ".Trashes" -print0 | xargs -0 rm -rf; | |
| find . -name ".afpdeleted*" -print0 | xargs -0 rm -rf; |
This file contains hidden or 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
| NEW_VER="0.33.1" | |
| POD_VER=`pod --version 2>/dev/null`|| POD_VER=`~/.rbenv/shims/pod --version 2>/dev/null` | |
| if [[ "$POD_VER" != *$NEW_VER ]]; then | |
| echo "error: WTF! You MUST upgrade cocoapods!!!" | |
| exit 1 | |
| fi |
This file contains hidden or 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
| [program:chinadns] | |
| command=/usr/local/bin/chinadns | |
| numprocs=1 | |
| autostart=true | |
| autorestart=unexpected | |
| startsecs=2 | |
| startretries=3 | |
| stdout_logfile=/var/log/chinadns.log | |
| stdout_logfile_maxbytes=2MB | |
| stderr_logfile=/var/log/chinadns.error.log |
This file contains hidden or 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
| # opening and closing windows and popovers | |
| defaults write -g NSAutomaticWindowAnimationsEnabled -bool false | |
| # smooth scrolling | |
| defaults write -g NSScrollAnimationEnabled -bool false | |
| # showing and hiding sheets, resizing preference windows, zooming windows | |
| # float 0 doesn't work | |
| defaults write -g NSWindowResizeTime -float 0.001 |
This file contains hidden or 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
| // | |
| // LTLog.h | |
| // | |
| // Created by Lex on 6/29/14. | |
| // Copyright (c) 2014 LexTang.com. All rights reserved. | |
| // https://gist.github.com/lexrus/8c6414e7c0177e9e66ea | |
| // | |
| #import <Foundation/Foundation.h> |