Skip to content

Instantly share code, notes, and snippets.

View haxpor's full-sized avatar
Some of my financial tools

Wasin Thonkaew haxpor

Some of my financial tools
View GitHub Profile
haxpor / aligned_allocator.cpp
Created September 27, 2019 09:56 — forked from donny-dont/aligned_allocator.cpp
An aligned allocator for placing SIMD types in std::vector
#ifdef _WIN32
#include <malloc.h>
#include <cstdint>
#include <vector>
#include <iostream>
* Allocator for aligned data.
haxpor /
Created January 15, 2019 08:30 — forked from beatfactor/
Install Nginx on Mac OS from source (without brew)

Install Nginx on Mac OS from source

no Homebrew required

1. Download Nginx

$ cd /usr/local/src
$ curl -OL
$ tar -xvzf nginx-1.12.2.tar.gz && rm nginx-1.12.2.tar.gz
haxpor / Android Studio .gitignore
Created October 10, 2018 13:55 — forked from iainconnor/Android Studio .gitignore
A .gitignore for use in Android Studio
# Built application files
# Crashlytics configuations
# Local configuration file (sdk path, etc)
# Gradle generated files
haxpor /
Created June 10, 2017 00:58 — forked from erichrobinson/
SwitchResX Configuration

#SwitchResX Settings for LG 21:9 UltraWide

SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist .

##Disabling System Integrity Protection (SIP)

If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:

  • Boot into the recovery partition by pressing CMD + R when starting up your Mac.
  • Once in recovery mode, open a terminal window.
  • Type the command csrutil disable
haxpor /
Created March 9, 2017 16:10 — forked from magicznyleszek/
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.


Running a local server for testing purposes:

haxpor / scriptName.php
Last active February 6, 2018 23:01 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just execute `php scriptName.php`
// API access key from Google API's Console
// set only for one for safety
// prep the bundle
$msg = array