Michal Papis mpapis

View .bashrc
1 2 3 4 5 6 7 8 9
echo PATH1=$PATH
 
test -s ~/.alias && . ~/.alias || true
 
echo PATH2=$PATH
 
source ~/.profile
 
echo PATH3=$PATH
View gist:9842994
1 2 3 4 5 6 7 8 9
#!/bin/bash
 
set -e
 
[ -e /etc/profile.d/proxy.sh ] && source /etc/profile.d/proxy.sh
 
# Some defaults that may be overridden by command line
HEADLESS=false
CLEAN=false
View speaker.md
View after_use_textmate
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env bash
#
# Automatically sets the wrappers for textmate's use
# Based on article posted: http://www.christopherirish.com/2010/06/28/how-to-setup-textmate-to-use-rvm/
# Set up the TM_RUBY shell variable as described and remove the Builder as described and restart TextMate
#
# Make this script executable and you should be good to go! TextMate will stay in sync with rvm, which
# generally means the last project folder you switched into from terminal shell.
#
if [[ $TM_WRAPPING != "1" ]]; then
View 45252.diff
1 2 3 4 5 6 7 8 9 10
--- a/ext/readline/readline.c (revision 45251)
+++ b/ext/readline/readline.c (revision 45252)
@@ -1883,7 +1883,7 @@
rl_attempted_completion_function = readline_attempted_completion_function;
#if defined(HAVE_RL_PRE_INPUT_HOOK)
- rl_pre_input_hook = (Function *)readline_pre_input_hook;
+ rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
#endif
#ifdef HAVE_RL_CATCH_SIGNALS
View take_n.rb
1
puts "2.10.3".split(".")[0..1].join(".")
View bad.rb
1 2 3 4
apply_event :transfer_sent, :target_account_uid => target,
:amount => amount,
:new_balance => new_balance.amount,
:account_uid => uid
View template.rb
1 2 3 4 5 6 7
require "rvm/with"
Bundler.with_clean_env do
RVM.with "in ." do |r|
puts r.execute "bundle install"
puts r.execute "rake db:create db:migrate db:setup"
end
end
View osx_109_install_clt.sh
1 2 3 4 5 6 7 8 9 10
osx_109_install_clt()
{
typeset __developer_update
# continue if already using some xcode
xcode-select -p >/dev/null 2>&1 && return 0 || true
# trick the update to think user opened the dialog
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
# find pending update
__developer_update="$(
softwareupdate -l 2>/dev/null |
View sudoers
1
nick ALL=NOPASSWD:/sbin/start foo,/sbin/stop foo,/sbin restart foo,/sbin/service foo start,/sbin/service foo stop,/sbin/service foo restart,/home/nick/.rvm/wrappers/foo/foreman
Something went wrong with that request. Please try again.