Skip to content

Instantly share code, notes, and snippets.

View yyolk's full-sized avatar
🍯
𝙧𝙚𝙘𝙪𝙧𝙨𝙞𝙫𝙚 𝙩𝙖𝙪𝙩𝙤𝙡𝙤𝙜𝙮

Joseph Chiocchi yyolk

🍯
𝙧𝙚𝙘𝙪𝙧𝙨𝙞𝙫𝙚 𝙩𝙖𝙪𝙩𝙤𝙡𝙤𝙜𝙮
View GitHub Profile
@yyolk
yyolk / urlsafari.scpt
Last active March 8, 2024 22:12 — forked from kshiteesh/urlsafari
This AppleScript saves all the tabs open in all Safari windows to a Markdown file.
(*
Export All Safari Tabs in All Open Windows to a Markdown File
March 8th, 2024
// SCRIPT PAGE
https://gist.github.com/yyolk/5ee36b12271d89371fe859630aee80a4
// ORIGINAL SCRIPT ON WHICH THIS SCRIPT WAS ORIGINALLY BUILT
http://veritrope.com/code/export-all-safari-tabs-to-a-text-file
@yyolk
yyolk / ansi.py
Created January 31, 2024 00:29
basic python ansi colors to vendor into your project without needing to pip install
class AnsiColors:
fg_black = "\u001b[30m"
fg_red = "\u001b[31m"
fg_green = "\u001b[32m"
fg_yellow = "\u001b[33m"
fg_blue = "\u001b[34m"
fg_magenta = "\u001b[35m"
fg_cyan = "\u001b[36m"
fg_white = "\u001b[37m"
bg_black = "\u001b[40m"
@yyolk
yyolk / httpie-transfer.sh
Last active January 28, 2024 22:37
upload to transfer.sh with httpie
# curl is usually outdated and missing --upload-file option
# pipx install httpie
# pip install httpie
# apt install httpie
# transfer.sh follows HTTP semantics, where PUT is the appropriate file upload method
http PUT https://transfer.sh/destination.zip @source.zip
# or with redirection
http PUT https://transfer.sh/destination.zip < source.zip
@yyolk
yyolk / README.md
Last active January 28, 2024 22:25
rust armv6 cross tools for ARMv6Z-based BCM2835

Run install_rust_armv6_target.sh

Rust is automatically installed with https://rustup.rs

sh ./install_rust_armv6_target.sh

Compile target from project directory

@yyolk
yyolk / seeyouspacecowboy.sh
Created August 6, 2018 04:49
A shell script to display SEE YOU SPACE COWBOY whenever you logout of your terminal!
#!/usr/bin/env bash
# SEE YOU SPACE COWBOY by DANIEL REHN (danielrehn.com)
# Displays a timeless message in your terminal with cosmic color effects
# Usage: add "sh ~/seeyouspacecowboy.sh; sleep 2" to .bash_logout (or similar) in your home directory
# (adjust the sleep variable to display the message for more seconds)
# Cosmic color sequence
@yyolk
yyolk / RDS-Aurora-CloudFormation-Example.yaml
Created March 2, 2017 19:21 — forked from sjparkinson/RDS-Aurora-CloudFormation-Example.yaml
A basic CloudFormation template for an RDS Aurora cluster.
---
AWSTemplateFormatVersion: 2010-09-09
Description: A basic CloudFormation template for an RDS Aurora cluster.
Parameters:
DatabaseInstanceType:
Default: db.r3.large
AllowedValues:
- db.r3.large
- db.r3.xlarge
- db.r3.2xlarge
@yyolk
yyolk / chia-blockchain.patch
Created August 10, 2023 00:27
FreeBSD patches for running Chia-Network/chia-blockchain@2.0.0-rc4
diff --git a/setup.py b/setup.py
index fc27c7d1e..9e86d7469 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ dependencies = [
"boto3==1.26.161", # AWS S3 for DL s3 plugin
"chiavdf==1.0.10", # timelord and vdf verification
"chiabip158==1.2", # bip158-style wallet filters
- "chiapos==2.0.0", # proof of space
+ "chiapos", # proof of space
@yyolk
yyolk / nm_l2tp_ipsec_vpn.md
Created February 9, 2020 22:13 — forked from luvarqpp/nm_l2tp_ipsec_vpn.md
setup L2TP IPSEC VPN in archlinux using NetworkManager

setup L2TP IPsec VPN in archlinux using NetworkManager

install networkmanager-l2tp first:

yaourt -S networkmanager-l2tp
apt install -y network-manager-l2tp
@yyolk
yyolk / irssi twitch.txt
Last active January 26, 2023 04:57 — forked from lambdan/irssi twitch.txt
Twitch chat with irssi - June 2021
Tested working 20 Jun 2021, irssi version 1.2.3
This is a TLDR version of https://blog.crunchprank.net/connecting-to-twitch-chat-via-irssi/
Get your OAuth token (password) here: https://twitchapps.com/tmi/
# Network setup:
/network add -nick YOUR_TWITCH_USERNAME twitch
/server add -auto -ssl -network Twitch irc.chat.twitch.tv 6697 YOUR_OAUTH_TOKEN
@yyolk
yyolk / _rtorrent-pushover.md
Last active October 31, 2022 00:23
rtorrent + pushover howto & sample

#script to use pushover for rtorrent notifications

Used for openelec [unofficial][unofficial] rtorrent addon but can be part of any rtorrent setup.

  1. Buy Pushover for [iOS][ios] or [Android][android]
  2. Create a new app, and upload a custom icon for your notifications.
  3. [Download][rbraw] or copy rtorrent-notification.rb into a new file
  4. Insert your new app's API token in script under token