Skip to content

Instantly share code, notes, and snippets.

View fightbulc's full-sized avatar
🍼
Family and buisness related projects. OS is on the low side atm

Tino Ehrich fightbulc

🍼
Family and buisness related projects. OS is on the low side atm
View GitHub Profile
@fightbulc
fightbulc / gem-install.sh
Last active December 15, 2015 20:29
Gem install on mac without ROOT
#
# that goes into your .bash_profile
#
export GEM_PATH=~/gems
#
# install e.g. bundler
#
gem install -i ~/gems bundler
$_countries = [
'AND' => 'Andorra',
'ARE' => 'United Arab Emirates',
'AFG' => 'Afghanistan',
'ATG' => 'Antigua and Barbuda',
'AIA' => 'Anguilla',
'ALB' => 'Albania',
'ARM' => 'Armenia',
'AGO' => 'Angola',
'ATA' => 'Antarctica',
@fightbulc
fightbulc / currency.json
Last active December 10, 2015 21:08
iso 4217
{
"aed": {
"priority": 100,
"iso_code": "AED",
"name": "United Arab Emirates Dirham",
"symbol": "د.إ",
"alternate_symbols": ["DH", "Dhs"],
"subunit": "Fils",
"subunit_to_unit": 100,
"symbol_first": true,
@fightbulc
fightbulc / deploy.sh
Created November 29, 2012 07:01 — forked from bastman/deploy.sh
deploy.sh
#!/bin/bash
#==============================================================================
#
# Script for automated deployments.
#
# This system expects at least the following directories to exists:
#
# * ../../temp
# * ../../transfer
# * ../../testing
@fightbulc
fightbulc / gist:4017522
Created November 5, 2012 14:44
Git local/remote repo handling

Remote Server Data

Remote address: 150.0.0.1
Remote user: joe

Setup a remote repo

Remote repos should be able to accept push from other repos. Therefore, we need to setup a bare repo:

mkdir foobar.git
@fightbulc
fightbulc / canvas.js
Created October 9, 2012 14:09
canvas transparency
canvas = document.getElementById('canvasImage');
context = canvas.getContext('2d');
containerWidth = window.innerWidth;
containerHeight = 90;
// set width/height
context.canvas.width = containerWidth;
context.canvas.height = containerHeight;
@fightbulc
fightbulc / gist:2219656
Created March 27, 2012 19:48
sublime pref file
{
"auto_indent": true,
"font_face": "Inconsolata-dz",
"font_size": 15.0,
"highlight_line": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"use_tab_stops": true,
"word_wrap": false
@fightbulc
fightbulc / .gitconfig
Last active October 2, 2015 05:37
gitconfig
[user]
name = fightbulc
email = ehrich@efides.com
[alias]
co = checkout
acm = commit -am
st = status -sb
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
[color]
# Example MySQL config file for small systems.
#
# This is for a system with little memory (<= 64M) where MySQL is only used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order: