Skip to content

Instantly share code, notes, and snippets.

View jonarrien's full-sized avatar
🏠
Working from home

Jon Arrien jonarrien

🏠
Working from home
View GitHub Profile
@jonarrien
jonarrien / windows-knife-editor-settings.md
Created August 10, 2016 06:55 — forked from juliandunn/windows-knife-editor-settings.md
knife[:editor] settings on windows

Notepad++

knife[:editor] = '"C:\Program Files (x86)\Notepad++\notepad++.exe" -nosession -multiInst'

Sublime Text

knife[:editor] = '"C:\Program Files\Sublime Text 2\sublime_text.exe" --wait'
@jonarrien
jonarrien / wildfly-install.sh
Created July 8, 2016 06:29 — forked from sukharevd/wildfly-install.sh
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
@jonarrien
jonarrien / tmux-cheatsheet.markdown
Created May 21, 2016 23:56 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
Copyright (c) 2011 ZURB, http://www.zurb.com/
require 'formula'
class TmuxIterm2 < Formula
url 'http://iterm2.googlecode.com/files/tmux-for-iTerm2-20120108.tar.gz'
md5 'f15d9f567b9b029482bb7b3227ee7ac3'
homepage 'http://code.google.com/p/iterm2/downloads/detail?name=tmux-for-iTerm2-20120108.tar.gz&can=2&q='
depends_on 'libevent'
def install
@jonarrien
jonarrien / gist:7530037
Created November 18, 2013 15:47
Layar Intent Crash on iOS v8.0.2
Incident Identifier: 509DA5DD-2C07-4209-979A-8A08AC4D0F48
CrashReporter Key: 7f2a9fb74846e85e5e9e36c2cbee34097c275418
Hardware Model: iPhone4,1
Process: Layar [217]
Path: /var/mobile/Applications/336CB888-7C87-4636-9184-C952379DABFC/Layar.app/Layar
Identifier: Layar
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
require 'rubygems'
gem 'pry'
require 'pry'
PWD = ENV["PWD"]
env_rb = File.join(PWD, "config", "environment.rb")
FileUtils.cd PWD
if File.exists?(env_rb)
require env_rb
end
# This is a short collection of tools that are useful for managing your
# known_hosts file. In this case, I'm using the '-f' flag to specify the
# global known_hosts file because I'll be adding many deploy users on this
# system. Simply omit the -f flag to operate on ~/.ssh/known_hosts
# Add entry for host
ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts
# Scan known hosts
ssh-keygen -f /etc/ssh/ssh_known_hosts -H -F github.com
@jonarrien
jonarrien / Cakefile
Created November 23, 2012 09:56 — forked from mattmccray/Cakefile
Cakefile for compiling Coffee and LESS files, optionally compressing them with YUIC
###
Web Toolkit v0.4 (by M@ McCray)
http://gist.github.com/515035
NOTE: This is meant to be used as a Cakefile (Coffee's RAKE equivalent).
###
COFFEE_SRC="source/coffee"