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
[:f146e78d-e9ab-4ad2-876f-4722b0513936] | |
foreground-color='#a7a7a7' | |
visible-name='Base 16 Twilight Dark' | |
login-shell=true | |
palette=['#1e1e1e', '#cf6a4c', '#8f9d6a', '#f9ee98', '#7587a6', '#9b859d', '#afc4db', '#a7a7a7', '#5f5a60', '#cf6a4c', '#8f9d6a', '#f9ee98', '#7587a6', '#9b859d', '#afc4db', '#ffffff'] | |
use-theme-colors=false | |
use-theme-background=false | |
bold-color-same-as-fg=true | |
bold-color='#a7a7a7' | |
background-color='#1e1e1e' |
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
# WARNING: massive screen scroll | |
$stdout.puts self.catalogue.to_yaml | |
# Save to file | |
File.open( '_catalog.yaml', 'w'){ |f| f.puts self.catalogue.to_yaml } |
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 'erb' | |
require 'ostruct' | |
desc 'Generate a README.md using the module name' | |
task 'generate', [:name] do |t, args| | |
metadata = OpenStruct.new( args.to_hash ) | |
erb_file = File.expand_path('README.md.erb', File.dirname(__FILE__)) | |
template = File.open( erb_file, 'r').readlines.join("\n") | |
content = ERB.new template | |
File.open( 'README.md', 'w' ){ |f| f.puts content.result(binding) } |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
[alias] | |
# colorful log with one-line entries | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
# colorful log with a summary of updated files | |
lgf = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --name-only | |
# colorful log with a summary of updated files & the commit message | |
lgff = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\n\n%b' --abbrev-commit --name-only |
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
source 'https://rubygems.org' | |
gem 'octokit' # github api | |
# native ruby git ops | |
gem 'rugged', git: 'git://github.com/libgit2/rugged.git', submodules: true | |
gem 'highline' # pretty prings | |
gem 'ruby-progressbar' | |
gem 'rake' | |
gem 'pry' # god-mode |
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
#/usr/bin/env bash | |
# Install some pacakages we'll need to compile the driver below. | |
sudo dnf install git kernel-devel gcc patch -y | |
# Create working dir for Broadcom driver files and patches. | |
mkdir hybrid_wl_f23 | |
# Change to working dir. | |
cd hybrid_wl_f23 |
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
# Originally from: | |
# https://gist.github.com/parzonka/9371885 | |
# ------------------------------------------------------------------------------ | |
# - required packages: unzip, java | |
# - installs to /opt/gradle | |
# - existing versions are not overwritten/deleted | |
# - seamless upgrades/downgrades | |
# - $GRADLE_HOME points to latest *installed* (not released) | |
# ------------------------------------------------------------------------------ |
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
# - gets latest Travis CI result and exits 0 (CR+1) or fails (CR-1) | |
# - gets the latest GitHub PR pull from Gerrit comments | |
# - warns if latest Gerrit patchset is newer than latest GitHub PR pull (because Travis results aren't the latest) | |
# TODO: warn if latest Travis request is newer than latest GerritHub PR PR pull (because GerritHub needs to be updated) | |
require 'travis' | |
require 'travis/tools/github' | |
require 'json' | |
gerrit = {} |
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
# requires jira-cli gem (from https://github.com/drn/jira-cli; 0.3.6 in example) | |
PARENT_ISSUE=SIMP-1054 | |
JIRA_ASSIGNEE=chris.tessmer | |
# Create a batch of new issues | |
for i in `cat x`; do jira new -p SIMP -c pupmod-simp-$i -s "Fix STRICT_VARIABLES=yes for pupmod-simp-$i" -a ${JIRA_ASIGNEE} -i Sub-task --parent=${PARENT_ISSUE}; done |
OlderNewer