Skip to content

Instantly share code, notes, and snippets.

@petemcw
petemcw / my.cnf
Created February 25, 2011 20:11
Ubuntu MySQL 5.1 Configuration - 4GB RAM, Heavy InnoDB
# The MySQL database server configuration file.
#
# DESC: InnoDB mainly, heavy queries, fewer connections, 4GB RAM
#
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
@joyrexus
joyrexus / README.md
Last active November 5, 2024 14:17 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@dlupu
dlupu / deploy_to_scalingo_from_semaphore_ci.sh
Last active January 11, 2016 07:59
Script I use to automatically deploy code to https://scalingo.com/ from https://semaphoreci.com/
### THIS SCRIPT IS EXECUTED IN THE APP ROOT FOLDER ###
# be sure scalingo.com is a known ssh host 00:00
ssh-keyscan -H -p 22 scalingo.com >> ~/.ssh/known_hosts
# install Scalingo CLO
curl -O https://cli-dl.scalingo.io/install && bash install
# DPL is a deploy tool made for continuous deployment (ruby)
gem install dpl