Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
python -m SimpleHTTPServer 8000
<body style="background-color: #223"> | |
<div style="font-size:45px"><b>ℤ𝕫𝔽𝕏 - Zuper Zmall Zound Zynth</b></div> | |
<div style="font-size:20px"><i>A tiny tool for creating and playing sound effects with JavaScript</i></div> | |
<div style="max-width:799px"> | |
<div style="font-size:20px"> | |
<input id="volume" type="range" min=0 max=1 step=.01 | |
oninput="zzfxV=volume.value;volumeText.innerHTML=volume.value*100|0"></input> |
#!/bin/bash | |
# create_jwt.sh (c) NGINX, Inc. [v0.3 10-Jul-2019] Liam Crilly <liam.crilly@nginx.com> | |
# | |
# This script accepts a JSON claimset (JWT payload) and creates produces a | |
# JOSE-signed token to stdout using one of the supported signature algorithms. | |
# | |
# CHANGELOG | |
# v0.1 Initial version (hs256 only) | |
# v0.2 Added support for various hs signature lengths | |
# v0.3 Checks for expired exp claims, option to specify exp duration |
# Load JavaScript code from here | |
js_include conf.d/header_logging.js; | |
# Fill variable from JS function | |
js_set $access_log_with_headers kvAccessLog; | |
# Define special log format | |
log_format kvpairs $access_log_with_headers; | |
server { |
// Plain SASS Trigonometry Algorithm in Taylor Expansion | |
$pi: 3.14159265359; | |
$_precision: 10; | |
@function pow($base, $exp) { | |
$value: $base; | |
@if $exp > 1 { | |
@for $i from 2 through $exp { | |
$value: $value * $base; |
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: brown; icon-glyph: file-code; | |
// To use this script, you need to configure an OAuth App on GitHub. | |
// Follow the instructions on the link below to create your OAuth App. | |
// | |
// When you are asked to put in a redirect URL, you should put the URL for running this script in Scriptable. Assuming the name of this script is "Create Gist", the URL is scriptable:///run?scriptName=Create%20Gist | |
// | |
// https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/ | |
// |
#!/bin/bash | |
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it! | |
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS. | |
# This script needs to be run from the volume you wish to use. | |
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh | |
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
# Get active services: launchctl list | grep -v "\-\t0" | |
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents |
JavaScript 22 hrs 33 mins ███████▍░░░░░░░░░░░░░ 35.4% | |
Other 17 hrs 39 mins █████▊░░░░░░░░░░░░░░░ 27.7% | |
YAML 6 hrs 13 mins ██░░░░░░░░░░░░░░░░░░░ 9.8% | |
Lua 5 hrs 6 mins █▋░░░░░░░░░░░░░░░░░░░ 8.0% | |
Markdown 4 hrs 42 mins █▌░░░░░░░░░░░░░░░░░░░ 7.4% |
#!/bin/bash | |
# | |
# using curl on github | |
# | |
curl -LO --output-dir "$DOTFILES/iterm" https://github.com/gnachman/iTerm2-shell-integration/archive/refs/heads/main.zip | \ | |
unzip "$DOTFILES"/iterm/main.zip "iTerm2-shell-integration-main/utilities/*" -d "$DOTFILES/iterm" |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
python -m SimpleHTTPServer 8000