Skip to content

Instantly share code, notes, and snippets.

View page2me's full-sized avatar

page2me kitarotao page2me

View GitHub Profile
#!/bin/sh
apt remove -y docker docker-engine docker.io containerd runc
apt update
apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt install -y docker-ce docker-ce-cli containerd.io
apt install -y rlwrap emacs ruby default-jdk-headless
@page2me
page2me / grade_4_math_solver.py
Created August 26, 2019 13:21 — forked from maipatana/grade_4_math_solver.py
โจทย์เลข ป.4
import random
answers = []
def main():
_ = 'AFBF CGHB DAFG AEAB BCDC'
temp = {'A':'0', 'B':'0', 'C':'0', 'D':'0', 'E':'0', 'F':'0', 'G':'0', 'H':'0'}
pool = ['0','1','2','3','4','5','6','7','8','9']
for i in temp.keys():
{'packet_full': '005000060332001a283830373337643865613437346331333137323334323734353166393634313030353536393761623108b3f3c4e60510011a18312d3930303031303530372d362d31353537313634333931', 'packet_header': '00', 'packet_size': 80, 'packet_body': b'\x06\x032\x00\x1a(80737d8ea474c131723427451f96410055697ab1\x08\xb3\xf3\xc4\xe6\x05\x10\x01\x1a\x181-900010507-6-1557164391', 'packet_action': 'SEND', 'rom_protocol_id': 6, 'rom_protocol_type': 3, 'rom_protocol_name': 'SceneItem_pb.ItemUse'}
{'packet_full': '005000060332001a286236613136303961623336653066343136643664363633613537623237346634373764373039653608d4f3c4e60510011a18312d3930303031303530372d362d31353537313634333931', 'packet_header': '00', 'packet_size': 80, 'packet_body': b'\x06\x032\x00\x1a(b6a1609ab36e0f416d6d663a57b274f477d709e6\x08\xd4\xf3\xc4\xe6\x05\x10\x01\x1a\x181-900010507-6-1557164391', 'packet_action': 'SEND', 'rom_protocol_id': 6, 'rom_protocol_type': 3, 'rom_protocol_name': 'SceneItem_pb.ItemUse'}
{'packet_full': '005000060332001a2861613931363635633
@page2me
page2me / netatalk-orange-pi-0.sh
Created January 20, 2019 17:32 — forked from narate/netatalk-orange-pi-0.sh
Using Orange Pi Zero as macOS Time Machine Server
#!/bin/bash
apt-get install -y build-essential \
libevent-dev libssl-dev \
libgcrypt11-dev libkrb5-dev \
libpam0g-dev libwrap0-dev \
libdb-dev libtdb-dev avahi-daemon \
libavahi-client-dev libacl1-dev libldap2-dev \
libcrack2-dev systemtap-sdt-dev libdbus-1-dev \
libdbus-glib-1-dev libglib2.0-dev \
libio-socket-inet6-perl \
@page2me
page2me / BlynkServer_Free.txt
Created December 21, 2018 16:55 — forked from TridentTD/BlynkServer_Free.txt
BlynkServer Free (more than 100,000 energy)
รวม Blynk Server ฟรี ที่
จะได้ Energy แบบเหลือเฟือใช้สะดวก
ใครมีเพิ่มเติม แจ้งเพิ่มได้เลยนะครับ
รวมไว้ที่เดียวกัน
#update 11 December 2018 @ 10:00
Total : 7 Free Blynk Server
----------------------------------------------------
1.
@page2me
page2me / nginx-tuning.md
Created November 28, 2018 16:55 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

[user]
name = Kowito
email = hi@kowito.com
[core]
excludesfile = ~/.gitignore
autocrlf = input
editor = vim
excludesfile = /Users/kowito/.gitignore_global
[color]
ui = auto
@page2me
page2me / babun-install.rst
Created June 20, 2018 21:04 — forked from jhermann/babun-install.rst
Babun install

Babun Setup for Python Developers

Babun is “A Windows shell you will love!”

It's a turn-key CygWin distribution for developers and is very easy to install and maintain. For a Python developer, Babun allows working in an almost-POSIX environment – with some limitation, of course. This causes less friction when handling FOSS projects that are often biased towards a standard Linux environment, e.g. by using shell scripts for boot-strapping and things like that.

#!/usr/bin/python
import sys
import pwn
# MAGIC BATH SALTS GO.
# 0x08048386: call eax;
# 0x08048386: call eax; leave; ret;
@page2me
page2me / iterm2-solarized.md
Created July 11, 2017 17:28 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k