Skip to content

Instantly share code, notes, and snippets.

View cesarga's full-sized avatar
🐋
🎻

César cesarga

🐋
🎻
View GitHub Profile
@cesarga
cesarga / helpers.star
Created September 28, 2023 01:18
starlark import
# Helper functions
def merge(dict1, dict2):
dict2.update(dict1)
return dict2
@cesarga
cesarga / Stash Batch Studio Create.user.js
Last active September 19, 2023 12:46
Stash Batch Studio Create.user.js
(function() {
'use strict';
const {
stash,
Stash,
waitForElementId,
waitForElementClass,
waitForElementByXpath,
getElementByXpath,
@cesarga
cesarga / Stash Batch Result Toggle.user.js
Created September 19, 2023 07:47
Stash Batch Result Toggle
(function() {
'use strict';
const {
stash,
Stash,
waitForElementId,
waitForElementClass,
waitForElementByXpath,
getElementByXpath,
@cesarga
cesarga / Caddyfile
Created June 27, 2023 22:43
Caddy 2 definitive CORS snippet
(cors) {
@cors_preflight method OPTIONS
@cors header Origin {args.0}
handle @cors_preflight {
header Access-Control-Allow-Credentials "true"
header Access-Control-Allow-Origin "{args.0}"
header Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD"
header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept"
header Access-Control-Max-Age "3600"
@cesarga
cesarga / .zshrc
Created September 23, 2020 03:48 — forked from ThYpHo0n/.zshrc
WSL(2) bash profile helpers
# WSL?
if [[ "$(< /proc/sys/kernel/osrelease)" == *microsoft* ]]; then
export $(dbus-launch)
export LIBGL_ALWAYS_INDIRECT=1
export WSL_VERSION=$(wsl.exe -l -v | grep -a '[*]' | sed 's/[^0-9]*//g')
export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2)
export DISPLAY=$WSL_HOST:0
# pip path if using --user
export PATH=$PATH:$HOME/.local/bin
# SSH
@cesarga
cesarga / keybase.md
Last active September 18, 2019 15:12
[Keybase proof] Keybase account ownership proof #keybase

Keybase proof

I hereby claim:

  • I am cesarga on github.
  • I am cesarga (https://keybase.io/cesarga) on keybase.
  • I have a public key ASABpt54xpIK0Zutb9biIjmndBq44ccZ-BxC6kc8PKdlDAo

To claim this, I am signing this object: