Discover gists (original) (raw)
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
[ Show hidden characters]({{ revealButtonHref }})
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
[ Show hidden characters]({{ revealButtonHref }})
import random |
---|
import argparse |
import tempfile |
import ipaddress |
from time import sleep |
from shlex import split |
from os import path, remove |
from scapy.all import sniff |
from threading import Thread |
from subprocess import Popen, PIPE |
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
[ Show hidden characters]({{ revealButtonHref }})
// ==UserScript== |
---|
// @name TweetXer |
// @namespace https://github.com/lucahammer/tweetXer/ |
// @version 0.6.6 |
// @description Delete all your Tweets for free. |
// @author Luca |
// @match https://x.com/\* |
// @icon https://www.google.com/s2/favicons?domain=twitter.com |
// @grant unsafeWindow |
// ==/UserScript== |
Project Reactor: From Zero to Hero
In this series of pages, I will discuss project reactor and reactive programming from basic concepts to reactor internal implementation details. This discussion is based on the official reference documentation, the java-doc, talks by maintainers of reactor e.g. at the spring I/O and other distributed material, and should summarise and connect all this information. It should complement the official reference documentation and java-doc. Although the name says "from zero to hero", basic knowledge about the library is advised to fully benefit from it.
As a short disclaimer, I am a professional software engineer with some years of experience in using reactor, but not a maintainer or creator of the library. Information and knowledge in this post are based on the official documentation and talks, but I cannot exclude misconceptions on my side.
- [Why and when to use Reactor](https://gist.github.com/Lukas-Krickl/50f1daebebaa72c7e944b7c319e3c073#file-01-why-and-when-to-use
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
[ Show hidden characters]({{ revealButtonHref }})
# Switch PHP version in brew |
---|
# Place this in your ~/.bashrc or similar for autoload into your shell |
function phpsw() { |
if [ -z "$1" ]; then |
logInfo "You need to provide a PHP formulae version to switch to in format:" |
logInfo "$ phpsw 8.1" |
if command -v jq >/dev/null 2>&1; then |
logInfo "Installed PHP versions via Brew:" |
brew info --json php | jq -r '.[].versioned_formulae[]' |
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
[ Show hidden characters]({{ revealButtonHref }})
#!/bin/bash |
---|
# System: Darwin x86_64 19.6.0 (macOS 10.15.6 19G2021) |
# Author: Othyn (https://github.com/othyn) |
# Source: https://gist.github.com/othyn/29b82e39eb8cdd98adf1be77cbb62700 |
# Dependencies: pv, wimlib |
# Licence: MIT |
DEFAULT="\x1b[0m" |
RED="\x1b[31m" |
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
[ Show hidden characters]({{ revealButtonHref }})
---------------------------------------------- |
---|
3.25 PoBs [Always re-pull PoBs right before league start to have the most updated version] |
---------------------------------------------- |
Aurabot: |
https://pobb.in/JDvQLXM\_0-TW |
Spark Inquitor carry: |
https://pobb.in/rc2V3e82Beji |
Storm Brand Inquisitor carry: |
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
[ Show hidden characters]({{ revealButtonHref }})
import telebot |
from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton |
import os |
from pydub import AudioSegment |
import librosa |
import soundfile as sf |
import tempfile |
import time |
Modern Arch linux installation guide
Table of contents
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
[ Show hidden characters]({{ revealButtonHref }})
<?php |
---|
/** |
* Function to validate that a ZIP file do not contains "ZIP SLIP" payload entries. |
* @param string $zipFilePath Path to the ZIP to test. |
* @return bool TRUE only if the archive do not contains ZIP SLIP payload entries. |
* @link https://snyk.io/research/zip-slip-vulnerability |
* @link https://stackoverflow.com/a/3599093/451455 (inspired from) |
*/ |
function isZipValid($zipFilePath){ |
$isValid = false; |