Skip to content

Instantly share code, notes, and snippets.

@KwanEsq
KwanEsq / unbranded.js
Last active June 27, 2023 19:17
Update Unbranded links
// ==UserScript==
// @name Unbranded build update
// @version 4
// @grant none
// @match https://wiki.mozilla.org/index.php?title=Add-ons/Extension_Signing&action=edit&section=6*
// ==/UserScript==
async function getUnbranded(revision, version, channel) {
const builds = [
{
@nicolashery
nicolashery / Main.hs
Last active August 19, 2017 07:16
Exploring internationalization (i18n) in Haskell (message translations, datetime format, number/currency format)
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveGeneric #-}
module Main where
import Data.Monoid ((<>))
import qualified Data.Text as T
import Text.Shakespeare.I18N (mkMessage, renderMessage, RenderMessage())
@tyjak
tyjak / 2016-03-09.wiki
Last active March 11, 2016 16:36
Vim meetup paris #12

Vim Meetup Paris #12 - 160306

Le plein de plugins et d'astuces !!

Autour de vim

@heapwolf
heapwolf / iccat.sh
Last active March 8, 2017 16:06
Download and show image in terminal (iterm2 only)
#!/bin/bash
function print_image() {
printf "\033]"
printf "1337;File="
echo -n "$1" | base64 -D | wc -c | awk '{printf "size=%d",$1}'
printf ";inline=1:"
echo -n "$1"
printf "\a\n"
}
@8bitDesigner
8bitDesigner / 1.md
Last active February 1, 2024 06:42
Git post-merge hook which, when you run `git merge` or `git pull` will then `bundle` if the project's Gemfile changed, or `npm install` if the project's package.json changed.Inspired and based off of https://gist.github.com/bumi/5706550

Make bundleing and npm installing easy

This repo has some handy handy hooks to run bundle or npm install whenever you:

  • git checkout a new branch with a different Gemfile or package.json
  • git pull a change to Gemfile or package.json

How can I has this!!?

  1. git clone https://gist.github.com/5869846.git hooks &amp;&amp; cd hooks &amp;&amp; chmod +x install
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active July 17, 2024 14:20
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: