This file contains hidden or 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 | |
| set -euo pipefail | |
| # macOS: remove Ollama app, launch agent/service files, caches, logs, and all models. | |
| # REVIEW BEFORE RUNNING. This permanently deletes downloaded models. | |
| pkill -x Ollama || true | |
| pkill -f ollama || true | |
| paths=( |
This file contains hidden or 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 | |
| set -euo pipefail | |
| # macOS: remove VMware Fusion app, support files, prefs, caches, logs, kext remnants, | |
| # and common VM image locations (.vmwarevm bundles). | |
| # REVIEW THIS BEFORE RUNNING. It permanently deletes VMs. | |
| sudo pkill -x "VMware Fusion" || true | |
| sudo pkill -f vmware || true |
This file contains hidden or 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 json | |
| import logging | |
| log = logging.getLogger() | |
| log.setLevel(logging.INFO) | |
| def _iter_messages(event): | |
| """ | |
| Supports these trigger shapes: | |
| 1) Direct S3 -> Lambda (Records[]) |
This file contains hidden or 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
| @@||netflix.com^ | |
| @@||nflxvideo.net^ | |
| @@||nflximg.net^ | |
| @@||nflxso.net^ | |
| @@||nflxext.com^ | |
| @@||hulu.com^ | |
| @@||huluim.com^ | |
| @@||hulustream.com^ |
This file contains hidden or 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 | |
| # Enable IP forwarding | |
| echo "net.ipv4.ip_forward=1" | sudo tee -a /etc/sysctl.conf | |
| sudo sysctl -p | |
| # Install required packages | |
| sudo apt update | |
| sudo apt install -y strongswan xl2tpd ppp ufw iptables-persistent |
This file contains hidden or 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
| resource "aws_config_config_rule" "account_part_of_organizations" { | |
| name = "account-part-of-organizations" | |
| description = "Rule checks whether AWS account is part of AWS Organizations. The rule is NON_COMPLIANT if the AWS account is not part of AWS Organizations or AWS Organizations master account ID does not match rule parameter MasterAccountId." | |
| source { | |
| owner = "AWS" | |
| source_identifier = "ACCOUNT_PART_OF_ORGANIZATIONS" | |
| } |
This file contains hidden or 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
| // go to this link https://www.youtube.com/feed/channels | |
| // run code below in browser console | |
| (async () => { | |
| const delay = (ms) => new Promise(res => setTimeout(res, ms)); | |
| let buttons = document.querySelectorAll('ytd-subscribe-button-renderer yt-button-shape button'); | |
| for (let button of buttons) { | |
| if (button.innerText.trim().toLowerCase() === "subscribed") { |
This file contains hidden or 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 | |
| # source: https://gist.github.com/justlaputa/a6da84981eca963817e652b5f2452cfc | |
| set -o errexit | |
| set -o pipefail | |
| set -o nounset | |
| STARS_PAGE_COUNT=20 | |
| STARS_FILE=stars.txt | |
| DELETE_SLEEP_TIME=.5 |
This file contains hidden or 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=5 | |
| indicator("HTF Candle R1.2 by JustUncleL", shorttitle="HTF Candle", overlay=true) | |
| // | |
| // Author: JustUncleL | |
| // Date: 9-Nov-2017 | |
| // Version: R1.2 | |
| // | |
| // Description: |
This file contains hidden or 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
| class SuperTrend(bt.Indicator): | |
| lines = ('super_trend',) | |
| params = ( | |
| ('multiplier', 12.0), | |
| ('atr_period', 3), | |
| ) | |
| def __init__(self): | |
| self.isDownTrend = -1 | |
| self.isUpTrend = 1 |
NewerOlder