Skip to content

Instantly share code, notes, and snippets.

@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
@joyrexus
joyrexus / README.md
Last active June 19, 2024 09:35 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@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.