This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Functions for fast single file vim/fugitive workflow | |
" | |
" Add this in your .vimrc and use it like this: | |
" Just commit current file with message | |
" :GitCommitWithMessage 'fix typo' | |
" Commit current file with message and push afterwards | |
" :GitCommitPushWithMessage 'fix typo' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ name }} | |
{{{ name }}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dir = "/var/customers/mail/wimsnel/aan@wimsnel.nl" | |
#p Dir.glob(dir) | |
dirs =Dir.entries(dir).select {|entry| | |
File.directory? File.join(dir,entry) and !(entry =='.' || entry == '..') | |
} | |
dirs.each do |d| | |
p dir + ':' + d | |
#p d | |
sd =Dir.entries(File.join(dir,d)).select {|entry| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test_helper' | |
class RailsadminFlowsTest < ActionDispatch::IntegrationTest | |
include Warden::Test::Helpers | |
test "login as admin" do | |
login_as_admin | |
get "/admin" | |
assert_response :success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du -sh ./*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/solr-tomcat/tomcat/conf/Catalina/localhost/solr-4.8.1.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while getopts ":a :b" opt; do | |
case $opt in | |
a) | |
cd /System/Library/Frameworks/Ruby.framework/Versions/ | |
sudo rm Current | |
sudo ln -sf /System/Library/Frameworks/Ruby.framework/Versions/1.8 Current | |
sudo rm -rf /usr/bin/ruby | |
sudo ln -sf /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby /usr/bin/ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while getopts ":a :b" opt; do | |
case $opt in | |
a) | |
cd /System/Library/Frameworks/Ruby.framework/Versions/ | |
sudo rm Current | |
sudo ln -sf /System/Library/Frameworks/Ruby.framework/Versions/1.8 Current | |
sudo rm -rf /usr/bin/ruby | |
sudo ln -sf /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby /usr/bin/ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sqlite3 refx3development.sqlite3 | |
sqlite3> .table | |
sqlite3> DELETE FROM jobs; | |
sqlitw3> .quit |