Skip to content

Instantly share code, notes, and snippets.

View zackn9ne's full-sized avatar

zackn9ne zackn9ne

  • earth, New York
View GitHub Profile
@zackn9ne
zackn9ne / com.zackn9ne.offlineimap.plist
Created September 18, 2015 15:05
launchctl offlineimap daemon
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.grantlucas.offlineimap.plist</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/offlineimap</string>
<string>-u</string>
<?php
$aliases['wadmiraal_drupal'] = array(
'root' => '/var/www',
'remote-user' => 'root',
'remote-host' => 'localhost',
'ssh-options' => '-p 8022', // Or any other port you specified for the SSH server.
);
@zackn9ne
zackn9ne / colloquy_check_spelling.scpt
Created March 5, 2016 01:23
Turn on the wavy red lines in OSX (10.11.3) Colloquy when you spell something wrong.
activate application "Colloquy"
tell application "System Events"
tell process "Colloquy"
delay 12.5
keystroke "j" using command down
delay 0.5
keystroke "colloquy"
keystroke return
delay 5.5
@zackn9ne
zackn9ne / Pie_favs_api.sh
Created May 1, 2016 20:06
LinkiePie API Shell Script
#!/bin/bash
URL="$1"
USERNAME=YOUR_USERNAME
API_KEY=YOUR_KEY
curl -k -H "Content-Type: application/json" -X POST --data "{\"url\": \"${URL}\"}" "https://linkiepie.com/api/v1/links/?username=${USERNAME}&api_key=${API_KEY}"
@zackn9ne
zackn9ne / save_to_instapaper.sh
Created May 6, 2016 05:30
zackn9ne's save to instapaper shellscript
#!/bin/bash
source ~/.crudentials; #for USERNAME="" && PASS=""
URL="$1"
curl -u ${USERNAME}:${PASS} -X POST --data url="${URL}" https://www.instapaper.com/api/add
@zackn9ne
zackn9ne / bckup.sh
Created July 24, 2016 22:44
~/Pictures rsync shellscript
#!/bin/bash
comboname="photod_$USER"
echo your path will be $comboname
passprt=~/passprt
fullname="$passprt/$comboname"
echo "$fullname"
if [ ! -L "$passprt" ]; then
echo no symlink, making it...
#!/bin/bash
comboname="photod_$USER"
echo your path will be $comboname
passprt=~/passprt
fullname="$passprt/$comboname"
echo "$fullname"
if [ ! -L "$passprt" ]; then
echo no symlink, making it...

“`

ControllerPluralrails g controller Users index show
HelperPluralrails g helper Users
MailerSingularrails g mailer UserMailer
MigrationPluralrails g migration AddEmailToUsers email:string
ModelSingularrails g model User name:string

“`

ControllerPluralrails g controller Users index show
HelperPluralrails g helper Users
MailerSingularrails g mailer UserMailer
MigrationPluralrails g migration AddEmailToUsers email:string
ModelSingularrails g model User name:string

Rails Cheatsheet Singular or Plural

ControllerPluralrails g controller Users index show
HelperPluralrails g helper Users
MailerSingularrails g mailer UserMailer
MigrationPluralrails g migration AddEmailToUsers email:string
ModelSingularrails g model User name:string