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 | |
# Bitbucket settings | |
BITBUCKET_USER="" | |
BITBUCKET_ORG="" | |
BITBUCKET_APP_PASSWORD="" | |
# GitHub settings | |
GITHUB_USER="" | |
GITHUB_ORG="" |
This file has been truncated, but you can view the full file.
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
{"prompt":"Second arrest made in 2023 Bradenton home invasion\nBy ABC7 Staff\nPublished: Apr. 11, 2024 at 3:48 PM EDT | Updated: 3 hours ago\n\nBRADENTON, Fla. (WWSB) - Bradenton Police have arrested a second individual in connection with a 2023 home invasion.\n\nJames Reid, Jr., 29 was arrested in connection with the armed home invasion at a home in the 400-block of Cantabria Trail. Earlier this year, James Flowers was also arrested.\n\nPolice say on March 3, 2023, four individuals entered the victims residence, ransacked the home and stole jewelry, cash and a phone. Two adults and three children were in the house at the time. Reid is charged with armed home invasion. He is in custody at the Falkenberg Road Jail in Hillsborough County for unrelated charges. There are no immediate plans to transfer Reid to Manatee County.\n\nPolice have not released information on the other two individuals at this time.\n\nhttps://www.mysuncoast.com/2024/04/11/second-arrest-made-2023-bradenton-home-invasion/","completion":"{\ |
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 | |
# 1) Make file executable: chmod +x cloudflare_zone_token_generator.sh | |
# 2) Set variable values: API_KEY, EMAIL_ADDRESS, ZONE_ID | |
# 3) ./cloudflare_zone_token_generator.sh | |
# Global API Key: https://dash.cloudflare.com/profile/api-tokens | |
API_KEY="" | |
# Email address associated with your account |
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 | |
# Check for jq and install if needed | |
if ! command -v jq &> /dev/null; then | |
echo "jq not found! Installing..." | |
sudo apt update && sudo apt install -y jq | |
echo "jq installed successfully!" | |
fi | |
DEFAULT_CONFIG_FILE="extensions.json" |
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
# https://developers.cloudflare.com/argo-tunnel/quickstart | |
cloudflared tunnel --hostname my.domain.com --url http://localhost:3338 |
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
docker run --name mysql -v /mysql-data:/var/lib/mysql -v /mysql:/etc/mysql/conf.d -e MYSQL_ROOT_PASSWORD=root -e MYSQL_ROOT_HOST=% -p 3306:3306 -d mysql |
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
`First Name,Last Name,Email | |
john,doe,John.Doe@example.com | |
bobby,joe,Bobby.Joe@example.com` | |
.split('\n') | |
.map(r => r | |
.split(',') | |
.map((c, cIndex) => (cIndex === 2) | |
? c.toLowerCase() | |
: c.charAt(0).toUpperCase() + c.slice(1).toLowerCase()) | |
.join(",")) |
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 | |
# https://stackoverflow.com/a/21651707/9238321 | |
for i in *.xlsx; do libreoffice --headless --convert-to csv "$i" ; done | |
# https://unix.stackexchange.com/a/558965 | |
awk '(NR == 1) || (FNR > 1)' *.csv > all.csv |
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 install openssh-server | |
wget https://github.com/nanopool/nanominer/releases/download/v1.4.0/nanominer-linux-1.4.0.tar.gz | |
tar -xvzf ./nanominer-linux-1.4.0.tar.gz | |
cd nanominer-linux-1.4.0/ | |
nano config.ini | |
./nanominer -d | |
wget --referer=http://support.amd.com https://drivers.amd.com/drivers/linux/amdgpu-pro-19.20-812932-ubuntu-18.04.tar.xz |
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 * as shelljs from 'shelljs'; | |
import * as fs from 'fs'; | |
let modifyHosts = ['somehost.tld', 'testing.localdev']; | |
(shelljs.exec(`ip addr | grep "scope global eth0"`, {async: true}).stdout as any).on('data', (data) => { | |
if (data.includes('scope global eth0')) { | |
let ip = data.replace('inet ', '').split('/')[0].trim(); | |
let hosts = fs.readFileSync("/mnt/c/Windows/System32/drivers/etc/hosts", {encoding: 'utf-8'}) | |
.split('\n'); | |
NewerOlder