Skip to content

Instantly share code, notes, and snippets.

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/precise64"
config.vm.hostname = 'FQDN'
# config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210.box"
config.vm.network "private_network", ip: "192.168.33.23"
config.vm.synced_folder "./bind", "/etc/bind", id: "vagrant-root"
config.vm.usable_port_range = (2200..2250)

GitHub Git Cheat Sheet

Git is the open source distributed version control system that facilitates GitHub activities on your laptop or desktop. This cheat sheet summarizes commonly used Git command line instructions for quick reference.

Install Git

GitHub provides desktop clients that include a graphical user interface for the most common repository actions and an automatically updating command line edition of Git for advanced scenarios.

GitHub for Windows

http://windows.github.com

@tuksik
tuksik / fix_git_ps1.sh
Last active May 4, 2024 13:56
Fix -bash: __git_ps1: command not found
#http://stackoverflow.com/questions/12870928/mac-bash-git-ps1-command-not-found
curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
echo 'source ~/.git-prompt.sh' >> ~/.bashrc
@tuksik
tuksik / last_reboot.sh
Created September 16, 2014 09:19
Last reboot
uptime | \
perl -ne '/.*up +(?:(\d+) days?,? +)?(\d+):(\d+),.*/; $total=((($1*24+$2)*60+$3)*60);
$now=time(); $now-=$total; $now=localtime($now); print $now,"\n";'
@tuksik
tuksik / oracle_compare_schemas.sql
Created September 16, 2014 10:56
This script will compare two Oracle schemas and generate a report
REM http://www.dbspecialists.com/files/scripts/compare_schemas.sql
REM
REM compare_schemas.sql
REM ===================
REM
REM This script is provided by Database Specialists, Inc.
REM (http://www.dbspecialists.com) for individual use and not for sale.
REM Database Specialists, Inc. does not warrant the script in any way
REM and will not be responsible for any loss arising out of its use.
REM
rem session.sql - displays all connected sessions
set echo off;
set termout on;
set linesize 80;
set pagesize 60;
set newpage 0;
select
rpad(c.name||':',11)||rpad(' current logons='||
(to_number(b.sessions_current)),20)||'cumulative logons='||
@tuksik
tuksik / zarafa_del_orh.sh
Created September 20, 2014 17:22
Permanently delete all zarafa orphan stores
#/bin/bash
#http://www.zarafa.com/wiki/index.php/Permanently_delete_all_orphan_stores
ZARAFA_ADMIN=`which zarafa-admin`
AWK=`which awk`
echo
echo "ALERT - This script will permanently delete all orphan stores!!!"
echo -n "Are you sure you want to continue [y/n]: "
@tuksik
tuksik / ftp_upload.bat
Last active August 29, 2015 14:06
How to Automate FTP Uploads from the Windows Command Line
rem http://www.howtogeek.com/howto/windows/how-to-automate-ftp-uploads-from-the-windows-command-line/
@echo off
echo user MyUserName > ftpcmd.dat
echo MyPassword >> ftpcmd.dat
echo quote pasv >> ftpcmd.dat
echo bin >> ftpcmd.dat
echo put %1 >> ftpcmd.dat
echo quit >> ftpcmd.dat
ftp -n -s:ftpcmd.dat SERVERNAME.COM
del ftpcmd.dat
  • Create a users file (i.e. authors.txt) for mapping SVN users to GIT
user1 = First Last Name <email@address.com>
user2 = First Last Name <email@address.com>
  • Then you can download the Subversion data into a Git repository:
" Teach vim to syntax highlight Vagrantfile as ruby
"
" Install: $HOME/.vim/plugin/vagrant.vim
" Author: Brandon Philips <brandon@ifup.org>
augroup vagrant
au!
au BufRead,BufNewFile Vagrantfile set filetype=ruby
augroup END