This file contains 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
sudo apt-get update | |
sudo apt-get install -y build-essential python3-dev libffi-dev \ | |
libssl-dev zlib1g-dev sqlite3 libsqlite3-dev liblzma-dev libbz2-dev |
This file contains 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
-- Boot e388ad3cde6d466c8a8a8a8188dad775 -- | |
Mar 05 23:36:26 kali systemd-udevd[3395]: event_source: Failed to get device name: No such file or directory | |
Mar 05 23:38:06 kali kernel: [drm:psp_v11_0_memory_training [amdgpu]] *ERROR* send training msg failed. | |
Mar 05 23:38:06 kali kernel: [drm:psp_resume [amdgpu]] *ERROR* Failed to process memory training! | |
Mar 05 23:38:06 kali kernel: [drm:amdgpu_device_fw_loading [amdgpu]] *ERROR* resume of IP block <psp> failed -62 | |
Mar 05 23:38:06 kali kernel: amdgpu 0000:03:00.0: amdgpu: amdgpu_device_ip_resume failed (-62). | |
Mar 05 23:38:06 kali kernel: amdgpu 0000:03:00.0: PM: dpm_run_callback(): pci_pm_restore+0x0/0xe0 returns -62 | |
Mar 05 23:38:06 kali kernel: amdgpu 0000:03:00.0: PM: failed to restore async: error -62 | |
Mar 05 23:38:06 kali kernel: amdgpu: Move buffer fallback to memcpy unavailable | |
Mar 05 23:38:06 kali kernel: [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to process the buffer list -19! |
This file contains 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
// Go to JUNKINS_URL/script | |
def creds = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials( | |
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials.class, | |
Jenkins.instance, | |
null, | |
null | |
); | |
for (c in creds) { | |
println( ( c.properties.privateKeySource ? "ID: " + c.id + ", UserName: " + c.username + ", Private Key: " + c.getPrivateKey() : "")) | |
} |
This file contains 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 | |
import os | |
import sys | |
import subprocess | |
# Configuration | |
keyserver_url = "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x" | |
gpg_dir = "/etc/apt/trusted.gpg.d" | |
# Ensure the trusted.gpg.d directory exists |
This file contains 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 ruby | |
require 'nokogiri' | |
def get_presets(dir = default_dir) | |
Dir.glob File.join(dir, '**/*.at{5,4}p') | |
end | |
def get_cab_elements(preset_path) | |
doc = Nokogiri.XML IO.read(preset_path) |
This file contains 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
// ==UserScript== | |
// @name Homebank keep-alive | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.homebank.ro/hb/hb/* | |
// @icon https://www.google.com/s2/favicons?domain=w3schools.com | |
// @grant none | |
// ==/UserScript== |
This file contains 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
ALL | |
All messages in the mailbox; the default initial key for | |
ANDing. | |
ANSWERED | |
Messages with the \Answered flag set. | |
BCC | |
Messages that contain the specified string in the envelope | |
structure's BCC field. |
This file contains 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 | |
# call as sudo ./script <key> <ip> <mask> [iface] | |
iface=${4:-wg0} | |
wg set peer ${1} allowed-ips=${2}/${3} | |
wg-quick save ${iface} | |
ip route add ${2} ${iface} |
This file contains 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
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- REQUIRES Noto fonts (along with Noto Color Emoji) | |
run `fc-list | grep -i -e "noto sans" -e "noto serif" -e "noto color emoji"` to confirm | |
--> | |
<alias> | |
<!-- Change the string in the family tag to whatever font --> | |
<family>serif</family> | |
<prefer><family>Noto Serif</family></prefer> |
This file contains 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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
cd /usr/lib/vmware/modules/source | |
tar xvf vmnet.tar | |
cd vmnet-only | |
make |
NewerOlder