Skip to content

Instantly share code, notes, and snippets.

@bluewalk
bluewalk / GetNordVPNWireGuardDetails.md
Last active July 22, 2024 17:14
Getting NordVPN WireGuard details

About

Instructions to obtain WireGuard details of your NordVPN account. These can be used to setup a WireGuard tunnel on your router to NordVPN.

Source: https://forum.gl-inet.com/t/configure-wireguard-client-to-connect-to-nordvpn-servers/10422/27

Prerequisites

If you have any linux machine, use that or install a vm if you don't have one.

Get their official linux app installed. Make sure you have wireguard installed too. And set the used technology to Nordlynx by running nordvpn set technology nordlynx

@pR0Ps
pR0Ps / warpwg.sh
Created September 29, 2019 00:02
Generate a vanilla Wireguard config file for Cloudflare's WARP service
#!/usr/bin/env bash
set -eou pipefail
# This script takes/generates a Wireguard private/public key pair, registers it with CloudFlare's WARP
# service, and outputs a Wireguard config file.
# Adapted from @saurik's script here: https://twitter.com/saurik/status/1176893448445558784
if [ "$#" -gt 0 ] && [ "$1" = "--help" ]; then
echo "Creates a Wireguard config file for CloudFlare's WARP service."
@fabulator
fabulator / locale.json
Created January 17, 2018 11:32
List of Facebook locales (from user settings)
{
"so_SO":"Af-Soomaali",
"af_ZA":"Afrikaans",
"az_AZ":"Azərbaycan dili",
"id_ID":"Bahasa Indonesia",
"ms_MY":"Bahasa Melayu",
"jv_ID":"Basa Jawa",
"cx_PH":"Bisaya",
"bs_BA":"Bosanski",
"br_FR":"Brezhoneg",
@veuncent
veuncent / aws_glacier_delete_vault.md
Last active July 12, 2024 09:22
Delete all archives in an AWS Vault

AWS Glacier: Delete vault

Follow these steps to remove all archives from an AWS vault. After this is finished, you will be able to delete the vault itself through the browser console.

Step 1 / Retrieve inventory

This will create a job that collects required information about the vault.

$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --account-id YOUR_ACCOUNT_ID --region YOUR_REGION --vault-name YOUR_VAULT_NAME 
@lasida
lasida / Facebook Languange Code list php array
Created February 22, 2017 09:10
Facebook Languange Code list Array PHP for Displaying Select Box necessary
<?php
/**
* Facebook Languange Code list Array PHP.
*
* Locales taken from http://www.facebook.com/translations/FacebookLocales.xml
*
* Last Updated: 22/02/2017
*
* @author Lasida Azis
* Inspiration from SVC Invoke
@Vestride
Vestride / encoding-video.md
Last active June 5, 2024 14:38
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@kgorman
kgorman / gist:134896c7414fde8e090b
Last active May 7, 2024 13:34
MongoDB Profiler Cheat Sheet
// a list of useful queries for profiler analysis. Starting with the most basic.
// 2.4 compatible
//
// output explained:
//
{
"ts" : ISODate("2012-09-14T16:34:00.010Z"), // date it occurred
"op" : "query", // the operation type
"ns" : "game.players", // the db and collection