Skip to content

Instantly share code, notes, and snippets.

View chopfitzroy's full-sized avatar
👽
What are we if not plural?

Otis Sutton chopfitzroy

👽
What are we if not plural?
View GitHub Profile
@fnky
fnky / ANSI.md
Last active July 15, 2025 11:10
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@dabit3
dabit3 / Router.vue
Last active December 4, 2023 21:36
Using AWS Amplify Vue with routing
const router = new Router({
routes: [
{
path: '/',
name: 'Home',
component: Home,
meta: { requiresAuth: true}
},
{
path: '/notes',
@aminalhazwani
aminalhazwani / send-books-from-calibre-to-kindle.md
Last active May 12, 2025 03:19
Send books from Calibre.app to Kindle Paperwhite and Kindle apps

Send books from Calibre.app to Kindle Paperwhite and Kindle apps

Create GMX email account

  1. Create an email account on www.gmx.com
  2. Open "Settings" and check "Enable access to this account via POP3 and IMAP"

Add GMX email to Calibre.app Preferences

  1. Open "Preferences"
@SickLadisHere
SickLadisHere / AdobeSerialChanger.py
Last active May 4, 2025 15:11
Adobe CC Automatic Serial Changer for Unlimited Free Trial
#!/usr/bin/python
import os
from random import *
import fileinput
directory = "C:/Program Files/Adobe/" # path to adobe folder
directorylen = len(directory)
appXmlDirs = []
@jonathanlurie
jonathanlurie / jsont.js
Last active November 26, 2024 07:28
Serialize/deserialize json and conserve typed arrays
/*
Author: Jonathan Lurie - http://me.jonathanlurie.fr
License: MIT
The point of this little gist is to fix the issue of losing
typed arrays when calling the default JSON serilization.
The default mode has for effect to convert typed arrays into
object like that: {0: 0.1, 1: 0.2, 2: 0.3} what used to be
Float32Array([0.1, 0.2, 0.3]) and once it takes the shape of an
object, there is no way to get it back in an automated way!
@krishpop
krishpop / export-toby.js
Last active June 6, 2025 13:26
Export Toby
// code courtesy of Toby team
chrome.storage.local.get("state", o => (
((f, t) => {
let e = document.createElement("a");
e.setAttribute("href", `data:text/plain;charset=utf-8,${encodeURIComponent(t)}`);
e.setAttribute("download", f);
e.click();
})(`TobyBackup${Date.now()}.json`, o.state)
));
@mburakerman
mburakerman / package.json
Last active September 26, 2022 17:32
Webpack 4 config.js (SCSS to CSS and Babel) 👌 The Simplest Usage 👌
{
"name": "webpack-sass",
"version": "1.0.0",
"scripts": {
"start": "webpack-dev-server --open --mode development",
"build": "webpack -p"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
@StevenACoffman
StevenACoffman / _MicroService Proxy Gateway Solutions.md
Last active July 15, 2024 05:12
Microservice Proxy/Gateway Solutions

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from March 2, 2019

Originally, I had included some other solution

@bsquidwrd
bsquidwrd / _Instructions.md
Last active October 20, 2022 11:36
PhantomBot !song command setup

In order to get Spotify now playing you must first enable Last.fm scrobbling inside your Spotify settings and sync it with your last.fm account.

Make sure to fill in the user and api key which you can get from here.

You must place the file inside your /var/www/html directory and name it something such as currentsong.php or song.php

Then, from Twitch chat, you can add a command like this:

!addcom !currentsong Current Song: (customapi thentypeyourwebsiteIPordomainnamehere)
@max-mapper
max-mapper / bibtex.png
Last active November 6, 2024 09:03
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png