Skip to content

Instantly share code, notes, and snippets.

Learning Machine Learning

Todsaporn Banjerdkit katopz

Learning Machine Learning
Block or report user

Report or block katopz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 3box
katopz /
Created Jun 19, 2019
Set Swap 4GB, Swappiness 10.
# Execute
run() {
# Set Swap 4GB, Swappiness 10.
# ref :
# Turn the swapfile off if has any.
sudo swapoff -a
# Check current disk usage.
df -h
View Install protobuf 3.8.0 on Ubuntu 18.04 x86_64
#! /bin/bash
# Make sure you grab the latest version
curl -OL
# Unzip
unzip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/

Keybase proof

I hereby claim:

  • I am katopz on github.
  • I am katopz ( on keybase.
  • I have a public key ASDMiDleOjn0S67Y5UyrYRM-novFdPVcZPM4ueXPktrMYAo

To claim this, I am signing this object:

katopz /
Last active Jul 22, 2019 — forked from cdjhlee/
Setup zeromq in Ubuntu 16.04
# Download zeromq
# Ref
# Unpack tarball package
tar xvzf zeromq-4.2.2.tar.gz
# Install dependency
katopz /
Created Aug 16, 2017
Download .ts video file by ffmpeg via .m3u8
# Install ffmpeg
brew install ffmpeg
# Download
ffmpeg -i -c copy -bsf:a aac_adtstoasc output.mp4
katopz /
Last active Jul 2, 2017
To create DigitalOcean droplet
# Get name andcs image from arguments
# Get droplet option
DO_OPTION=$(tr -d '\n' < ./droplets.json | tr -d ' ')
# Create droplet
katopz / droplets.json
Created Jul 2, 2017
DigitalOcean template
View droplets.json
"name": "$NAME",
"region": "sgp1",
"size": "512mb",
"image": "$IMAGE",
"backups": true,
"private_networking": true,
"ipv6": true,
"monitoring": true,
"ssh_keys": [
katopz / snap.json
Created Jul 2, 2017
Packer example
View snap.json
"variables": {
"api_token": "{{env `DO_TOKEN`}}"
"builders": [
"api_token": "{{user `api_token`}}",
"type": "digitalocean",
"region": "sgp1",
"image": "ubuntu-16-04-x64",
katopz /
Created Jun 23, 2017
Docker Apache bench as pretty JSON

Grab only json result

docker run -it --rm -t devth/alpine-bench -n3 -v2 | jq -R 'fromjson?' 1>./test/speed-https-jamplay-world.json
You can’t perform that action at this time.