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
# install wireguard | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install libmnl-dev libelf-dev linux-headers-$(uname -r) build-essential pkg-config | |
sudo apt install wireguard | |
# generate keys | |
# write down this as pubkey | |
wg genkey | sudo tee /etc/wireguard/privatekey | wg pubkey | sudo tee /etc/wireguard/publickey |
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
# especially useful for flags in angular | |
const isoCountries = new Map([ | |
['Afghanistan', 'af'], | |
['Aland Islands', 'ax'], | |
['Albania', 'al'], | |
['Algeria', 'dz'], | |
['American Samoa', 'as'], | |
['Andorra', 'ad'], | |
['Angola', 'ao'], |
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
# after following wireguard-setup follow these instructions to fast deploy on mobile phone | |
cd ~ | |
mkdir mobile-client | |
cd mobile-client | |
# generate key pairs for your mobile device | |
wg genkey | sudo tee mobile-privatekey | wg pubkey | sudo tee mobile-publickey | |
cat mobile-privatekey |
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
version: "3" | |
services: | |
pihole: | |
container_name: pihole | |
image: pihole/pihole:latest | |
ports: | |
- "53:53/tcp" | |
- "53:53/udp" | |
- "67:67/udp" |
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
#Useful to define rules based on country | |
sudo apt-get update; sudo apt-get -y upgrade | |
sudo apt-get install curl unzip perl | |
sudo apt-get install xtables-addons-common | |
sudo apt-get install libtext-csv-xs-perl libmoosex-types-netaddr-ip-perl | |
sudo mkdir /usr/share/xt_geoip | |
sudo nano /usr/local/bin/geo-update.sh |
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
cmake_minimum_required(VERSION 3.20) | |
project(point-based-rendering CXX) | |
find_package(glfw3 REQUIRED) | |
find_package(glew REQUIRED) | |
find_package(fmt REQUIRED) | |
find_package(spdlog REQUIRED) | |
find_package(glm REQUIRED) |
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
Beginner's Method for Rubick's Cube 3x3 | |
--- | |
1. White Edges | |
2. White Corners | |
3. Second Layer | |
4. Yellow Cross | |
5. Swap Yellow Edges | |
6. Position Yellow Corners | |
7. Orient Yellow Corners |