sudo apt install openjdk-8-jdk-headless
Discover gists
This gist contains various scripts for scraping metrics. Mostly useful for processing the contents of Puppet Enterprise support bundles:
sar2influx.rb
: A Ruby script that usessadf
to turn SAR archives into InfluxDB line format. For best results, run from a Linux VM using a recent operating system. Such as Ubuntu 22.04.pdb2influx.sh
: A bash script that usesawk
andmlr
to extract command processing times frompuppetdb.log
files.top-api-calls.sh
: Extracts the 10 most popular API calls from*-access.log
along with their median and max duration grouped into 30 minute periods (Puppet$runinterval
). Usesawk
andmlr
.
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
# based on the following: | |
# http://saintgimp.org/2013/01/22/merging-two-git-repositories-into-one-repository-without-losing-file-history/ | |
# http://blog.caplin.com/2013/09/18/merging-two-git-repositories/ | |
git clone repo_main | |
git clone repo_sub | |
cd repo_main | |
git remote add repo_sub ../repo_sub | |
git fetch repo_sub |
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
version: "3" | |
services: | |
zookeeper: # the configuration manager | |
hostname: zookeeper | |
container_name: zookeeper | |
image: 'bitnami/zookeeper:3.6.1' | |
environment: | |
- ALLOW_ANONYMOUS_LOGIN=yes | |
nifi: | |
image: apache/nifi:1.11.4 |
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
LYUCS92YXV-eyJsaWNlbnNlSWQiOiJMWVVDUzkyWVhWIiwibGljZW5zZWVOYW1lIjoi5pyd6Zm956eR5oqA5aSn5a24IiwibGljZW5zZWVUeXBlIjoiQ0xBU1NST09NIiwiYXNzaWduZWVOYW1lIjoiVGFvYmFv77ya5p6B5a6i5LiT5LqrICAtLS0g6LCo6Ziy55uX5Y2W77yBIiwiYXNzaWduZWVFbWFpbCI6IkphbWVfQnJhaXRtYW5AaG90bWFpbC5jb20iLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDI1LTAyLTE5IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJSUzAiLCJwYWlkVXBUbyI6IjIwMjUtMDItMTkiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IkRNIiwicGFpZFVwVG8iOiIyMDI1LTAyLTE5IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJDTCIsInBhaWRVcFRvIjoiMjAyNS0wMi0xOSIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUlNVIiwicGFpZFVwVG8iOiIyMDI1LTAyLTE5IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJSU0MiLCJwYWlkVXBUbyI6IjIwMjUtMDItMTkiLCJleHRlbmRlZCI6dHJ1ZX0seyJjb2RlIjoiUEMiLCJwYWlkVXBUbyI6IjIwMjUtMDItMTkiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IkRTIiwicGFpZFVwVG8iOiIyMDI1LTAyLTE5IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJSRCIsInBhaWRVcFRvIjoiMjAyNS0wMi0xOSIsI |
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
/********************************************************************* | |
* | |
* name: user.js | brainfucksec | |
* descr.: Mozilla Firefox configuration file: `user.js` | |
* version: 0.20.1 | |
* date: 2023-10-15 | |
* url: https://gist.github.com/brainfucksec/68e79da1c965aeaa4782914afd8f7fa2 | |
* maintainer: brainf+ck | |
* | |
* info: |
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 binascii | |
import pefile | |
import subprocess | |
import sys | |
import os | |
ror = lambda val, r_bits, max_bits: \ | |
((val & (2**max_bits-1)) >> r_bits%max_bits) | \ | |
(val << (max_bits-(r_bits%max_bits)) & (2**max_bits-1)) |
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
/* Terminal */ | |
yarn create vite my-project | |
cd my-project | |
yarn add -D tailwindcss postcss autoprefixer | |
yarn tailwindcss init -p | |
/* tailwind.config.cjs */ | |
/** @type {import('tailwindcss').Config} */ | |
module.exports = { |
⚠️ WARNING
The ordering of listed projects or documents is random and has no connection to relevance or maturity levels!
Extension | Description |
---|---|
pgaudit |
Postgres auditing extension |
pg_auto_failover |
Postgres extension for failover without distributed consensus (by Citus Data) |
psvgamesd | NoNpDrm | Vitamin/MaiDumpTool | |
---|---|---|---|
Dumps physical games | ✅ | ✅ | ✅ |
Dumps digital games, DLC, and updates | ❌ | ✅ | ✅ |
Compatible with legit DLC & updates | ✅ | ✅ | ❌ |
Saves usable on non-hacked Vitas | ✅ | ✅ | ❌ |
All original data untouched | ✅ | ❌ | ❌❌ |
No problems saving after suspend | ✅ | ✅ | ❌❌ |
Format can be converted to work with other tools | ✅ | ❌ | ❌ |
Installs physical games as bubbles | ❌ | ✅ | ✅ |
NewerOlder