Skip to content

Instantly share code, notes, and snippets.

View georgiana-gligor's full-sized avatar

Georgiana Gligor georgiana-gligor

View GitHub Profile
@doidor
doidor / bundle.sh
Created October 16, 2015 09:02
Simple shell script for bundling a repo using git archive.
#!/bin/bash
GIT_BRANCH='<the_branch>'
SERVER_IP='<remote_server_ip>'
SERVER_USER='<remote_user>'
DEFAULT_COPY_PATH='<remote_path_where_to_copy_the_bundle>'
INSTALL_SCRIPT="install.sh"
# you can specify a custom git branch if you want
if [ $# -gt 0 ]; then
@LeCoupa
LeCoupa / casperjs.cheatsheet.js
Last active January 23, 2022 07:56
Cheatsheet: CasperJS, PhantomJS & Spooky --> https://github.com/LeCoupa/awesome-cheatsheets
// PhantomJS Cheatsheet
$ brew update && brew install phantomjs // install PhantomJS with brew
phantom.exit();
var page = require('webpage').create();
page.open('http://example.com', function() {});
page.evaluate(function() { return document.title; });
@dbu
dbu / Vagrantfile
Created November 13, 2012 09:26
vagrant setup
# -*- mode: ruby -*-
# vi: set ft=ruby :
this_dir = File.dirname(__FILE__) + "/"
require this_dir + "vagrant/hostmaster.rb"
Vagrant::Config.run do |config|
# define some colors for our output
def colorize(text, color_code) "#{color_code}#{text}\033[0m" end