Skip to content

Instantly share code, notes, and snippets.

View chusri's full-sized avatar
🏠
Working from home

Thaweesak Chusri chusri

🏠
Working from home
  • Bangkok
View GitHub Profile
@andrewjamesford
andrewjamesford / script.js
Created March 11, 2012 19:44
Code to invoke AJAX spinner using spin.js
var spinner;
function FireSpinner() {
var opts = {
lines: 12, // The number of lines to draw
length: 12, // The length of each line
width: 7, // The line thickness
radius: 23, // The radius of the inner circle
color: '#fff', // #rgb or #rrggbb
speed: 1, // Rounds per second
@mark-thibault
mark-thibault / SQL Server Fix Error 15023
Created June 9, 2012 02:38
SQL Server Fix Error 15023: User already exists in current database.
USE CEDB2
GO
EXEC sp_change_users_login 'Auto_Fix', 'username', NULL, 'password'
GO
@hjr3
hjr3 / nginx.conf
Created September 23, 2012 17:58
nginx phpfpm + CORS configuration
upstream phpfpm {
server 127.0.0.1:9000;
}
server {
listen 80;
server_name _;
root /var/www/html;
index index.php;
@nhoening
nhoening / bongo.sh
Last active December 14, 2017 01:40 — forked from francoisTemasys/bongo.sh
Allowing to pass a query for exporting specific data. Added a LIMIT option to limit the number of returned results. Added a debug switch to see errors.
#!/bin/bash
LOADING=false
DEBUG=/dev/null
usage()
{
cat << EOF
usage: $0 [options] <DBNAME>
@mshick
mshick / install.sh
Last active April 2, 2020 10:01
Installing Node.js with Homebrew and nvm
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install nvm
brew install nvm
# Export nvm environment
export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"