Skip to content

Instantly share code, notes, and snippets.

View walm's full-sized avatar

Andreas Wålm walm

  • Sweden
View GitHub Profile
@walm
walm / less.vim
Created January 16, 2011 09:30 — forked from bryanjswift/less.vim
" Vim syntax file
" Language: LESS Cascading Style Sheets
" Maintainer: Leaf Corcoran <leafot@gmail.com>
" Modifier: Bryan J Swift <bryan@bryanjswift.com>
" URL: http://leafo.net/lessphp/vim/less.vim
" URL: http://gist.github.com/161047
" Last Change: 2009 August 4
" LESS by Leaf Corcoran
" CSS2 by Nikolai Weibull
" Full CSS2, HTML4 support by Yeti
@walm
walm / html5.vim
Created January 16, 2011 09:34 — forked from rcmachado/html5.vim
" Vim syntax file
" Language: HTML (version 5)
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
" URL: http://gist.github.com/256840
" Last Change: 2010 Aug 26
" License: Public domain
" (but let me know if you liked it :) )
"
" Note: This file just adds the new tags from HTML 5
" and don't replace default html.vim syntax file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.811765 0.796078 0.564706 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Inconsolata - 16.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>1 1 1 1</string>
@walm
walm / couchdb-ec2-install.sh
Created August 25, 2011 19:15 — forked from msmith/couchdb-ec2-install.sh
Set up CouchDB on EC2
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
nameserver 127.0.0.1
port 20560
@walm
walm / image_filters.rb
Created October 3, 2012 05:03 — forked from tonycoco/image_filters.rb
Useful image filters (Instagram/Hipster/Cool) for CarrierWave using MiniMagick (ImageMagick)
module CarrierWave
module MiniMagick
def toaster_filter
manipulate! do |img|
img.modulate '150,80,100'
img.gamma 1.1
img.contrast
img.contrast
img.contrast
img.contrast
@walm
walm / testflight.sh
Created November 1, 2012 21:09 — forked from azu/testflight.sh
xcode build & upload testflight from coomand line
#!/bin/sh
######CONFIG#####
# TestFlight API Token
# from https://testflightapp.com/dashboard/team/edit/
# $ git config --global testflight.apitoken XXX
# form https://testflightapp.com/account/#api
# $ git config --global testflight.teamtoken XXX
# Testflight API token
API_TOKEN=$(git config testflight.apitoken)
class ProgressBar
def initialize(units=60)
@units = units.to_f
end
def print(completed, total)
norm = 1.0 / (total / @units)
progress = (completed * norm).ceil
pending = @units - progress
Kernel.print "[#{'=' * progress }#{' ' * ( pending )}] #{percentage(completed, total)}%\r"
@walm
walm / s3cmd_install.md
Last active August 29, 2015 14:20 — forked from dominicsayers/s3cmd_install.md
s3cmd install on ubuntu
  1. sudo apt-get install python-setuptools
  2. wget http://sourceforge.net/projects/s3tools/files/s3cmd/1.5.2/s3cmd-1.5.2.tar.gz
  3. tar xvfz s3cmd-1.5.2.tar.gz
  4. cd s3cmd-1.5.2
  5. sudo python setup.py install
  6. s3cmd --configure