Skip to content

Instantly share code, notes, and snippets.

View rbricheno's full-sized avatar
🐍
_

Robert Bricheno rbricheno

🐍
_
View GitHub Profile
@lu0
lu0 / toggle-terminal.ahk
Last active March 10, 2023 07:25 — forked from andrewgodwin/QuakeTerminal.ahk
AutoHotkey script to hide/show a Windows Terminal using a keybinding
#NoTrayIcon
#SingleInstance Force
;
; This scripts toggles between states raised and hidden of a Windows Terminal,
; or opens a new one if not opened, using `Super + T` or `Super + Enter`
;
; Supports multiple workspaces or virtual desktops.
;
@maxmacstn
maxmacstn / main.py
Last active August 23, 2024 15:21
Raspberry Pi Pico - CircuitPython volume knob
import digitalio
import board
import usb_hid
import time
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.mouse import Mouse
from adafruit_hid.keycode import Keycode
from adafruit_hid.consumer_control import ConsumerControl
from adafruit_hid.consumer_control_code import ConsumerControlCode
@samunders-core
samunders-core / LabelInterrupts.java
Created October 8, 2020 21:31
Ghidra SW interrupt labeling script
// prepend comment to each INT
//@author sam_
//@category DOS
//@keybinding
//@menupath
//@toolbar
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
@AndrewKvalheim
AndrewKvalheim / mastodon-notes.md
Last active February 9, 2024 18:30
Notes on running a personal Mastodon instance

Personal Mastodon instance

Effective total cost: $3–5/mo

Setup

Decide on an EC2 instance type:

  1. At AWS Console → EC2 → Instance Types, filter for ≥1 GB RAM and sort by price.
  • t4g.micro is lowest.
@andrewgodwin
andrewgodwin / QuakeTerminal.ahk
Created February 15, 2020 17:41
AutoHotkey script for making Windows Terminal appear/disappear with a single keypress
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
F12::ToggleTerminal()
ShowAndPositionTerminal()
{
WinShow ahk_class CASCADIA_HOSTING_WINDOW_CLASS
@ywwwtseng
ywwwtseng / host-react-app-on-apache-server.md
Last active August 7, 2024 07:30
Host react application on Apache server

Host react application on Apache server

Step 1 : Create your app

$ npm install -g create-react-app 
$ create-react-app my-app

Step 2 : Build it for production

@u0d7i
u0d7i / disable_vim_auto_visual_on_mouse.txt
Last active July 26, 2024 06:24
Disable vim automatic visual mode on mouse select
Disable vim automatic visual mode on mouse select
issue: :set mouse-=a
add to ~/.vimrc: set mouse-=a
my ~/.vimrc for preserving global defaults and only changing one option:
source $VIMRUNTIME/defaults.vim
set mouse-=a