Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Dec 2020 ATX! Restoring a VW, setting-up apartment, starting PPG

BA steakknife

💭
Dec 2020 ATX! Restoring a VW, setting-up apartment, starting PPG
View GitHub Profile
@steakknife
steakknife / chrome_osx_logjam_fix
Created Aug 27, 2015
Google Chrome on OSX Logjam fix script
View chrome_osx_logjam_fix
#!/bin/sh
set -e
APP='/Applications/Google Chrome.app'
EXE="$APP/Contents/MacOS/Google Chrome"
ORIG_EXE="$EXE.orig"
if [ "$UID" = 0 ]; then
:;
else
@steakknife
steakknife / apple-openssh-6.2p2-osx-109.patch
Created Jan 31, 2014
Patch for openssh portal 6.2p2 to apples version in Mavericks
View apple-openssh-6.2p2-osx-109.patch
diff -Nur openssh-6.2p2/ChangeLog.gssapi OpenSSH-186/openssh/ChangeLog.gssapi
--- openssh-6.2p2/ChangeLog.gssapi 1969-12-31 16:00:00.000000000 -0800
+++ OpenSSH-186/openssh/ChangeLog.gssapi 2013-01-10 17:33:39.000000000 -0800
@@ -0,0 +1,113 @@
+20110101
+ - Finally update for OpenSSH 5.6p1
+ - Add GSSAPIServerIdentity option from Jim Basney
+
+20100308
+ - [ Makefile.in, key.c, key.h ]
@steakknife
steakknife / 0002-Apple-keychain-integration-other-changes-fixed.patch
Last active Aug 29, 2015
Apple changes for keychain login with OpenSSH 6.5p1
View 0002-Apple-keychain-integration-other-changes-fixed.patch
diff -Nur openssh-6.5p1/Makefile.in openssh-6.5p1-apple-keychain/Makefile.in
--- openssh-6.5p1/Makefile.in 2014-01-30 20:22:08.000000000 -0800
+++ openssh-6.5p1-apple-keychain/Makefile.in 2014-01-31 00:42:56.000000000 -0800
@@ -58,6 +58,7 @@
ENT=@ENT@
XAUTH_PATH=@XAUTH_PATH@
LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
+KEYCHAIN_LDFLAGS=@KEYCHAIN_LDFLAGS@
EXEEXT=@EXEEXT@
MANFMT=@MANFMT@
@steakknife
steakknife / build-clang.sh
Last active Aug 29, 2015
generic script for building clang
View build-clang.sh
#!/usr/bin/env bash
set -e
set -x
# requirements: curl rsync git
VERSION=3.4
# options
#CLANG_TOOLS_EXTRA=1
# options
View gist:8763600
#!/usr/bin/env bash
set -e
set -x
sudo bash << EOF
apt-get install -y python-software-properties
add-apt-repository ppa:pipelight/stable
apt-get update
apt-get install -y wine-compholio
EOF
netflix-desktop
@steakknife
steakknife / cloud.rb
Last active Aug 29, 2015
ruby cloud detection methods
View cloud.rb
require 'net/http'
require 'ipaddr'
module Cloud
extend self
EXT_IP_URLS = %w|
http://api.externalip.net/ip
http://ifconfig.me/
|
@steakknife
steakknife / libxslt.rb
Last active Aug 29, 2015
Libxslt for nokogiri 1.6.1 on osx mavericks
View libxslt.rb
require 'formula'
class Libxslt < Formula
homepage 'http://xmlsoft.org/XSLT/'
url 'ftp://xmlsoft.org/libxml2/libxslt-1.1.28.tar.gz'
mirror 'http://xmlsoft.org/sources/libxslt-1.1.28.tar.gz'
sha1 '4df177de629b2653db322bfb891afa3c0d1fa221'
keg_only :provided_by_osx
@steakknife
steakknife / install_nokogiri_brew_osx.sh
Last active Aug 29, 2015
Install nokogiri on osx without nokogiri included dependencies
View install_nokogiri_brew_osx.sh
#!/usr/bin/env bash
set -e
set -x
# see also: https://stackoverflow.com/questions/18479240/troubles-with-nokogiri-gem-on-mountain-lion-using-bundler/21744398#21744398
NOKOGIRI_OPTIONS='--use-system-libraries --with-iconv-dir=/usr/local/opt/libiconv --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config --with-xslt-config=/usr/local/opt/libxslt/bin/xslt-config'
brew uninstall libxml2 libxslt || true
@steakknife
steakknife / install_rubinius_osx.sh
Created Feb 13, 2014
install rubinius for chruby to /usr/local/ruby/rubinius-2.2.5
View install_rubinius_osx.sh
#!/usr/bin/env bash
set -e
set -x
brew install openssl readline libyaml gdbm || true
curl -LO http://releases.rubini.us/rubinius-2.2.5.tar.bz2
tar xf rubinius-2.2.5.tar.bz2
cd rubinius-2.2.5
bundle package --all
@steakknife
steakknife / .default-gems.rb
Last active Aug 29, 2015
Ruby semi-automatic default gems installer
View .default-gems.rb
#!/usr/bin/env ruby
# ~/.default-gems.rb
require 'yaml'
# no operator precedence!
HOME = ENV['HOME'] || ENV['HOMEDIR']
DEBUG = ENV['DRY_RUN']
FILES = ['/etc/default-gems.yaml', '/usr/local/etc/default-gems.yaml', File.join(HOME, '.default-gems.yaml')]