dbus-run-session -- gnome-shell --nested --wayland
busctl --user call \ org.gnome.Shell \ /org/gnome/Shell \ org.gnome.Shell.Extensions ReloadExtension \ s "$name"
import asyncio | |
from enum import Enum | |
HOST = "127.0.0.1" | |
PORT = 62775 | |
class Commands(Enum): | |
UPDATE = 0 | |
LOGOUT = 1 |
#!/bin/sh | |
# Usage: | |
# Put this somewhere in your path, make executable and bind a key to... | |
# rofi -show scratch -modes "scratch:hyprscratch.sh" | |
# Requires ripgrep | |
hc=hyprctl | |
if [ "$1" = "" ]; then |
dbus-run-session -- gnome-shell --nested --wayland
busctl --user call \ org.gnome.Shell \ /org/gnome/Shell \ org.gnome.Shell.Extensions ReloadExtension \ s "$name"
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
# source: https://forum.proxmox.com/threads/removing-deleting-a-created-cluster.18887/ | |
#/bin/sh | |
# stop service | |
systemctl stop pvestatd.service | |
systemctl stop pvedaemon.service | |
systemctl stop pve-cluster.service | |
systemctl stop corosync | |
systemctl stop pve-cluster | |
killall pmxcfs |
import sys | |
# Check if file argument is provided | |
if len(sys.argv) != 2: | |
print("Usage: python shellcode_to_hex.py <shellcode_file>") | |
sys.exit(1) | |
shellcode_file = sys.argv[1] | |
try: |
This is pretty much my first crack at this. I'm sure things could be improved or done differently.
JWTs are at the heart of Supabase authorization, but sometimes we wanna build an app that also gives users access via API keys; or perhaps only exclusively via API keys. As you may know, using JWTs as API keys makes them difficult to revoke and therefore a security issue.
We also want to ensure this doesn't significantly add to RLS polices, if at all.
Finally, we'd love to have this handled by Supabase and do as little as possible in our framework. This simplifies our code and reduces third-party libraries.
#!/usr/bin/python | |
# Modified by Travis Lee | |
# Last Updated: 4/21/14 | |
# Version 1.16 | |
# | |
# -changed output to display text only instead of hexdump and made it easier to read | |
# -added option to specify number of times to connect to server (to get more data) | |
# -added option to send STARTTLS command for use with SMTP/POP/IMAP/FTP/etc... | |
# -added option to specify an input file of multiple hosts, line delimited, with or without a port specified (host:port) |