Skip to content

Instantly share code, notes, and snippets.

View mahasak's full-sized avatar
🐻
PapaBear online !!

Max Pijittum mahasak

🐻
PapaBear online !!
View GitHub Profile
@mahasak
mahasak / nginx.conf
Created July 2, 2016 17:29 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
https://github.com/mahasak/nodejs-train-day-2
Nginx-windows + windows service wrapper
https://drive.google.com/folderview?id=0Bw531b656t9NUFdVUWRBOV9La0U&usp=sharing
JMeter
http://jmeter.apache.org/download_jmeter.cgi
http://jmeter-plugins.org/wiki/PluginInstall/
NPM cache server
@mahasak
mahasak / virtualbox_vagrant_home.bat
Created July 13, 2016 16:36 — forked from michaelklapper/virtualbox_vagrant_home.bat
Reconfigure VirtualBox and Vagrant home directory for Windows Set VirtualBox home directory to: C:\VMs Store vagrant boxes: C:\VMs\vagrant.d
# VirtualBox home directory.
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setproperty machinefolder "C:\VMs"
# Vagrant home directory for downloadad boxes.
REG ADD HKCU\Environment /v VAGRANT_HOME /t REG_SZ /d "C:\VMs\vagrant.d"
@mahasak
mahasak / 1_Dockerised_JMeter.md
Last active August 7, 2016 16:06 — forked from hhcordero/1_Dockerised_JMeter.md
Dockerized JMeter - A Distributed Load Testing Workflow
$ wget -c https://www.openssl.org/source/openssl-1.0.2h.tar.gz
$ tar xf openssl-1.0.2h.tar.gz -C /usr/local/
$ cd /usr/local/openssl-1.0.2h
$ ./config
$ make depend
$ make
$ make test
$ make install
$ mv /usr/bin/openssl /usr/bin/openssl_1.0.1e
$ ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
#! /bin/bash
VBR="2500k" # Bitrate
FPS="30" # FPS
QUAL="medium" # Youtube Quality Preset
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # Youtube RTMP URL
SOURCE="udp://239.255.139.0:1234" # Source in UDP
KEY="" # YouTube API KEY
namespace Samples
{
using System;
using System.Reflection;
using OpenQA.Selenium;
using OpenQA.Selenium.Remote;
public class RemoteTouchEnabledDriver : RemoteWebDriver, IHasTouchScreen
{
git ls-files -m | xargs -i git update-index --assume-unchanged "{}"
git ls-files -m | xargs -i git update-index --assume-unchanged "{}"
// Global Scope
var bear = "Brother Bear";
function greetTheBear() {
return alert(bear);
}
// Function Scope (Local Scope)
function greetTheBigBear() {
var greet = "BearHunter";