Skip to content

Instantly share code, notes, and snippets.

View destinmoulton's full-sized avatar

Destin Moulton destinmoulton

  • Taos, NM
View GitHub Profile
@destinmoulton
destinmoulton / userChrome.css
Last active April 15, 2024 21:16
Custom Firefox userChrome.css File
/*** Proton Tabs Tweaks ***/
/* Adjust tab corner shape, optionally remove space below tabs */
#tabbrowser-tabs {
--user-tab-rounding: 0px;
}
.tab-background {
border-radius: var(--user-tab-rounding) var(--user-tab-rounding) 0px 0px !important;
@destinmoulton
destinmoulton / Boilerplate.py
Last active February 13, 2020 15:19
Python
#!/usr/bin/env python3
if __name__ == "__main__":
# code here
@destinmoulton
destinmoulton / PBKDF2.js
Last active February 11, 2020 23:21
NodeJS
/**
* Encrypt a Password using PBKDF2
*
* @param {string} password - Plaintext password
* @returns {Promise}
* @resolve {string} The hex value of derived key
* @reject {Error}
*/
function encryptPassword(password) {
return new Promise((resolve, reject) => {
@destinmoulton
destinmoulton / JSDoc Cheat Sheet.js
Last active February 11, 2020 23:32
JS JavaScript
/**
* This is a function.
*
* @param {string} n - A string param
* @return {string} A good string
*
* @example
*
* foo('hello')
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="css/styles.css?v=1.0">
</head>
<body>
# docker-compose.yml
# MySQL and PHPMyAdmin
version: "3.2"
services:
db:
image: mysql:5.7
command: "--innodb_use_native_aio=0"
restart: always
environment:
MYSQL_ROOT_PASSWORD: toor