Skip to content

Instantly share code, notes, and snippets.

View drsh0's full-sized avatar

drsh0

View GitHub Profile
@unixfox
unixfox / readme.md
Last active July 2, 2024 07:51
How to get IPv4 connectivity on an IPv6 only VPS

Some hosting providers like scaleway allows to remove the IPv4 from the VPS in order to save 1€/month but doing this will result in losing connectivity to the "IPv4 world".
Or you may have ordered a VPS that only has IPv6 connectivity and you want to access to a resource only accessible from the "IPv4 world".
Here is how to gain your access back to the "IPv4 world".

Change your name servers(s) to DNS64 name servers(s)

Note: You may deploy your own DNS64 & NAT64 server on a separate server by following this tutorial (untested): https://packetpushers.net/nat64-setup-using-tayga/.
Note²: You may find a explanation of what is NAT64 and DNS64 on Wikipedia.

  1. Choose a/multiple DNS64 public server(s) that has/have its own NAT64 public service from this list:
let bookmarkList = Array.from(document.querySelectorAll('.widget>.vbox'))
.map(e => e.shadowRoot)
.map(e => e && e.querySelector('.device-page-list'))
.find(e => e);
let bookmarks = Array.from(bookmarkList.querySelectorAll('.vbox'))
.map(e => `<a href="${e.querySelector('x-link').innerHTML}">${e.querySelector('.device-page-title').innerHTML}</a>`);
copy('<html><body>' + bookmarks.join('\n') + '</body></html>');
@patrickkelso
patrickkelso / uni-advice.md
Last active March 13, 2019 04:52
Uni Advice

Things I wish I'd known.

Learn time management & delayed gratification. This is the number one predictor of success in my experience. Yes going out with your friends is more interesting than working on your assignment; but finishing your assignments in a timely fashion so they aren't all due at once, and then going out with your friends is better. I recommend using Google Calendar or similar alternatives to keep track of your timetable both classes and other activities.

Read Never Eat Alone by Keith Ferrazzi. Your network is important to your success. If you're technically minded try setting up Monica to track everyone. When you're struggling with an assignment on Binary Decision Trees wouldn't it be awesome if you knew someone who had done it already to ask for advice? If you can't run Monica or afford to pay for it use Excel. Just don't rely on your brain, it's full of other things. If your uni offers a mentoring program join it. (I have several

@molotovbliss
molotovbliss / terminalrc
Created December 14, 2017 08:41
Dracula Theme for XFCE4 Terminal
ColorBackground=#28282a2a3636
ColorForeground=#f8f8f8f8f2f2
ColorSelection=#363639394848
ColorBold=#f4f47676c3c3
ColorCursor=#5050fafa7b7b
TabActivityColor=#5050fafa7b7b
ColorPalette=#000000000000;#9a9a40404646;#90907979b3b3;#929298986363;#3d3d98985a5a;#9a9a53538282;#3a3a4d4d5b5b;#8bfc8bfc8ccc;#4d4d4d4d4d4d;#ffff55555555;#cacaa9a9fafa;#f1f1fafa8c8c;#5050fafa7b7b;#ffff7979c6c6;#8b8be9e9fdfd;#f8f8f8f8f2f2
ColorSelectionUseDefault=FALSE
ColorBoldUseDefault=FALSE
@cezarignat
cezarignat / selfsign-vmware-modules.sh
Last active November 1, 2023 15:09
Self sign the required modules, vmmon and vmnet, for VMWARE to work with SecureBoot on, Ubuntu 17
#!/bin/sh
#Asking for sudo because the script needs it almost all the time
sudo echo -n
#Creating the key used to sign the two modules
echo 'Preparing vmware key...'
openssl req -new -x509 -newkey rsa:2048 -keyout VMWAREKEY.priv -outform DER -out VMWAREKEY.der -nodes -days 36500 -subj "/CN=VMware/"
#Sign the modules
😒🙅🙄
$thing for fun and profit
all your $thing are belong to $shutup
honey I $verbed the $thing
$thing demystified
$thing: a deep dive
$verb all the things
make $thing great again
$x and $y and $z, oh my!
@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000