Skip to content

Instantly share code, notes, and snippets.

jethroo / simple curl load test
Created Feb 18, 2020
simple curl load test
View simple curl load test
echo "curling" $1
curl <whatever you want to curl>
# For loop 50 times
for i in {1..50}
View jethroo.zsh-theme
function ruby_v() {
if [ -n "$(ls -A ./Gemfile 2>/dev/null)" ]
echo "${$(ruby_prompt_info)/ruby-/ }"
function fg_c_code() {
echo "\\033[38;5;$1m"
View bricklink_new_and_used_inv_part_link
View .bashrc
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working tree clean" ]] && echo "⚡️"
jethroo / app.js
Created Feb 15, 2017 — forked from davidkpiano/app.js
Simple way to namespace React components
View app.js
import React from 'react';
import * as My from './components/my-components.js';
export default class App extends React.Component {
render() {
return (
<My.Foo />
<My.Bar />
jethroo / tz_identifiers_to_rails_identifiers.rb
Created Jun 29, 2016 — forked from jpmckinney/tz_identifiers_to_rails_identifiers.rb
Maps tz database time zone identifiers to Rails time zone identifiers
View tz_identifiers_to_rails_identifiers.rb
# blog post:
"Australia/Adelaide" => "Adelaide",
"Australia/Broken_Hill" => "Adelaide",
"America/Anchorage" => "Alaska",
"America/Juneau" => "Alaska",
"America/Nome" => "Alaska",
"America/Yakutat" => "Alaska",
"Pacific/Gambier" => "Alaska",
"Asia/Almaty" => "Almaty",
jethroo / autocomplete.html
Created May 24, 2016 — forked from hernan/autocomplete.html
jquery autocomplete demo with custom render item implementation
View autocomplete.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>jQuery UI Autocomplete - Custom data and display</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.6.2.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
jethroo / disable_angular_debug_info
Created May 4, 2016
Improving Angular performance with 1 line of code
View disable_angular_debug_info
myApp.config(['$compileProvider', function ($compileProvider) {
View rename_css_scss
for file in $(find ./app/assets/stylesheets/ -name "*.css.scss")
git mv $file `echo $file | sed s/\.css//`
View mac os x say for rspec
say -v Cellos Ar-rr-rr-rr-rr-rr-rr-rr-rr-rr-rr-rr-spec is done
say -v Cellos dong dong dong ding ding ding dong Spec is done Spec is donne
say -v Daniel RSpec is done, Mi Lord
You can’t perform that action at this time.