Skip to content

Instantly share code, notes, and snippets.

View ineersa's full-sized avatar

ineersa ineersa

View GitHub Profile
@trusktr
trusktr / DefaultKeyBinding.dict
Last active December 4, 2025 13:34
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
<?php
/**
* Class ImageHelper
*
* Simple class to manage image load, save and resize
*
* Usage:
*
* $image = new ImageHelper;
<?php
class TextOnImage
{
public $jpegQuality = 100;
public $ttfFontDir = 'fonts';
private $ttfFont = false;
@sl-digital
sl-digital / Amazon-Linux-AMI PHP55
Last active May 24, 2021 11:03
Install Apache, MySQL and PHP 5.5 on Amazon Linux AMI
:: UPDATE YUM ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
sudo yum update -y
:: INSTALL WEBSERVER :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
sudo yum install httpd24
sudo service httpd start
sudo chkconfig httpd on
chkconfig --list httpd