Skip to content

Instantly share code, notes, and snippets.

@nomicode
nomicode / README.md
Last active April 28, 2024 20:14
Windows 11 Pro (Redux)

Windows 11 Pro (Redux)

-Install from bootable USB drive

  • Set up new user
    • Unable to proceed without signing in to Microsoft
    • New user has autogenerated username
    • Create admin user (local account)
    • Delete original user account
    • Create a new local user account and specify the username nomi
  • Delete admin account
@nomicode
nomicode / docusaurus-admonitions.md
Last active April 27, 2024 18:36
Docusaurus-style admonitions with GitHub Flavored Markdown and GitHub Emoji shortcodes
@nomicode
nomicode / .markdownlint.yaml
Last active April 27, 2024 14:06
My defaults for markdownlint
# My defaults for markdownlint
# https://gist.github.com/nomicode/fecf294dd1e1abdefc8ea31bb9b57eb9/
default: true
# Disables rules that may conflict with Prettier
# https://github.com/DavidAnson/markdownlint/blob/main/style/prettier.json
extends: markdownlint/style/prettier
# Line length
@nomicode
nomicode / .editorconfig
Last active April 27, 2024 14:12
Defaults for EditorConfig
# My defaults for EditorConfig
# https://gist.github.com/nomicode/8ac796041f358dd42c638dfe4c93ed2
# See also:
# - https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
root = true
[*]
charset = utf-8
@nomicode
nomicode / README.md
Last active April 23, 2024 16:40
VS Code keybindings
@nomicode
nomicode / btSignal.sh
Created March 31, 2024 17:18 — forked from mikerr/btSignal.sh
Bluetooth RSSI signal strength
# install bluetooth tools
sudo apt-get install --no-install-recommends bluetooth
# find MAC address (needs to be discoverable)
hcitool scan
# ping it
sudo l2ping -c 1 12:34:56:78:90
# Connect by MAC
@nomicode
nomicode / cspell.md
Last active November 9, 2023 01:15
Linters

‎‎​

@nomicode
nomicode / setdate.py
Last active April 17, 2023 15:16
setdate
#!/usr/bin/env python3
def main():
pass
if __name__ == "__main__":
main()
@nomicode
nomicode / keybase.md
Created November 8, 2022 17:51
Keybase

Keybase proof

I hereby claim:

  • I am nomirose on github.
  • I am nomirose (https://keybase.io/nomirose) on keybase.
  • I have a public key ASDXHQwTX6CwxbN43nQH12_e-FXBGMzypjnJyrcPO6cAUAo

To claim this, I am signing this object:

@nomicode
nomicode / cpulimit.py
Created June 26, 2022 16:47 — forked from anonymous/cpulimit.py
reduce the cpu time of a process by pausing and resuming it repeatedly
#!/usr/bin/env python
import time, os, sys, signal
sleeptime = waketime = 0.01
def send(signal, pids):
for pid in pids:
os.kill(pid, signal)