#!/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 |
According to all known laws of aviation, there is no way a bee should be able to fly. | |
Its wings are too small to get its fat little body off the ground. | |
The bee, of course, flies anyway because bees don't care what humans think is impossible. | |
Yellow, black. Yellow, black. Yellow, black. Yellow, black. | |
Ooh, black and yellow! | |
Let's shake it up a little. | |
Barry! Breakfast is ready! | |
Coming! | |
Hang on a second. | |
Hello? |
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.
Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.
And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.
If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.
- 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.