initialize git depository in the current directory
git init .
display the git remote/origin
cat .git/config
fastboot flash product product.img | |
fastboot flash abl abl.img | |
fastboot flash aop aop.img | |
fastboot flash bluetooth bluetooth.img | |
fastboot flash boot boot.img | |
fastboot flash cmnlib cmnlib.img | |
fastboot flash cmnlib64 cmnlib64.img | |
fastboot flash devcfg devcfg.img | |
fastboot flash dsp dsp.img | |
fastboot flash dtbo dtbo.img |
# Using these pry gems -- copy to your Gemfile | |
# group :development, :test do | |
# gem 'awesome_print' # pretty print ruby objects | |
# gem 'pry' # Console with powerful introspection capabilities | |
# gem 'pry-byebug' # Integrates pry with byebug | |
# gem 'pry-doc' # Provide MRI Core documentation | |
# gem 'pry-rails' # Causes rails console to open pry. `DISABLE_PRY_RAILS=1 rails c` can still open with IRB | |
# gem 'pry-rescue' # Start a pry session whenever something goes wrong. | |
# gem 'pry-theme' # An easy way to customize Pry colors via theme files | |
# end |
// ==UserScript== | |
// @name Twitter - Remove Promoted Tweets | |
// @description Remove promoted tweets from Twitter | |
// @author Nick Stakenburg | |
// @namespace https://gist.githubusercontent.com/staaky | |
// @license MIT; https://opensource.org/licenses/MIT | |
// @updateURL https://gist.githubusercontent.com/staaky/743103cc6e0e6a4bff6d2fca73e95d1e/raw/twitter-remove-promoted-tweets.user.js | |
// @downloadURL https://gist.githubusercontent.com/staaky/743103cc6e0e6a4bff6d2fca73e95d1e/raw/twitter-remove-promoted-tweets.user.js | |
// @include http://twitter.com/* | |
// @include https://twitter.com/* |
# As postgres user | |
/usr/lib/postgresql/11/bin/initdb -D /var/lib/postgresql/11/main | |
# etc. |
initialize git depository in the current directory
git init .
display the git remote/origin
cat .git/config
#!/bin/bash | |
# CentOS rbenv system wide installation script | |
# Forked from https://gist.github.com/1237417 | |
# Installs rbenv system wide on CentOS 5/6, also allows single user installs. | |
# Install pre-requirements | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ | |
make bzip2 autoconf automake libtool bison iconv-devel git-core |
#!/usr/bin/env ruby | |
# | |
# Get a list of merged branches | |
# | |
# You need to checkout the target remote branch before running. In other words, | |
# if your target branch is 'master', you have to have it checked out before you | |
# run this script, otherwise you will get an error like: `fatal: malformed | |
# object name master`. Git needs to have the branch checked out and pulled in | |
# order to find the branches that have/have-not been merged into it. | |
# |
# Add to `spec/support/database_state_loader.rb` | |
class DatabaseStateLoader | |
class EnvironmentError < RuntimeError; end | |
def self.load(path) | |
new(path).load | |
end | |
def initialize(path) |
# SSL self signed localhost for rails start to finish, no red warnings. | |
# 1) Create your private key (any password will do, we remove it below) | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
hdiutil attach /Applications/Install\ macOS\ Sierra\ Public\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/
cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist