Skip to content

Instantly share code, notes, and snippets.

View hudson-newey's full-sized avatar
😶‍🌫️

Hudson Newey hudson-newey

😶‍🌫️
View GitHub Profile
@hudson-newey
hudson-newey / My Perplexity.ai AI Profile
Created August 17, 2023 04:51
A nice AI Profile that appears to generate the best results for me
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.
@hudson-newey
hudson-newey / Unproductive_Blocklist.txt
Last active March 31, 2023 08:48
A list of sites that you should block because they inhibit productivity (for programers)
# pintest
www.pinterest.com
pinterest.com
# reddit
www.reddit.com
oauth.reddit.com
gql.reddit.com
e.reddit.com
@hudson-newey
hudson-newey / Test_DNS_Poison.sh
Last active March 28, 2023 13:05
Alerts you if your DNS traffic is being intercepted, cached, or poisoned by a third party
#!/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";
@hudson-newey
hudson-newey / Geo&IP_Tracker_Domains_List.txt
Last active September 6, 2023 11:22
This is a blocklist file containing SaaS domains that track user locations & IP addresses
# 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
#!/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
@hudson-newey
hudson-newey / server.go
Last active November 13, 2023 11:59
A simple golang server for serving a single file
package main
import (
"io"
"log"
"net/http"
"io/ioutil"
"os"
)
func main() {
@hudson-newey
hudson-newey / python_init.sh
Last active March 11, 2024 09:44
A generic python & python3 virtual environment initialiser.
#!/bin/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;
@hudson-newey
hudson-newey / Ubuntu-Improved-Memory.sh
Last active April 12, 2023 11:57
Improves memory management for lower spec machines. Optimised and tested on Ubuntu & Fedora based distros
#!/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;