Skip to content

Instantly share code, notes, and snippets.

View NatpakalJAM's full-sized avatar
😁
Going Forward

Natpakal K. NatpakalJAM

😁
Going Forward
  • Bangkok, Thailand
View GitHub Profile
@NatpakalJAM
NatpakalJAM / README.md
Created December 21, 2021 12:48
README.md

Hi! 👋

✨ Currently, I'm learning about Typescript | React.js | Next.js ✨

Golang | Node.js | PHP | Python dev who find money to pay news airsoft gun 🔫

Seeking Entry-Mid level Opportunities in the Software or Data Engineer field

My homepage with my basics bio on natpakal-profiles.web.app

@NatpakalJAM
NatpakalJAM / docker-compose.yml
Last active March 5, 2021 03:31
nginx-php-fpm
version: "3"
services:
nginx-php-fpm:
image: wyveo/nginx-php-fpm:php80
container_name: nginx-php-fpm
ports:
- "8010:80"
volumes:
# - ./nginx/supervisord.conf:/etc/supervisord.conf
function konami(callback) {
let kkeys = [];
// up,up,down,down,left,right,left,right,B,A
const konami = '38,38,40,40,37,39,37,39,66,65';
return event => {
kkeys.push(event.keyCode);
if (kkeys.toString().indexOf(konami) >= 0) {
callback();
kkeys = [];
}
@NatpakalJAM
NatpakalJAM / app.js
Created June 5, 2019 08:24 — forked from owulveryck/app.js
WebSocket simple example / server in go, client in JS
window.addEventListener("load", function(evt) {
var output = document.getElementById("output");
var input = document.getElementById("input");
var ws;
var print = function(message) {
var d = document.createElement("div");
d.innerHTML = message;
output.appendChild(d);
@NatpakalJAM
NatpakalJAM / Extend_your_RAM_by_adding_a_swap.md
Created April 5, 2019 08:30
Extend your RAM by adding a swap

Extend your RAM by adding a swap file: linux-add-a-swap-file-howto

a swap file is a file stored on the computer hard drive that is used as a temporary location to store information that is not currently being used by the computer RAM. By using a swap file a computer has the ability to use more memory than what is physically installed in the computer swapfile

In Short:

Login as root: su - or execute the commands with sudo in front

  1. dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
@NatpakalJAM
NatpakalJAM / docker-compose.yml
Last active April 4, 2019 06:36
docker-wordpress
version: '3'
services:
wp_db:
image: mariadb:10.1
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
@NatpakalJAM
NatpakalJAM / docker-compose.yml
Last active April 4, 2019 06:36
docker-redis-commander
version: '3'
services:
redis:
container_name: redis
hostname: redis
image: redis
redis-commander:
container_name: redis-commander
hostname: redis-commander
@NatpakalJAM
NatpakalJAM / Dockerfile
Created January 9, 2019 09:58 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli