wget -r http://192.168.1.2:8080/
View client.md
View app_icon_model.scad
This file contains 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
// Reverse-engineer model an Xcode 12 Instruments icon mesh in OpenSCAD | |
// idcrook@users.noreply.github.com | |
// Inspired to create by | |
// https://twitter.com/edwardsanchez/status/1278152030645698560 | |
// Turn on Animate in App menu bar | |
// [x] Check Dump Pictures | |
// - creates files in sequence frame00000.png | |
// - Select FPS: 12 and Steps: 60 |
View anim.sh
This file contains 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 -x | |
for j in `seq 0 144`;do | |
i=`printf "%04d" $j` | |
r=`expr 5 \* $j` | |
openscad -o logo_anim-$i.png app_icon_model.scad --preview --camera=0,0,0,90,0,$r,415 --colorscheme="Tomorrow Night" --projection=o | |
done |
View base-platform-snippet.el.md
Reference for https://idcrook.github.io/emacs27-from-homebrew-on-macos-with-emoji/
From elisp/base-platforms.el#L167-L174
;;; Useful for https://github.com/dunn/company-emoji
;; https://www.reddit.com/r/emacs/comments/8ph0hq/i_have_converted_from_the_mac_port_to_the_ns_port/
;; not tested with emacs26 (requires a patched Emacs version for multi-color font support)
(if (version< "27.0" emacs-version)
View lang-web.el
This file contains 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
(use-package rjsx-mode | |
:mode "\\.jsx$" | |
:mode "components/.+\\.js$" | |
:init | |
;; auto-detect JSX file | |
;; https://github.com/shahinism/emacs.d/blob/master/configs.org | |
;; source: https://github.com/hlissner/.emacs.d/blob/master/modules/lang/javascript/config.el | |
(push (cons (lambda () | |
(and buffer-file-name | |
(equal (file-name-extension buffer-file-name) "js") |
View homebridge.service
This file contains 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
# /etc/systemd/system/homebridge.service -*- systemd -*- | |
[Unit] | |
Description=Node.js HomeKit Server | |
After=syslog.target network-online.target | |
[Service] | |
Type=simple | |
User=homebridge | |
EnvironmentFile=/etc/default/homebridge | |
ExecStart=/usr/local/bin/homebridge $HOMEBRIDGE_OPTS |
View homebridge-camera-ffmpeg snippet config.json
This file contains 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
{ | |
"platform": "Camera-ffmpeg", | |
"videoProcessor": "/usr/local/bin/ffmpeg", | |
"cameras": [ | |
{ | |
"name": "BasementCam", | |
"videoConfig": { | |
"source": "-re -f v4l2 -video_size 1280x720 -i /dev/video0", | |
"stillImageSource": "-f video4linux2 -input_format mjpeg -video_size 1280x720 -ss 0.9 -i /dev/video0 -frames:v 1", | |
"maxStreams": 2, |
View magit-kill-buffers.el
This file contains 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
;; based on http://manuel-uberti.github.io/emacs/2018/02/17/magit-bury-buffer/ | |
;; had to deviate from it since: | |
;; 1. the post's key bind code did not work for me | |
;; 2. added late loading, otherwise magit-status-mode-map undefined | |
;; 3. 'q' was already bound by magit, so use 'Q' instead of rebinding | |
(defun idc-magit-kill-buffers () | |
"Restore window configuration and kill all (of these) Magit buffers." | |
(interactive) | |
(let ((buffers (magit-mode-get-buffers))) | |
(magit-restore-window-configuration) |
View bashrc_kubernetes_alias_completions.sh
This file contains 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
# source kubectl bash completions | |
if hash kubectl 2>/dev/null; then | |
source <(kubectl completion bash) | |
fi | |
# the magic via https://github.com/cykerway/complete-alias | |
# seems to require BASH 4; install bash from Homebrew and make its BASH 4 the default user shell in macOS | |
# mkdir ~/.bash_completion.d | |
# curl -o ~/.bash_completion.d/bash_complete-alias.sh https://raw.githubusercontent.com/cykerway/complete-alias/master/completions/bash_completion.sh | |
if [ -f ~/.bash_completion.d/bash_complete-alias.sh ] ; then |
View neotree-project-dir.el
This file contains 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
;; NeoTree can be opened (toggled) at projectile project root | |
(defun neotree-project-dir () | |
"Open NeoTree using the git root." | |
(interactive) | |
(let ((project-dir (projectile-project-root)) | |
(file-name (buffer-file-name))) | |
(neotree-toggle) | |
(if project-dir | |
(if (neo-global--window-exists-p) | |
(progn |
NewerOlder