Skip to content

Instantly share code, notes, and snippets.

View kis87988's full-sized avatar
:bowtie:

William Chen kis87988

:bowtie:
View GitHub Profile
@Geczy
Geczy / 3 runner.sh
Last active December 20, 2025 22:40
free american airlines wifi
#!/bin/bash
# If not running via sudo, exit
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi
# quit if jq is not installed
if ! command -v jq &>/dev/null; then
@drkdelaney
drkdelaney / .drive_global_blacklist.filter
Created December 2, 2019 20:16
A blacklist for Synology folders and files.
[Version]
major = 1
minor = 1
[Common]
@carhartl
carhartl / Hyper.itermcolors
Created September 11, 2019 10:43
iTerm2 Hyper Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
@pangyuteng
pangyuteng / Dockerfile
Last active September 25, 2024 16:52
docker miniconda ubuntu
#
# ref https://github.com/tebeka/pythonwise/blob/master/docker-miniconda/Dockerfile
#
# miniconda vers: http://repo.continuum.io/miniconda
# sample variations:
# Miniconda3-latest-Linux-armv7l.sh
# Miniconda3-latest-Linux-x86_64.sh
# Miniconda3-py38_4.10.3-Linux-x86_64.sh
# Miniconda3-py37_4.10.3-Linux-x86_64.sh
#
@Mohammed-Sunasra
Mohammed-Sunasra / supervisor.conf
Created December 30, 2018 07:08
Supervisor Configuration with Conda Python environment
[program:{program_name}]
directory=/home/{project_name}/api/falcon_api/app
environment=PATH=/home/anaconda3/envs/{env_name}/bin
command=/home/anaconda3/envs/{env_name}/bin/gunicorn app:api -b 0.0.0.0
autostart=true
autorestart=true
stderr_logfile=/var/log/{project_name}/{filename}.err.log
stdout_logfile=/var/log/{project_name}/{filename}.out.log
NOTE:
@a7ul
a7ul / jamf.md
Last active September 2, 2025 18:19
removing all restrictions on jamf managed macos device - Provided you have root access.

REMOVE JAMF RESTRICTIONS ON MAC

REMOVE ONLY RESTRICTIONS

sudo jamf removeMDMProfile removes all restrictions

sudo jamf manage brings back all restrictions and profiles

REMOVE ALL RESTRICTIONS AND DISABLE JAMF BINARIES WHILE KEEPING YOUR ACCESS TO VPN AND OTHER SERVICES

sudo jamf removeMDMProfile removes all restrictions

@ttrahan
ttrahan / block_personal_appts
Last active February 6, 2026 19:01
Google Apps Script to automatically create, edit and delete events on work calendar for personal calendar events. Instructions on how to set up can be found at https://medium.com/@willroman/auto-block-time-on-your-work-google-calendar-for-your-personal-events-2a752ae91dab
function sync() {
var id="XXXXXXXXXX"; // CHANGE - id of the secondary calendar to pull events from
var today=new Date();
var enddate=new Date();
enddate.setDate(today.getDate()+7); // how many days in advance to monitor and block off time
var secondaryCal=CalendarApp.getCalendarById(id);
var secondaryEvents=secondaryCal.getEvents(today,enddate);
@stvhwrd
stvhwrd / setup_tmux_zsh.sh
Last active August 6, 2025 13:39
Install tmux and zsh on a remote server without root
#!/usr/bin/env bash
# Connect to the server..
# ssh username@server_ip
mkdir ~/.local;
# Download source and build libevent
cd /tmp;
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz;
tar xvfz libevent-2.1.8-stable.tar.gz;

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@wojteklu
wojteklu / clean_code.md
Last active March 16, 2026 06:58
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules