Skip to content

Instantly share code, notes, and snippets.

View y0mbo's full-sized avatar
🏠
Serving the software engineering team at Maxcess International

John Uhri y0mbo

🏠
Serving the software engineering team at Maxcess International
View GitHub Profile
@y0mbo
y0mbo / .vimrc
Last active December 15, 2020 02:14
My .vimrc file
set nocompatible
syntax enable
set encoding=utf-8
set showcmd
filetype plugin indent on
colorscheme cobalt2
" turn off backups
set nobackup
@y0mbo
y0mbo / .bashrc
Last active October 6, 2015 23:08
My .bashrc file
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@y0mbo
y0mbo / .bash_aliases
Last active August 10, 2020 00:50
My .bash_aliases file
alias b='bundle exec'
alias c='bundle exec cucumber'
alias r='bundle exec rspec'
alias guard='bundle exec guard'
alias fs='cd ~/Desktop/rbbb/final_scope'
# git shortcuts
# make list more useful
@y0mbo
y0mbo / RoR .gitignore
Last active March 24, 2017 14:43
My .gitignore file
*.rbc
*.sassc
.sass-cache
capybara-*.html
.rspec
/.bundle
/vendor/bundle
/log/*
/tmp/*
/db/*.sqlite3
@y0mbo
y0mbo / sass_clearfix
Last active December 11, 2015 23:29
Clearfix for Sass
/* clearfix */
.clearfix {
*zoom: 1;
&:before, &:after {
content: " ";
display: table;
}
&:after {
clear: both;
@y0mbo
y0mbo / heroku_deployhook
Created January 30, 2013 21:46
Heroku hook to send an email after deployment. Email multiple recipients by adding additional email addresses separated by spaces.
$ heroku addons:add deployhooks:email \
--recipient=me@example.com \
--subject="Myapp Deployed" \
--body="{{user}} deployed app"
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@y0mbo
y0mbo / Contract Killer 3.md
Last active August 12, 2020 01:40
This is a contract based on Andy Clark's Contract Killer 3.

Killer Contract

(Based on the Contract Killer 3 by Andy Clarke at Stuff and Nonsense) See: https://gist.github.com/malarkey/4031110

Contract

Summary

I always do my best to fulfill your needs and meet your expectations, but it's still important to have things written down so that we both know what's what, who should do what and when, and what will happen if something goes terribly wrong. You won't find any complicated legal terms or long, unreadable text here. I have no desire to trick you into signing something you might later regret. I want us to do what is best for both of us, now and in the future. This is the start of a great relationship!

@y0mbo
y0mbo / Twitter Hover CSS
Last active March 24, 2017 14:42
Twitter shows additional actions when you hover over a tweet. Here's some jQuery that does the same thing. It assumes the item to show is within the item being hovered over.
$('.parentItemToHoverOver').hover(
function () {
$(this).find('.childItemToShowOnParentHover').fadeTo(500,1);
},
function() {
$(this).find('.childItemToShowOnParentHover').fadeTo(500,0);
}
);
@y0mbo
y0mbo / Change title of a Linux terminal window
Last active March 24, 2017 14:42
Set the title of a terminal window.
In .bashrc:
function title {
echo -en "\033]2;$1\007"
}
Then in your terminal type:
title "MyTitle"