Skip to content

Instantly share code, notes, and snippets.

View raffylopez's full-sized avatar

Raf Lopez raffylopez

View GitHub Profile

Mobile Bug Report

Summary: Brief description of the issue

Platform:

  • iOS / Android / Other

Operating System:

  • Version number
@raffylopez
raffylopez / gist:a5554fd64cf155eb921acc35d82455bb
Created November 14, 2020 16:45
Ever typed `cd ..` * 1,000,000 times? This'll help
# +---------+
# | CD Find |
# +---------+
cdf() {
sp=$(pwd)
if [[ "$1" = "" ]]; then
echo "Usage: ..."
return
fi
@raffylopez
raffylopez / gist:19e34cba5e6cfbeca89c57ebeb37add1
Last active April 7, 2018 15:30
Vimium settings (Vimium Icon > Options)
# Insert your preferred key mappings here.
unmap u
unmap d
map <C-u> scrollPageUp
map <C-d> scrollPageDown
map <M-l> nextTab
map <M-h> previousTab
@raffylopez
raffylopez / happy_git_on_osx.md
Created March 23, 2018 01:46 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@raffylopez
raffylopez / docker-compose.yml
Created March 8, 2018 05:47
docker-compose.yml mods
elasticsearch:
image: carmudi/elasticsearch
ports:
- "9200:9200"
api-search:
image: carmudi/api-search
volumes:
- .:/var/www/html
links:
employee.name = "John"
employee.age = 24
department.employees.append(employee)
@raffylopez
raffylopez / connection-monitor.scpt
Created November 14, 2017 05:36
OS X Connection Monitor (AppleScript) -- Requires AnyBar
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
property imageName : "red"
property delayValue : 20
property googleURL : "http://www.google.com"
on run
set imageName to "white"
end run
@raffylopez
raffylopez / slice_of_pi.rs
Created July 12, 2017 06:45
A Slice of Rusty Pi!
// no-shebang
#![allow(unused_imports)]
#![allow(dead_code)]
#![allow(unused_variables,unused_must_use)]
#![allow(unused_mut)]
// -- in rust, a slice of a String is an &str ref
fn main() {
let pi = "3.14151".to_string();
let slice_of_pi: &str = &pi[0..3];