# http://askubuntu.com/a/243059
apt-get install aptitude ubuntu-minimal
aptitude markauto '~i!~nubuntu-minimal'
aptitude install ssh
# https://linuxprograms.wordpress.com/2010/05/12/remove-packages-marked-rc/
dpkg -l | grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge
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
{ | |
"editor.fontFamily": "SFMono-Light, Menlo, Monaco, 'Courier New', monospace", | |
"editor.minimap.enabled": false, | |
"editor.renderControlCharacters": true, | |
"editor.rulers": [79, 119], | |
"workbench.statusBar.visible": true, | |
"workbench.activityBar.visible": false, | |
"workbench.startupEditor": "newUntitledFile", | |
"workbench.colorTheme": "Nord", |
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
version: '2' | |
services: | |
web: | |
image: nginx:alpine | |
ports: | |
- "8080:80" | |
volumes: | |
- ./htdocs:/var/www/htdocs | |
- ./nginx/nginx.conf:/etc/nginx/conf.d/site.conf | |
links: |
- install xcode
$ sudo xcodebuild -license
$ sudo gem install --no-rdoc --no-ri homesick
$ homesick clone dabio/dotfiles
$ homesick symlink dotfiles
$ vim +PluginInstall +qall
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ sudo chown -R dan:staff /usr/local
I hereby claim:
- I am dabio on github.
- I am dabio (https://keybase.io/dabio) on keybase.
- I have a public key whose fingerprint is F140 D335 981E 7AE2 8357 49A8 5B1E E898 A4C2 D9D3
To claim this, I am signing this object:
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
- (void)removeOldDatabase | |
{ | |
if (![[[NSUserDefaults standardUserDefaults] objectForKey:@"parku-3.0.0"] boolValue]) { | |
NSURL *storeURL = [NSPersistentStore MR_defaultLocalStoreUrl]; | |
NSError *error; | |
[[NSFileManager defaultManager] removeItemAtPath:storeURL.path error:&error]; | |
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"parku-3.0.0"]; | |
} | |
} |
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
mogrify -filter spline -adaptive-resize 1600x -unsharp 0x1 *.JPG | |
mogrify -filter spline -resize 616x -unsharp 0x1 -path thumbs *.JPG | |
for files in *.JPG | |
do | |
mv "$files" "${files%.JPG}.jpg" | |
done |
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
package solr | |
import ( | |
"encoding/xml" | |
) | |
type SolrResponse struct { | |
Results SolrResults `xml:"result"` | |
} |
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
mysql -Nse 'SHOW TABLES' [database] | while read table; do mysql -e "TRUNCATE TABLE $table;" [database]; done |
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
mysql -Nse 'SHOW TABLES' [database] | while read table; do mysql -e "DROP TABLE $table;" [database]; done |