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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}] | |
"Attributes"=dword:00000001 | |
"Category"=dword:00000004 | |
"DefinitionFlags"=dword:00000040 | |
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\ | |
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\ | |
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\ | |
00,31,00,30,00,34,00,30,00,00,00 |
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
[Unit] | |
Description=Btrfs Snapshot Service | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/local/bin/btrfsSnapshot.sh |
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 | |
initial_directory=$(pwd) | |
temp_directory=$(mktemp -d) | |
build_directory=$(mktemp -d) | |
cd $temp_directory | |
wget https://ppa.launchpadcontent.net/aglasgall/pipewire-extra-bt-codecs/ubuntu/pool/main/p/pipewire/libspa-0.2-bluetooth_1.0.5-2~glasgall1_amd64.deb | |
dpkg -x $(ls *.deb) $temp_directory | |
mkdir $build_directory/DEBIAN | |
mkdir -p $build_directory/usr/lib/x86_64-linux-gnu/spa-0.2/bluez5/ |
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
[Unit] | |
Description=Mute When Lock | |
After=default.target | |
[Service] | |
ExecStart=/usr/local/bin/mute-when-lock.sh | |
Restart=on-failure | |
[Install] | |
WantedBy=default.target |
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
[Unit] | |
Description=TeamSpeak Server Nickname Keeper | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
DynamicUser=yes | |
Type=simple | |
Restart=on-failure | |
ExecStart=curl -s "https://named.myteamspeak.com/lookup?name=" |
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
const http = require('http'); | |
const https = require('https'); | |
const url = require('url'); | |
const whitelist = ['www.example.com']; | |
const server = http.createServer((req, res) => { | |
const parsedUrl = url.parse(req.url); | |
if (!parsedUrl.pathname.startsWith('/archive/http')) { | |
console.error(`Received invalid request: ${req.method} ${req.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
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
import re | |
import csv | |
def extract_clippings(clippings_file): | |
clippings = [] | |
with open(clippings_file, 'r', encoding='utf-8') as file: | |
data = file.read() |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw] | |
"EmulationOnly"=dword:00000001 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Direct3D\Drivers] | |
"SoftwareOnly"=dword:00000001 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DirectDraw] | |
"EmulationOnly"=dword:00000001 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Direct3D\Drivers] | |
"SoftwareOnly"=dword:00000001 |
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 | |
apt install -y pcregrep | |
curl -s "https://www.google.com/sorry/index" | pcregrep -o1 "IP address: (.*?)<" |
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 | |
apt install -y djvulibre-bin ghostscript | |
for file in *.djvu; do djvups -verbose "$file" "${file%.*}.ps"; done | |
for file in *.ps; do ps2pdf "$file" "${file%.*}.pdf"; done |
NewerOlder