Skip to content

Instantly share code, notes, and snippets.

@ldez
ldez / gmail-github-filters.md
Last active July 7, 2024 12:46
Gmail and GitHub - Filters

Gmail and GitHub

How to filter emails from GitHub in Gmail and flag them with labels.

The labels in this document are just examples.

Pull Request

Filter Label
@ARolek
ARolek / ImageMagick-Amazon-Linux.md
Last active February 10, 2023 00:07
Install ImageMagick from source on Amazon Linux

I needed a newer version of ImageMagick than is available on the yum packages on Amazon Linux. I tried using the remi repo but it failed with dependency errors. Here is what I did to install ImageMagick with support for PNG, JPG, and TIFF.

download the most recent package

wget http://www.imagemagick.org/download/ImageMagick.tar.gz

uncomress the package

@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active July 4, 2024 13:00
Backend Architectures Keywords and References
@briandoll
briandoll / A_toast_to_you.md
Last active March 19, 2022 01:17
Toasts! - scripts to convert images attached to GitHub issues into an animated gif for serious celebratory purposes

To toast:

  • Make sure you have ImageMagick installed (brew install imagemagick)
  • Change line 7 of toast.rb to the repository name you're working with
  • toast!
$ bundle install
$ ./get_token [user] [pass]
$ export GHUSER=[myuser]
@leegao
leegao / hotpatch.c
Created October 22, 2012 22:10
Context-aware Hot Patching
#include <windows.h>
#include <stdio.h>
//68 BE BA FE CA
const unsigned char OP_PUSH = 0x68;
const unsigned char OP_JMP = 0xE9;
static DWORD rets[10000];
static PDWORD r = NULL;
struct patchwork{
@xslim
xslim / README.md
Created September 21, 2012 10:57
git commit hook for Harvest integration

Installation

  • Install hcl https://github.com/zenhob/hcl
  • cd MyProject
  • curl -L https://gist.github.com/raw/3760898/commit-msg.sh > .git/hooks/commit-msg
  • chmod +x .git/hooks/commit-msg
  • hcl tasks
  • Note ProjectID & TaskID
  • git config hooks.harvesttask "ProjectID TaskID"
  • Example: git config hooks.harvesttask "2551232 1441578"
@DAddYE
DAddYE / hack.sh
Created March 19, 2012 11:31
OSX For Hackers
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@dakatsuka
dakatsuka / deploy.rb
Created October 13, 2011 03:32
Capistrano recipe for Node.js + CoffeeScript
namespace :deploy do
task :compile, :roles => :app do
run <<-CMD
export PATH=#{node_path}:$PATH &&
cd #{latest_release} &&
mkdir lib &&
coffee -o lib -c src
CMD
end
end
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')