This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| from tkinter import * | |
| from tkinter import ttk | |
| from tkinter import filedialog | |
| from tkinter import messagebox | |
| import os | |
| import sys | |
| import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apk add openrc \ | |
| xorg-server xf86-video-dummy x11vnc \ | |
| xfce4 xfce4-terminal \ | |
| rc-update add dbus | |
| cat <<EOF > /etc/profile.d/ish.sh | |
| export DISPLAY=:0 | |
| export NO_AT_BRIDGE=1 | |
| cat /dev/location > /dev/null & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import re | |
| import sys | |
| import requests | |
| from hashlib import md5 | |
| from xml.etree.ElementTree import fromstring | |
| if len(sys.argv) < 2: | |
| print(f"Usage: {sys.executable} {sys.argv[0]} xml_url") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import sys | |
| import requests | |
| import threading | |
| import subprocess | |
| from subprocess import DEVNULL | |
| from urllib.parse import unquote, urljoin | |
| def download_file(url, semaphore): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import requests | |
| # Do check for: ex) "integer or string" | |
| files = ["Application.md", "Audit_Log.md", "Channel.md", "Emoji.md", "Guild.md", "Guild_Scheduled_Event.md", "Guild_Template.md", "Invite.md", "Stage_Instance.md", "Sticker.md", "User.md", "Voice.md", "Webhook.md"] | |
| known_types = { | |
| # Type: [funcname, casting] | |
| "boolean": ["boolean", None], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "llist.h" | |
| Linkedlist *llist_put(Linkedlist *list, char *key, void *value) { | |
| if (list == NULL) { | |
| list = calloc(1, sizeof(Linkedlist)); | |
| *list = (Linkedlist) {key, value, NULL}; | |
| return list; | |
| } | |
| if (!strcmp(key, list->key)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| struct Node { | |
| int key; | |
| void *data; | |
| struct Node *left, *right, *parent; | |
| }; | |
| struct Node *insertNode(struct Node *node, int key, void *data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:latest | |
| ENV DISPLAY=:99 | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y openbox xvfb x11vnc | |
| CMD rm -rf /tmp/.X99-lock && \ | |
| Xvfb $DISPLAY -screen 0 1280x1024x24 & \ | |
| openbox & \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find /music -iname "*.flac" -print0 | xargs -P 16 -0 -I @ bash -c 'temp="@"; name="$(echo $temp | sed -E "s/\/.*?\///" | sed "s/.flac//")"; echo $name; ffmpeg -hide_banner -loglevel warning -i "$temp" -c:v copy -c:a alac -ar 44100 "/mnt/d/ALAC/$name.m4a"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| xwininfo -root -tree | grep '("spotify" "Spotify")' | grep -oE '(0x[0-9a-z]{7,8})' | xargs -I % wmctrl -i -r % -b toggle,fullscreen |