Skip to content

Instantly share code, notes, and snippets.

View Anthonykung's full-sized avatar
🥕
crazy carrot

Anthony Kung Anthonykung

🥕
crazy carrot
View GitHub Profile
@Anthonykung
Anthonykung / .bashrc
Created February 1, 2024 06:09
Default Ubuntu .bashrc taken from WSL Ubuntu installation
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@Anthonykung
Anthonykung / fix-ssh-perms.sh
Last active October 9, 2021 22:05
Fix SSH Perms
#!/bin/bash
# Run this with `sh ./fix-ssh-perms.sh` in any directory
chown ${USER}:${USER} ~/.ssh
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
chmod 600 ~/.ssh/*
chmod 644 ~/.ssh/*.pub
@Anthonykung
Anthonykung / Makefile
Last active February 7, 2021 06:55
Anthonian Universal C/C++ Makefile
##########################################################
# Name: Anthonian Universal C/C++ Makefile #
# Description: Universal Makefile For Anthonian #
# C/C++ Projects #
# Download: wget https://gist.anth.dev/fs/c/Makefile #
# Date: May 28, 2018 #
# Created with <3 by Anthony Kung #
# Author URI: https://anth.dev #
# License: Apache 2.0 (See /LICENSE.md for details) #
##########################################################
@Anthonykung
Anthonykung / apr.sh
Last active January 16, 2021 06:04
Anthonian Permission Repairer - Repair broken permissions for Anthonian Node.js projects
#!/bin/sh
##########################################################
# Name: Anthonian Permission Repairer #
# Description: Repair broken permissions for Anthonian #
# Node.js projects #
# Download: wget https://gist.anth.dev/fs/apr.sh #
# Usage: sh apr.sh {{ REPLACE WITH DIRECTORY PATH }} #
# Example: sh apr.sh ./ #
# Date: November 1st, 2020 #
@Anthonykung
Anthonykung / osf-scrapebook-css.css
Created August 2, 2020 21:26
Scrapebook CSS For OSF
/* Created with <3 by Anthony Kung
* For OSF
*/
/* Begin CSS */
body {
background-color: #02ddf7;
}
@Anthonykung
Anthonykung / scrapbook-css.css
Last active September 2, 2020 05:13
Anthony's Hack Club Scrapbook CSS
/**************************************************
* *
* Name: scrapbook-css.css *
* Description: Anthony's Hack Club Scrapbook CSS *
* Date: June 20, 2020 *
* Created by: Anthony Kung *
* Business URL: https://hailiga.org/anthonykung *
* Author URL: https://anthonykung.com *
* *
**************************************************/