Skip to content

Instantly share code, notes, and snippets.

@risyasin
risyasin / ubuntu-php7-install.sh
Last active January 30, 2016 00:20
PHP7 on Ubuntu 15.04 and 15.10 with php-fpm systemd
# mkdir /usr/src/php7
# cd /usr/src/php7
# aria2c https://gist.githubusercontent.com/risyasin/8b42849ff4b5786292d3/raw/eae0e67737bcb2f4eed6d72c24a6d560dd7161de/ubuntu-php7-install.sh
## php7 compile requirements
apt-get install -y git build-essential autoconf automake pkg-config libtool
apt-get install -y re2c
apt-get install -y bison
apt-get install -y openssl
apt-get install -y libssl-dev
@risyasin
risyasin / Makefile
Created January 12, 2016 12:33 — forked from kvz/Makefile
The only Makefile for Node.js projects you'll ever need - https://twitter.com/kvz/status/685853830425231361
# Licensed under MIT.
# Copyright (2016) by Kevin van Zonneveld https://twitter.com/kvz
#
# This Makefile offers convience shortcuts into any Node.js project that utilizes npm scripts.
# It functions as a wrapper around the actual listed in `package.json`
# So instead of typing:
#
# $ npm script build:assets
#
# you could just as well type:
@risyasin
risyasin / nginx.service
Created January 2, 2016 21:21
Nginx service for systemd
[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/var/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
@risyasin
risyasin / centos-php7-install.sh
Last active July 2, 2017 07:43
PHP7 on Fedora 23 with php-fpm
## Create a source directory
## mkdir /usr/src/php7
## cd /usr/src/php7
## copy this files as /usr/src/php7/install.sh
## aria2c https://gist.githubusercontent.com/risyasin/92075324caa9a46bfd5c/raw/83e0851c42afc4f3557bc4aea02197ddf92fed73/centos-php7-install.sh
## php7 compile requirements
dnf install -y git
dnf install -y gcc bison automake autoconf
@risyasin
risyasin / gist:69b64f395289ceb9a9ae
Created October 12, 2015 19:16 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@risyasin
risyasin / http-status-codes.ini
Created July 8, 2015 11:12
http-status-codes.ini
[Informational 1xx]
100="Continue"
101="Switching Protocols"
[Successful 2xx]
200="OK"
201="Created"
202="Accepted"
203="Non-Authoritative Information"
204="No Content"
@risyasin
risyasin / ramdisk.sh
Last active August 29, 2015 14:24 — forked from rxin/ramdisk.sh
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then
@risyasin
risyasin / gist:e9a88c2bd6e9bf45f161
Created June 11, 2015 09:28
sample domain-mail install
nano /etc/bind/named.conf.local
```
zone "evrima.net" {
type master;
file "/var/lib/bind/evrima.net.hosts";
allow-transfer {
127.0.0.1;
@risyasin
risyasin / nginx.conf
Last active August 29, 2015 14:22 — forked from plentz/nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@risyasin
risyasin / Gulpfile.js
Created May 19, 2015 21:50
Gulp config with jshint, css/js minify, concat, livereload/browsersync, nodemon
"use strict";
var gulp = require('gulp'),
concat = require('gulp-concat'),
nodemon = require('gulp-nodemon'),
mincss = require('gulp-minify-css'),
uglify = require('gulp-uglify'),
jshint = require('gulp-jshint'),
head = require('gulp-header'),
bs = require('browser-sync').create(),