Skip to content

Instantly share code, notes, and snippets.

View matiskay's full-sized avatar

Edgar Marca matiskay

View GitHub Profile
@matiskay
matiskay / README.md
Created February 12, 2013 19:37 — forked from fnichol/README.md

Vagrant apt-cacher-ng Box

Simple and easy, just:

mkdir apt-cacher-ng && cd apt-cacher-ng
curl -LO https://raw.github.com/gist/1747868/Vagrantfile
vagrant up

Tail the logs perhaps?

# To install the Python client library:
# pip install -U selenium
# Import the Selenium 2 namespace (aka "webdriver")
from selenium import webdriver
# iPhone
driver = webdriver.Remote(browser_name="iphone", command_executor='http://172.24.101.36:3001/hub')
# Android
@import compass
$icons: sprite-map("icons/*.png")
$icons-hd: sprite-map("icons-hd/*.png")
i
background: $icons
display: inline-block
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)
background: $icons-hd
#! /bin/bash
# @TODO: Add a function to download BrowserStackTunnel.jar
BROWSER_STACK_API_KEY=""
SITE_PATH=""
java -jar BrowserStackTunnel.jar -f $BROWSER_STACK_API_KEY $SITE_PATH
@matiskay
matiskay / generate_css_doc.sh
Created May 22, 2013 02:28
Generates CSS documentation from scss using styledocco
#! /bin/bash
# Styledocco Information
# http://jacobrask.github.io/styledocco/
# # styledocco -n "doc" scss
# Style docco using sasss
# https://github.com/dzignus/compass-styledocco-example
styledocco -n "docs" --preprocessor "sass --compass" scss/
@import "compass/css3";
@include font-face("Source Sans Pro",
font-files(
"SourceSansPro-Regular.ttf",
"SourceSansPro-Bold.ttf"
)
);
h1 {
@matiskay
matiskay / config.rb
Created May 22, 2013 04:07
My compass config.rb
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "scss"
images_dir = "images"
javascripts_dir = "js"
fonts_dir = "fonts"
#output_style = :nested
#! /bin/bash
OLD_URL=''
NEW_URL=''
PREFIX='wp_' # Default prefix.
echo "UPDATE ${PREFIX}_options SET option_value = replace(option_value, '$OLD_URL', '$NEW_URL') WHERE option_name = 'home' OR option_name = 'siteurl';"
echo "UPDATE ${PREFIX}_posts SET guid = REPLACE (guid, '$OLD_URL', '$NEW_URL');"
echo "UPDATE ${PREFIX}_posts SET post_content = REPLACE (post_content, '$OLD_URL', '$NEW_URL');"
echo "UPDATE ${PREFIX}_postmeta SET meta_value = REPLACE (meta_value, '$OLD_URL', '$NEW_URL');"
$('body').keydown(function(e) {
if (e.keyCode == 37) { // left
App.prev_handler.click();
}
else if(e.keyCode == 39) { // right
App.next_handler.click();
}
});

My version of Gifify

Creates gif files from .mov files. This is really helpful for documentation and asking for help.

  • Remove CloudApp Dependency
  • Make it quiet.

URL: https://github.com/jclem/gifify