Skip to content

Instantly share code, notes, and snippets.

View achiurizo's full-sized avatar
🌞

Arthur Chiu achiurizo

🌞
View GitHub Profile
@max-mapper
max-mapper / bibtex.png
Last active November 6, 2024 09:03
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
diff -r 7af530381fec src/eval.c
--- a/src/eval.c Sun Aug 17 17:24:07 2014 +0200
+++ b/src/eval.c Mon Aug 18 16:39:16 2014 +0900
@@ -6899,8 +6899,8 @@
free_unref_items(copyID)
int copyID;
{
- dict_T *dd;
- list_T *ll;
+ dict_T *dd, *dd_next;
@jch
jch / polling_request.coffee
Created August 16, 2013 22:01
some pseudocode for polling long running jobs
# # PollingRequest
#
# A xhr request that repeatedly polls a [progress-aware endpoint](#progress-aware-endpoint).
#
# req = PollingRequest.new
# url: /states.csv
# interval: 2000 # polling interval in milliseconds
# progress: (n)->
# console.log "Progress: #{n} percent"
# success: (res)->
@jasonrudolph
jasonrudolph / 00-about-search-api-examples.md
Last active August 1, 2024 19:26
5 entertaining things you can find with the GitHub Search API
tell application "System Events"
set visible of process "StarCraft II" to true
end tell
do shell script "open \"/Users/clundquist/Library/Application Support/Blizzard/StarCraft II/Accounts/1454200/1-S2-1-501405/Replays/Multiplayer/Derelict Watcher TE (208 Balance v11).SC2Replay\""
delay 2
tell application "QuickTime Player"
set replayRecording to new screen recording
@postmodern
postmodern / gemcutter_rce.rb
Created January 30, 2013 18:35
Proof-of-Concept (PoC) exploit for Gemcutter utilizing the YAML deserialization vulnerability.
#!/usr/bin/env ruby
#
# Proof-of-Concept RCE exploit against Gemcutter
#
# ## Advisory
#
# * TBA
#
# ## Caveats
#
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active November 5, 2024 18:44
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:

@jc00ke
jc00ke / bench.sh
Created November 5, 2012 18:56
[Update] Schooled on benchmarking
#!/bin/bash
rbx_output="rbx-startup.csv"
rbx_int_output="rbx-int-startup.csv"
combined_output="rbx-combined.csv"
rm $combined_output $rbx_output $rbx_int_output
for i in {1..100}
do
/usr/bin/time -a -o $rbx_output -f "%e" -- rbx -e ''
@nu7hatch
nu7hatch / vagrant.md
Created October 30, 2012 21:11
Vagrant boxes

What is Vagrant? It's a neat command line interface and toolchain at top of VirtualBox, which allows you to create and manage virtual "boxes" - vm instances with stuff configured for your project.

Why is it awesome?

Because you don't have to setup everything for the project every time when hop in, you do it once using one of the base boxes, you package it and populate *.box file across all project members. When you need to add some software (new database, cache soft, etc), you just have to add it once, and ping everyone to update their boxes. Briliant, isn't it?

It works great also with designers and non-technical people, download and setup of a box takes few minutes and they don't have to polute their machines with all the project related software.

Above all, no more excuses "works for me", or "works on development, but not on the production" - as boxes are made to simulate production environment as much as possible.

It All Starts With Templates

An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars.

<header>
  <img src="masthead">
</header>

<footer>