Skip to content

Instantly share code, notes, and snippets.

View PokeGuys's full-sized avatar
💭
(`・ω・´)

PokeGuys

💭
(`・ω・´)
View GitHub Profile
@PokeGuys
PokeGuys / spwn-bypass.user.js
Last active March 19, 2022 10:13
SPWN geo bypass
// ==UserScript==
// @name SPWN geo bypass
// @namespace spwn.geo.bypass
// @version 0.3
// @description Bypass SPWN geocheck.
// @author PokeGuys
// @match *://spwn.jp/*
// @match *://virtual.spwn.jp/*
// @run-at document-start
// @grant none
@PokeGuys
PokeGuys / .env
Last active March 21, 2021 17:22
LNMP dockerize setup scripts.
NGINX_HOST_PORT=8000
PHP_FPM_XDEBUG_PORT=9003
MYSQL_HOST_PORT=3306
MEMCACHED_HOST_PORT=11121
@PokeGuys
PokeGuys / yt-emoji.user.js
Created February 20, 2021 10:12
Youtube emoji fix
// ==UserScript==
// @name Youtube emoji fix
// @namespace youtube.emoji.fix
// @version 0.1
// @description Improved Youtube chat performance by replacing SVG emoji to PNG file.
// @author PokeGuys
// @match *://www.youtube.com/live_chat*
// @run-at document-start
// @grant none
// ==/UserScript==
@PokeGuys
PokeGuys / android.md
Last active May 29, 2021 18:49
SSH keygen

Android

CA Cert

#!/bin/bash
CERT=$HOME/.mitmproxy/mitmproxy-ca-cert.cer
NAME=$(openssl x509 -in $CERT -subject_hash_old -noout)
cp ${CERT} ${OUT}/system/etc/security/cacerts/${NAME}.0
@PokeGuys
PokeGuys / .editorconfig
Last active June 28, 2020 15:48
tsconfig with strict null check
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
@PokeGuys
PokeGuys / arch-pi.resize.md
Last active March 21, 2021 14:00
Linux setup script

Arch Linux

How can I resize my / (root) partition?

Step by Step Instructions

sudo fdisk /dev/mmcblk0

then type p to list the partition table

@PokeGuys
PokeGuys / Dockerfile
Last active August 15, 2019 16:09
LEMP with Swoole
FROM php:7.2.8-fpm
RUN apt-get update && apt-get install -my wget gnupg
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN apt-get update && apt-get -y --no-install-recommends install apt-transport-https
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list
RUN apt-get update
RUN ACCEPT_EULA=Y apt-get install -y msodbcsql17
@PokeGuys
PokeGuys / haproxy.cfg
Last active July 15, 2022 23:13
SYN Flood filter, Accept PROXY protocol. Rewrite source IP to real client IP in TCP.
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
daemon
defaults
log global