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 bash | |
steam_folder="$HOME/.steam" | |
beamng_folder="steam/steamapps/compatdata/284160/pfx/drive_c/users/steamuser/AppData/Local/BeamNG.drive" | |
echo "Searching for BeamNG versions in ${steam_folder}/${beamng_folder}" | |
versions=($(ls "${steam_folder}/${beamng_folder}/" | grep -E '([0-9]{1,}\.)+[0-9]{1,}' | sort -r)) | |
settings_target="${steam_folder}/${beamng_folder}/${versions[0]}/settings" |
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 | |
for D in /proc/irq/*; do | |
if [ -d "${D}" ]; then | |
echo Updating ${D}... | |
echo 2 > ${D}/smp_affinity | |
cd .. | |
fi | |
done |
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
apt remove bonescript c9-core-installer nginx nodejs nodejs-doc npm \ | |
bb-node-red-installer alsa-utils pastebinit nginx-full nginx-common \ | |
bone101 mjpg-streamer javascript-common bluealsa | |
rm -rf /opt/cloud9/ /var/lib/cloud9/ | |
systemctl disable bb-bbai-tether.service | |
systemctl disable bb-wl18xx-bluetooth.service | |
sed -i "s/TETHER_ENABLED=.*/TETHER_ENABLED=no/g" /etc/default/bb-wl18xx |
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
modprobe loop | |
losetup -f | |
losetup /dev/loop0 image.img | |
partprobe /dev/loop0 | |
gparted /dev/loop0 | |
fdisk -l /dev/loop0 | |
truncate --size=$[(XXX+1)*512] image.img | |
losetup -d /dev/loop0 |
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 | |
read -p "Enter your network mask: " | |
IP=${REPLY} | |
OLD=$(nmap -sn $IP | grep 'Nmap scan report for' | cut -f 5 -d ' ') | |
read -n 1 -p "Plug in the device and press enter" | |
NEW=$(nmap -sn $IP | grep 'Nmap scan report for' | cut -f 5 -d ' ') | |
echo Possible IPs: |
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
en.stackoom.com | |
fix.code-error.com | |
progexpertos.com | |
techinplanet.com | |
www.ti-enxame.com | |
www.xszz.org | |
exceptionshub.com | |
www.thetopsites.net | |
www.titanwolf.org | |
flutterq.com |
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
import ast | |
import youtube_dl | |
ydl_opts = { | |
'format': 'bestaudio/best', | |
'postprocessors': [{ | |
'key': 'FFmpegExtractAudio', | |
'preferredcodec': 'mp3', | |
'preferredquality': '192', | |
}], |
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
.tab-icon-sound { | |
width: 12px !important; | |
height: 12px !important; | |
} |
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
import discord | |
from discord.ext import commands | |
import os | |
intents = discord.Intents.default() | |
intents.members = True | |
bot = commands.Bot(command_prefix='$', intents=intents) | |
@bot.command() |
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
from bs4 import BeautifulSoup | |
from time import sleep | |
from telegram.ext import Updater | |
import requests | |
old_openings = [] | |
updater = Updater("TOKEN", use_context=True) | |
while True: | |
s = requests.Session() |