- Make sure you have Emacs with treesitter support:
M-:(treesit-available-p)RETshould returnt - Make sure you have installed python treesitter grammar
| ;; nano-emacs.el --- NANO Emacs (minimal version) -*- lexical-binding: t -*- | |
| ;; Copyright (c) 2025 Nicolas P. Rougier | |
| ;; Released under the GNU General Public License 3.0 | |
| ;; Author: Nicolas P. Rougier <nicolas.rougier@inria.fr> | |
| ;; URL: https://github.com/rougier/nano-emacs | |
| ;; This is NANO Emacs in 256 lines, without any dependency | |
| ;; Usage (command line): emacs -Q -l nano.el -[light|dark] |
| #!/usr/bin/env bash | |
| # Download VMware Fusion for macOS without a Broadcom account. | |
| # | |
| # This script allows you to download various versions of VMware Fusion | |
| # from Broadcom's Cloudflare CDN (versions 8.0.0 to 13.6.3) | |
| # or from the archive.org VMware Workstation archive (versions 8.x.x+). | |
| # | |
| # Options: | |
| # -k: Keep the downloaded file compressed (Cloudflare only; ignored for archive.org). |
by Danny Quah, Jan 2022
This gist describes using Obsidian on iPad while syncing to other Obsidian platforms. The procedure uses git in iSH on iOS, and thus differs from using either Obsidian Sync or Working Copy as described in Obsidian/iOS+app.
(To be clear, Obsidian is one of my favourite Apps, and I'm all for supporting the team financially. Moreover, everything I've heard suggests the paid Obsidian Sync is excellent. However, I don't want my syncing processes to proliferate --- each service using a different client sync flow --- so I keep my systems minimal: just syncthing and git. After writing this I found an Obsidian Forum writeup which uses the same tools I do to achieve the same goal, but you'll want to read that with its accumulated contributions dispersed across the comments. So at least I was thinking
The set lines
- These lines deliberately cause your script to fail. Wait, what? Believe me, this is a good thing.
- With these settings, certain common errors will cause the script to immediately fail, explicitly and loudly. Otherwise, you can get hidden bugs that are discovered only when they blow up in production.
set -euxo pipefailis short for:
set -e
set -u
| [ | |
| { | |
| "name": "Corne, default layer", | |
| "author": "https://github.com/c0psrul3", | |
| "plate": false, | |
| "keyboard-layout-editor": "http://www.keyboard-layout-editor.com/#/gists/adfa7c3cd8f0c6d3a7b9155c6eab1748#file-corne-crkbd_c0psrul3-default-json", | |
| "qmk-config": "https://config.qmk.fm/#/crkbd/rev1/LAYOUT" | |
| }, | |
| [ | |
| { |
| ---------------------------------------------------------------------------------------------------- | |
| OWASP Top Ten | |
| https://owasp.org/www-project-top-ten/ | |
| The CWE Top 25 | |
| https://www.sans.org/top25-software-errors/ | |
| 2022 CWE Top 25 Most Dangerous Software Weaknesses | |
| https://cwe.mitre.org/top25/archive/2022/2022_cwe_top25.html |
| $ sudo rm -rv ${TMPDIR:-/var/tmp}/mkinitramfs-* | |
| ## In Ubuntu 16.04 and earlier there may be leftover temporary | |
| ## files to delete. | |
| ## See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814345 | |
| $ uname -r ## This command identifies the currently-running kernel | |
| 4.2.0-21-generic ## This is the current kernel. | |
| ## DO NOT REMOVE it! |
| (require '[clojure.core.async :as a]) | |
| (def xform (comp (map inc) | |
| (filter even?) | |
| (dedupe) | |
| (flatmap range) | |
| (partition-all 3) | |
| (partition-by #(< (apply + %) 7)) | |
| (flatmap flatten) | |
| (random-sample 1.0) |
| #!/usr/bin/env ruby | |
| # simple GET ammo generation, pass hostname as a first parameter and uris to STDIN | |
| STDIN.each{|line| | |
| request = <<-EOS | |
| GET #{line.chomp} HTTP/1.0\r | |
| Host: #{ARGV[0]}\r | |
| Accept: */*\r | |
| User-Agent: tank\r | |
| Connection: close\r |