Skip to content

Instantly share code, notes, and snippets.

@jed
jed / LICENSE.txt
Created May 20, 2011 13:27 — forked from 140bytes/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@clintel
clintel / gist:1155906
Created August 19, 2011 02:40
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@lsauer
lsauer / jscopy.css
Created May 30, 2012 13:37
Copy to the clipboard in JavaScript, securely and without Flash
a{ cursor:pointer; }
a, a:link {
background-color: #eee; /*#407EC9*/
border-radius:5px;
padding:0px 2px 0px 2px;
color: #666;
font-weight: none;
text-decoration: none;
opacity:.7;
}
@rodw
rodw / backup-github.sh
Last active November 9, 2024 17:55
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
#-------------------------------------------------------------------------------
# NOTES:
#-------------------------------------------------------------------------------
# * Under the heading "CONFIG" below you'll find a number of configuration
# parameters that must be personalized for your GitHub account and org.
# Replace the `<CHANGE-ME>` strings with the value described in the comments
# (or overwrite those values at run-time by providing environment variables).
@octete
octete / gist:5197018
Created March 19, 2013 15:23
Things to say at work.
Top 25 things you would love to say at work. Which one is your favorite?
01. I can see your point, but I still think you're full of shit.
02. I'll try being nicer if you'll try being smarter.
03. I see you've set aside this special time to humiliate yourself in public.
04. I don't know what your problem is, but I'll bet it is hard to pronounce.
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #

Keybase proof

I hereby claim:

  • I am teoruiz on github.
  • I am teoruiz (https://keybase.io/teoruiz) on keybase.
  • I have a public key whose fingerprint is 29EF 5347 64CB E812 1F6E A345 93FC 8512 4ECA 7C8F

To claim this, I am signing this object:

@thomasjbradley
thomasjbradley / github-pages-bookmarklet.js
Last active February 23, 2017 11:11
GitHub Pages Switcher Bookmarklet
/**
* Detects the GitHub URL and redirects:
* - From Repo to Pages
* - or from Pages to Repo
*/
javascript:(function () {
var url = document.location.href,
username,
repo,
@vibragiel
vibragiel / screenshare
Last active September 9, 2015 11:13
Script to grab a screenshot, put it in a Dropbox directory and copy its public link into the clipboard. Modified from https://gist.github.com/Saicheg/4231551
#!/bin/bash
# Usage: screenshare [-m <window|area|desktop>] [-d <integer>] [-p]
# -m window Grab active window
# -m area Grab an area selected with the mouse
# -m desktop Grab whole desktop
# -d <integer> Grab after the specified delay in seconds
# -p Include mouse pointer in the screenshot
# Description: Take a screenshot, store it in Dropbox and copy public link
# into the clipboard
# Author: Gabriel Rodríguez Alberich