#!/usr/bin/env bash | |
# Usage: goo.gl [URL] | |
# | |
# Shorten a URL using the Google URL Shortener service (http://goo.gl). | |
goo.gl() { | |
[[ ! $1 ]] && { echo -e "Usage: goo.gl [URL]\n\nShorten a URL using the Google URL Shortener service (http://goo.gl)."; return; } | |
curl -qsSL -m10 --connect-timeout 10 \ | |
'https://www.googleapis.com/urlshortener/v1/url' \ | |
-H 'Content-Type: application/json' \ | |
-d '{"longUrl":"'${1//\"/\\\"}'"}' | |
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
EMOJI CHEAT SHEET
Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.
People
😄
<html> | |
<body> | |
<a href="javascript:void%20function(){window.maxval=prompt(%22How%20much%20would%20you%20like%20to%20pay%3F%20(Dont%20include%20$%20sign)%22),window.snipetime=prompt(%22What%20second%20would%20you%20like%20to%20snipe%20on%3F%20(can%20be%200-9,%20but%202%20is%20recommended%22),window.tanimation=[%22|%22,%22/%22,%22-%22,%22\\%22],window.tanv=0,window.setInterval(function(){$(%22%23itemTitle%22).text(%22Sniper%20Active%20%20%22+tanimation[tanv%25tanimation.length]),window.tanv++,1!=window.biddone%26%261!=window.tensec%26%26-1==$(%22%23vi-cdown_timeLeft%22).text().indexOf(%22m%22)%26%26$(%22%23vi-cdown_timeLeft%22).text().indexOf(%2210s%22)%3E-1%26%26(window.tensec=!0,$(%22%23bidBtn_btn%22).click()),1==window.tensec%26%26$(%22.timeLeftVal%22).text().indexOf(window.snipetime+%22s%22)%3E-1%26%26-1==$(%22.timeLeftVal%22).text().indexOf(%2210s%22)%26%26(window.tensec=!1,window.biddone=!0,$(%22input[title='Enter%20your%20max%20bid']%22).val(window.maxval),$(%22.vi-placemax-alignment%22).last().clic |
#!/bin/bash | |
# Version 1.0 2016-06-03 https://gist.github.com/kus/318f21b840df0b7a6377563ce717c184 | |
# MIT license | |
# Prerequisites: | |
# Homebrew: http://brew.sh/ | |
# Install FFmpeg via Homebrew: brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvpx --with-theora --with-libogg --with-libvorbis --with-opus --with-x265 | |
# Make the script executable: sudo chmod u+x convert-video.sh | |
# Run: ./convert-video.sh |
If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:
Install Docker for Mac if you have not already.
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
- Homebrew, run
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
from the command line to install it. - Homebrew Cask, run
brew tap caskroom/cask
from the command line to install it. - Alfred, buy the powerpack to get the full use of it.
- Spectacle
- Fish shell
- VLC
- Unarchiver
- f.lux
- n, run
brew install n
from the command line to install it. - Fisherman, run
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher
from the command line to install it.
# the --recursive is important, this has a submodule! | |
git clone --recursive https://github.com/asciinema/asciicast2gif.git | |
cd asciicast2gif | |
# If you forget to use --recursive you can do | |
git submodule init | |
git submodule update | |
# install npm dependencies | |
npm install |