Skip to content

Instantly share code, notes, and snippets.

View faddah's full-sized avatar

Faddah Wolf faddah

View GitHub Profile
@faddah
faddah / index.html
Created October 21, 2016 05:56
React-Calc
<div id="calc-app" class="loading">Loading</div>
<div class="clear"></div>
@faddah
faddah / Capfile
Last active October 5, 2016 00:37
Capfile for deploying a WordPress install
# TODO: Cap db:push should support rollback or backup in some way
# TODO: Better handling of database creation - perhaps make the deploy user a database admin?
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy.rb'
require 'capistrano/ext/multistage'
namespace :deploy do
@faddah
faddah / deploy.rb
Created October 5, 2016 00:19
Capistrano *.rb file for a WordPress deployment
# The project repo name. (one word: no spaces, dashes, or underscores)
set :application, "wp_capistrano_martian" #FIXME
# Legacy from porting from drupal, best to just leave this as "default"
set :domains, ["default"]
# Set the repository type and location to deploy from.
set :scm, :git
set :repository, "git@github.com:faddah/wp_capistrano_martian.git" #FIXME
# set :scm, :subversion
@faddah
faddah / page-sidebar-left.php
Created August 17, 2016 19:26
my page-sidebar-left.php file from zac gordon's treehouse course on wordpress theme development
<?php
/*
Template Name: Left Sidebar
*/
<section class="two-column row no-max pad">
<div class="small-12 columns">
<div class="row">
@faddah
faddah / results of "ps ax | grep ssh"
Last active April 24, 2016 03:19
Arch Linux openssh sshd_config file
# ps ax | grep ssh
1817 ? Ss 0:00 /usr/bin/sshd -D
1886 ? Ss 0:00 /usr/bin/ssh-agent -s
3074 pts/0 S+ 0:00 sudo vim /etc/ssh/sshd_config
3075 pts/0 S+ 0:00 vim /etc/ssh/sshd_config
3165 pts/1 S+ 0:00 grep ssh
$ npm ls -g --depth=0
/Users/yuetsu/.npm-packages/lib
├── angular@1.5.0
├── angular-animate@1.5.0
├── angular2@2.0.0-beta.1
├── bower@1.7.2
├── browser-sync@2.11.1
├── browserify@13.0.0
├── coffee-script@1.10.0
├── connect@3.4.0
@faddah
faddah / index.html
Last active January 5, 2016 20:54
dave mcfarland's treehouse example of arrays music playlist
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Musical Playlist</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<h1>My Music Playlist</h1>
<script src="js/playlist.js"></script>
@faddah
faddah / gist:7329054
Created November 6, 2013 00:51
step three of code academy recursion #FAIL
// my answer to step three in code academy module on recursion in JavaScript
var stack = [];
function countDown(int) {
stack.push(int);
if (int === 1) {
return 1;
}
@faddah
faddah / gist:7310433
Created November 4, 2013 22:37
mac os x 10.9 "maverick" finder crash log - repetitive finder crash (every 10 - 15 seconds)
Process: Finder [2877]
Path: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
Identifier: com.apple.finder
Version: 10.9 (10.9)
Build Info: Finder_FE-885000002000000~2
Code Type: X86-64 (Native)
Parent Process: launchd [379]
Responsible: Finder [2877]
User ID: 502
@faddah
faddah / gist:6632097
Created September 20, 2013 01:13
results of dlmanning's watch.js test
rename : .subl782.tmp
rename : .subled8.tmp
rename : .sublf43.tmp
rename : .subl898.tmp