Skip to content

Instantly share code, notes, and snippets.

View StanAngeloff's full-sized avatar

Stan Angeloff StanAngeloff

View GitHub Profile
@StanAngeloff
StanAngeloff / .vromerc
Last active August 29, 2015 13:57
Personal Vrome preferences
map j 8j
map k 8k
" Use default Find from Chrome.
map <C-f> <C-v><C-f>
@StanAngeloff
StanAngeloff / README.md
Last active August 29, 2015 13:57
Vim Fuzzy completions
<?php
/**
* (c) PSP UK Group Ltd. <[email protected]>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace Psp\Bundle\SystemConnectorBridgeBundle\Serializer\Exclusion;
<?php
use Guard\Conditions;
function add($a, $b) {
Conditions::requires($a, 'a')->isNumeric();
Conditions::requires($b, 'b')->isNumeric();
return $a + $b;
}
#!/usr/bin/env bash
# Convert the mysql.sql ODE schema to a PostgreSQL format.
VENDOR_PATH='/vagrant/vendor'
APACHE_ODE_PATH="${VENDOR_PATH}/apache-ode"
cat "${APACHE_ODE_PATH}/sql/mysql.sql" | \
`: # Drop InnoDB references.` \
@StanAngeloff
StanAngeloff / composer-github-compare.php
Created April 26, 2013 11:52
Composer -> GitHub compare
#!/usr/bin/env php
<?php
#vim: set ft=php:
$input = '';
while (( ! feof(STDIN))) {
$input = $input . fgets(STDIN);
}
$patterns = [
@StanAngeloff
StanAngeloff / gist:5418866
Created April 19, 2013 08:12
Boje GTK customisations
org.gnome.desktop.interface.gtk-color-scheme="selected_bg_color:#4677f0;base_color:#080808;bg_color:#101010;text_color:#efefef;fg_color:#f0f0f0;"
#!/bin/bash
# If the script fails at any point, don't continue.
set -e
# The `iptables` command. Use 'sudo' if you are running as a non-privileged User.
iptables='sudo /sbin/iptables'
# {{{ Configuration
source :rubygems
gem 'sass', '3.2.5'
gem 'compass', :git => 'git://github.com/chriseppstein/compass.git', :ref => '5204c8168a'
# Suggested by the Listen gem.
gem 'rb-inotify', '~> 0.8.8'
@StanAngeloff
StanAngeloff / README.md
Last active December 10, 2015 12:38
Disable services in Ubuntu permanently (legacy `rc.d` and Upstart init jobs).

Disabling these services shove off about 5-10 seconds in boot time. Results will vary.

$ ./service-disable.sh mongod mongodb apache2 mysql memcached postfix qemu-kvm palm-novacomd lxc lxc-net quasselcore nfs-kernel-server