This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# src: https://gist.github.com/apfelchips/001b4ffb22c0578220595623f5546107 | |
# mkdir -p "$HOME/bin" && curl -L "https://git.io/JKGha" -o "$HOME/bin/url-open.sh" && chmod +x "$HOME/bin/url-open.sh" && url-open.sh | |
install_desktop_file(){ | |
# MimeSpec: https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/master/data/freedesktop.org.xml.in | |
# Desktop Entry Spec: https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html | |
echo "creating .desktop entry" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put me in: /etc/systemd/system/ | |
# ngrok binary: https://ngrok.com/download | |
# sudo chmod +x /opt/ngrok/ngrok | |
[Unit] | |
Description=ngrok | |
After=network.target | |
[Service] | |
ExecStart=/opt/ngrok/ngrok start --all --config /opt/ngrok/ngrok.yml | |
ExecReload=/bin/kill -HUP $MAINPID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# vim: tabstop=4:softtabstop=4:shiftwidth=4:expandtab: | |
import os | |
import sys | |
import requests | |
docs = { | |
'68000': { | |
'M68000PRM.pdf': 'https://www.nxp.com/files-static/archives/doc/ref_manual/M68000PRM.pdf', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# src: https://git.io/J3aWK | |
# doc: https://docs.nginx.com/nginx/admin-guide/web-server/serving-static-content/ | |
# example: https://www.nginx.com/resources/wiki/start/topics/examples/full/#nginx-conf | |
# example: https://gist.github.com/terrywang/9612069 | |
user user staff; ## Default: nobody | |
worker_processes auto; ## Default: 1 | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env pwsh -noLogo -noProfile | |
# get lftp for windows here: https://nwgat.ninja/lftp-for-windows/ | |
# doc: https://manpages.debian.org/lftp/lftp.1.en.html | |
$USER='' | |
$PASS='' | |
$REMOTEHOSTNAME='' | |
$LOCALDIR='./homedir-subfolder' | |
$REMOTEDIR='/var/www/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | |
# src: https://gist.github.com/apfelchips/62a71500a0f044477698da71634ab87b | |
# New-Item $(Split-Path "$($PROFILE.CurrentUserCurrentHost)") -ItemType Directory -ea 0; Invoke-WebRequest -Uri "https://git.io/JYZTu" -OutFile "$($PROFILE.CurrentUserCurrentHost)" | |
# ref: https://devblogs.microsoft.com/powershell/optimizing-your-profile/#measure-script | |
# ref: Powershell $? https://stackoverflow.com/a/55362991 | |
# ref: Write-* https://stackoverflow.com/a/38527767 | |
# Write-Host wrapper for Write-Information -InformationAction Continue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance force | |
;#Persistent https://www.autohotkey.com/docs/commands/_Persistent.htm | |
;#InstallKeybdHook ; see: https://www.autohotkey.com/docs/v1/lib/_HotkeyModifierTimeout.htm | |
;#NoTrayIcon | |
TraySetIcon("accessibilitycpl.dll","6") ; Keyboard Icon | |
SetWorkingDir(A_ScriptDir) ; Ensures a consistent starting directory. | |
; Debugging | |
; #Warn All, OutputDebug ; Show Warnings in DebugView ( https://learn.microsoft.com/en-us/sysinternals/downloads/debugview ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://www.defaults-write.com | |
# https://github.com/joeyhoer/starter/tree/master/system | |
# https://github.com/atweiden/macfiles/blob/master/macos.sh | |
# https://gist.github.com/ryanpcmcquen/b2e608311f286a4ab3e1 | |
# https://github.com/herrbischoff/awesome-macos-command-line | |
# | |
# discover filesystem changes: sudo filemon -c | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# src: https://gist.github.com/apfelchips/2c42af4b1c10318e5f4d89826324723b | |
# doc: https://github.com/Homebrew/homebrew-bundle | |
# to install execute: brew bundle | |
# to check validity: brew bundle check | |
# examples: | |
# https://github.com/ahmetb/dotfiles/blob/master/.Brewfile | |
# https://github.com/SHxKM/macos-setup/blob/master/Brewfile |