Skip to content

Instantly share code, notes, and snippets.

View cocoastorm's full-sized avatar
😤
Doing my best to be unphased

Khoa Nguyen cocoastorm

😤
Doing my best to be unphased
  • Surrey, BC, Canada
View GitHub Profile
@cocoastorm
cocoastorm / .rtorrent.rc
Created September 13, 2019 16:17
rtorrent xmlrpc nginx proxy
network.scgi.open_local = /var/run/user/.rtorrent.sock
schedule2 = chmod_scgi_socket, 0, 0, "execute2=chmod,\"g+w,o=\",/var/run/user/.rtorrent.sock"
@cocoastorm
cocoastorm / README.md
Last active August 29, 2019 18:25
Parse Search String

Parse Search String

Given a search string like (eg. Github Issue Search):

subject: hi bye text: yes no

Parse it:

@cocoastorm
cocoastorm / README.md
Last active August 12, 2019 21:48
Script to Search /usr/lib Files

check.py

Given a needed.txt file with required dependencies, search thorough these given directories for them:

  • /usr/lib
  • /usr/lib32
  • /usr/lib64

Following this stackoverflow post:

@cocoastorm
cocoastorm / httpHealthCheck.ino
Last active May 18, 2019 03:42
ESP8266 HTTP HealthCheck
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
// on board small LED
// #define BOARD_LED 6
// death counter
int ded = 0;
// green led on gpio 14
@cocoastorm
cocoastorm / pre-push
Last active January 3, 2019 20:42
PHP_CodeSniffer Docker Git Hook
#!/bin/sh
# replace the docker image, if you want
PHPCS_IMAGE=khoanguyent/codesniff
if [ -f "phpcs.xml" ]; then
echo "Running PHPCS in Docker\n"
docker run --rm -v $PWD:/data/src \
${PHPCS_IMAGE} \
@cocoastorm
cocoastorm / README.md
Last active March 8, 2024 09:23
rexray/s3fs Docker Plugin Install with Minio

Getting Started

Make sure Docker is installed!

Get your Minio endpoint url, accesskey, and secretkey ready!

Install Docker Plugin

docker plugin install rexray/s3fs \