😶🌫️
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
/** This simple (and hacky) script automatically reloads the browser when a golang air server updates */ | |
function serverReload() { | |
clearInterval(refreshId); | |
console.debug("Connection lost"); | |
awaitServerSuccess(); | |
} | |
function awaitServerSuccess() { | |
setTimeout(() => { |
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
#!/usr/bin/env bash | |
# this simple script updates your shadcn ui components | |
# and provides a diff view so that you can see all the | |
# changes that will be applied when you update | |
temp_dir=$(mktemp -d) | |
components=$(find ./src/components/ui/ -name '*.[j|t]sx' -exec basename {} \;) | |
if [ $? -ne 0 ]; then | |
echo "No components found" |
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
I'm a software engineer. | |
When generating a response to programming questions, use code examples with all programming related answers. | |
At the end of all your responses, you should include a summary of what you have said, which also includes any further deductions which you can make by critically analyzing the information you have gathered. | |
If applicable you should also not be afraid to provide counter examples to ensure accurate information. |
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
# pintest | |
www.pinterest.com | |
pinterest.com | |
www.reddit.com | |
oauth.reddit.com | |
gql.reddit.com | |
e.reddit.com |
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 | |
# a big thank you to dnsparanoia.com for providing these services | |
# this script allows a simple user to test if their DNS requests are being modified without technical knowledge | |
# I will be providing links that explain on the dnsp website what each test does | |
# https://dnsparanoia.com/debug_dns_that_should_fail.php | |
host fail.dnsp.co > /dev/null 2>&1; | |
if [ $? -eq 0 ]; then | |
echo -e "\033[31;40m[ALERT] Potential of DNS Request Interception\033[0m"; |
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
# Title: Geographical Fingerprinting Tracker Protection List | |
# | |
# This is a blocklist file containing all the SaaS domains that track user locations & IP addresses | |
# Warning: this blocklist may break websites. However, while using this blocklist I (the author) have only seen 1 website break | |
# Warning: i do not suggest going to any of these websites as they may be malicous, and usually get ip locations by users visiting the website, get geographical locations, and associating it with the IP address for anyone who requests your IP address in the future | |
# generalised tracking domains | |
*.akamai.net | |
*.snoopi.io | |
*.ipgeolocation.io |
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 | |
# uninstall old instance of rstudio | |
sudo gdebi -r rstudio | |
# install new instance | |
# install dependencies | |
sudo apt update | |
sudo apt install gdebi-core && sudo apt install r-base |
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
package main | |
import ( | |
"io" | |
"log" | |
"net/http" | |
"io/ioutil" | |
"os" | |
) | |
func main() { |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
# installs a local virtual environment | |
initilize_python_virtual_environment() { | |
# check what python version to use | |
which python3; | |
USE_PYTHON3=0; | |
if [ $? -eq 0 ]; then | |
USE_PYTHON3=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
#!/bin/bash | |
# decrease swappiness | |
# this will cause more programs to be preloaded into swap memory | |
sudo sysctl vm.swappiness=10; | |
# increase SWAP by 6 GB | |
sudo rm /swapfile_large; | |
free -h; |