Skip to content

Instantly share code, notes, and snippets.

View jzacsh's full-sized avatar
💭
primarily on gitlab.com/jzacsh

Jonathan Zacsh jzacsh

💭
primarily on gitlab.com/jzacsh
View GitHub Profile
@jzacsh
jzacsh / WaylandUbuntu19.10-AppTitle
Created January 4, 2024 21:49 — forked from rbreaves/WaylandUbuntu19.10-AppTitle
Grab wmclass name or Window Name/Title under Wayland with Gnome 3.x
# Single Command, runs 2 calls to gdbus to get the currently active Window from Gnome 3.x
# Escaped so you can copy and paste into terminal directly
gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell -m org.gnome.Shell.Eval global.get_window_actors\(\)[`gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell -m org.gnome.Shell.Eval global.get_window_actors\(\).findIndex\(a\=\>a.meta_window.has_focus\(\)===true\) | cut -d"'" -f 2`].get_meta_window\(\).get_wm_class\(\) | cut -d'"' -f 2
# Unescaped version, will not run
# Broken down into 2 commands.
# Call to Gnome to get the array location of the active Application
gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell -m \
@jzacsh
jzacsh / RenameGitBranch.md
Created April 6, 2023 16:13 — forked from danieldogeanu/RenameGitBranch.md
How to rename your Git master branch to main.

To rename your Git master branch to main, you must do the following steps:

  1. Navigate to your repository in the command line and issue the following commands: - git branch -m master main - git push -u origin main

  2. Change your default branch on GitHub by going to your GitHub repository in your browser, and navigate to Settings > Branches and click on the dropdown and switch from master to main and click Update (this will only show if you have two or more branches). The main branch is now your default branch.

  3. Update the tracking of the branch from your command line with the following command: - git branch -u origin/main main

@jzacsh
jzacsh / .gitignore
Last active September 12, 2020 02:21
library.json
*.pb.go
@jzacsh
jzacsh / keymap.json
Last active June 15, 2018 16:28
uhk keymap
{"site":"https://ultimatehackingkeyboard.com","description":"Ultimate Hacking Keyboard keymap","keyboardModel":"UHK60","userConfigMajorVersion":4,"userConfigMinorVersion":0,"userConfigPatchVersion":0,"objectType":"keymap","objectValue":{"isDefault":true,"abbreviation":"QWR","name":"QWERTY for PC","description":"QWERTY is the mother of all layouts. This is the PC version.","layers":[{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":36},{"keyActionType":"keystroke","type":"basic","scancode":37},{"keyActionType":"keystroke","type":"basic","scancode":38},{"keyActionType":"keystroke","type":"basic","scancode":39},{"keyActionType":"keystroke","type":"basic","scancode":45},{"keyActionType":"keystroke","type":"basic","scancode":46},{"keyActionType":"keystroke","type":"basic","scancode":42},{"keyActionType":"keystroke","type":"basic","scancode":24},{"keyActionType":"keystroke","type":"basic","scancode":12},{"keyActionType":"keystroke","type":"basic","scancode":18},{"keyActionType
@jzacsh
jzacsh / keybase.md
Created January 27, 2018 19:06
2018-01-27 keybase.io identity reset

Keybase proof

I hereby claim:

  • I am jzacsh on github.
  • I am jzacsh (https://keybase.io/jzacsh) on keybase.
  • I have a public key whose fingerprint is A1A4 D5EE 0A7D DCC6 BE6F 362D 6DA4 1940 60D6 02C2

To claim this, I am signing this object:

@jzacsh
jzacsh / evalfuncs.markdown
Last active January 1, 2018 23:38
evalfuncs

evalfuncs

Visual display of arbitrary javascript evaluations for a range of given inputs, intended for mathematical curiosities.

LICENSE: apachev2

A Pen by Jonathan Zacsh on CodePen.

License.

@jzacsh
jzacsh / .gitignore
Last active November 30, 2017 20:01
notes from reading group: cracking coding interview, 5th ed
/bin/
bin/*.class
@jzacsh
jzacsh / gcd.go
Created October 3, 2017 20:49
GCD Calculator: Euclidean Algorithm visualizer
package main
import (
"fmt"
)
func gcd(a, b uint64) uint64 {
if a == 0 || b == 0 {
panic(fmt.Errorf("require non-zero natural numbers, but got: %d, %d", a, b))
}
@jzacsh
jzacsh / LICENSE
Last active June 27, 2023 18:21
fix annoying broken `aws s3 sync` content-type uploads
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
@jzacsh
jzacsh / .gitignore
Last active August 28, 2021 22:41
migrated to https://gitlab.com/jzacsh/webdeskgo - 90s-style cgi for my personal LAN for family to run some tools
sample.pdf
gist_webdeskgo