Skip to content

Instantly share code, notes, and snippets.

View anthonybaldwin's full-sized avatar

anthonybaldwin

View GitHub Profile
@wafflesnatcha
wafflesnatcha / goo.gl.sh
Last active March 13, 2018 04:49
Bash: goo.gl # Shorten a URL using the Google URL Shortener service (http://goo.gl).
#!/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//\"/\\\"}'"}' |
@bitmorse
bitmorse / lastexport.py
Created March 20, 2013 00:51
lastfm scrobble exporter (from https://gitorious.org/fmthings/lasttolibre/blobs/master/lastexport.py // changed the script to try more often on failure )
#!/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
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 17, 2024 12:37
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@roachhd
roachhd / README.md
Last active May 18, 2024 00:26
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

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

:bowtie: 😄

@jordam
jordam / EbaySniper.html
Created February 23, 2016 06:34
Ebay Sniper
<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
@kus
kus / convert-video.sh
Last active March 16, 2022 20:50
Convert any video (i.e.: AVI, MOV, MP4) to MP4 or WEBM with FFmpeg. Has option to export MP4 with YUV planar color space so it works with QuickTime and Safari.
#!/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
@brianshumate
brianshumate / docker-macos-terraform.md
Last active April 16, 2024 02:18
The Simplest Terraform with Docker on macOS

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:

1. Install Docker

Install Docker for Mac if you have not already.

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active May 17, 2024 09:06 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@nickytonline
nickytonline / tools-programs-for-osx.md
Last active May 12, 2021 19:58
Tools/Programs for devs on MacOS
  • 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