Skip to content

Instantly share code, notes, and snippets.

View wolves's full-sized avatar

Christopher Stingl wolves

  • Chapel Hill, NC
View GitHub Profile
for (var i:int = 0; i < MAIN_MC.numChildren; i++)
{
var mcRef:MovieClip = MovieClip(MAIN_MC.getChildAt(i));
mcRef.methodName;
}
desc "Transmit DockSend"
task :deploy do
system <<-EOF
osascript -e "on run argv\r\n ignoring application response\r\n tell app \\"Transmit\\" to open POSIX file item 1 of argv\r end ignoring\r end run" .
EOF
puts "Sent publish/ to Transmit."
end
@wolves
wolves / Homebrew Uninstall
Created April 3, 2012 16:46
Commands for uninstalling homebrew
cd `brew --prefix`
rm -rf Cellar
brew prune
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew
rm -rf ~/Library/Caches/Homebrew
@wolves
wolves / gist:2944385
Created June 17, 2012 12:13
command to uninstall all gems
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
@wolves
wolves / @font-face embed loop
Created May 7, 2013 15:03
An embed loop for embedding all of the @font-face font that you want
@each $font-face in font-1, font-2 {
@font-face {
font-family: $font-face; font-style: normal; font-weight: normal;
src: url('#{$font-face}.eot');
src: url('#{$font-face}.eot?') format('eot'),
url('#{$font-face}.woff') format('woff'),
url('#{$font-face}.ttf') format('truetype');
}
}
{
latest_migration: "20140805143805",
features: {
dfp_keys: {
city: "",
state: "",
zip: [ ],
cnty: [ ],
targetcode: "",
cbsa: "",
@wolves
wolves / router.js
Created September 9, 2014 19:16
Iron Router using waitOn function
Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'loading',
waitOn: function() {
return [
Meteor.subscribe('posts'),
Meteor.subscribe('comments')
];
}
});
@wolves
wolves / routes.js
Last active June 26, 2016 14:02
react-router routes file
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './containers/App'
import Login from './containers/Login'
import Dashboard from './containers/Dashboard'
import SearchContainer from './containers/Search'
import Cart from './containers/Cart'
import Maintenance from './containers/Maintenance'
import Profile from './containers/Profile'
@wolves
wolves / tasks.ex
Last active April 1, 2022 14:05
Elixir curl Github API
repo_data = [name: "asdf"]
{status, result} = JSON.encode(repo_data)
IO.puts "RESULT: #{result}"
case System.cmd "curl", ["-XPOST", "-H", "Authorization: token #{github_token}", "https://api.github.com/user/repos", "-d", "#{result}"] do
{output, 0} -> IO.puts "#{output}"
{err, code} -> {:error, %Raygun.Error{message: err, command: "new", code: code}}
end
@wolves
wolves / caddy.service
Created March 14, 2018 00:49
Systemd Caddy service setup
[Service]
Restart=on-failure
StartLimitInterval=86400
StartLimitBurst=5
; User and group the process will run as.
User=root
Group=www-data
; Letsencrypt-issued certificates will be written to this directory.