Skip to content

Instantly share code, notes, and snippets.

View brownman's full-sized avatar

brownman brownman

  • self
  • israel
View GitHub Profile
@brownman
brownman / ssh_public_key_auto_create_and_upload.sh
Last active August 29, 2015 14:00
ssh + gihub : create and upload Public Key
#!/bin/bash
#depend: xsel pv
intro(){
echo 'Dependencies:'
cat $0 | grep depend | grep -v grep
echo Press any key to continue
read
}
proxy(){
args=( $@ )
require "rspec/core/formatters/base_text_formatter"
require 'headless'
require 'fileutils'
class AcceptanceVideoFormatter < RSpec::Core::Formatters::BaseTextFormatter
def initialize(output)
@headless = Headless.new(
video: {
nomouse: true,
@noamraph
noamraph / byzanz_window.py
Created January 10, 2014 08:24
byzanz_window: Use byzanz to create a GIF screencast of a specific window
#!/usr/bin/env python
"""
Use byzanz to create a GIF screencast of a specific window.
Required tools:
sudo apt-get install byzanz x11-utils xdotool
A tip: use an extra-long duration (-d 100), record your shot, and use
gimp to shorten the duration of the last frame. You need to rename the layer
from "Frame 123 (100000 ms) (combine)" to "Frame 123 (1000 ms) (combine)".
@paretech
paretech / archinstall.sh
Last active August 1, 2024 00:21
See readme.md
#!/bin/bash
HOSTNAME="apollo"
USERNAME="paretech"
TIMEZONE="US/Eastern"
LANGUAGE="en_US.UTF-8"
DRIVE=/dev/sda
MOUNT_PATH=/mnt
USERSHELL=/bin/bash
@PhilT
PhilT / bootstrap
Last active December 29, 2015 16:19
Arch Linux Bootstrap Script
#!/bin/sh
# Arch Linux Bootstrap Script
#
# See comments below for running
#
# Partition all of main drive
echo "n
p
@emyl
emyl / xs_raid_step1.sh
Last active December 27, 2015 18:49
RAID setup for Citrix Xenserver 6.x
#!/bin/bash
echo "o
Y
n
1
2048
8388641
FD00
n
@hofmannsven
hofmannsven / README.md
Last active June 15, 2025 00:37
Git CLI Cheatsheet
@tr3buchet
tr3buchet / debootstrap.md
Last active July 5, 2023 11:26
debian usb debootstrap

make sure any needed utilities are installed

sudo aptitude install debootstrap coreutils util-linux e2fsprogs

get usb device

df -h
@liorkesos
liorkesos / 1 - server.js
Last active November 22, 2016 16:54
MEAN.io code walkthrough
/*!
* nodejs-express-mongoose-demo
* Copyright(c) 2013 Madhusudhan Srinivasa <[email protected]>
* MIT Licensed
*/
/**
* Module dependencies.
*/