Skip to content

Instantly share code, notes, and snippets.

Avatar

Brian Bradshaw frost-byte

View GitHub Profile
@Belphemur
Belphemur / generate-client.sh
Last active Oct 20, 2021
Generate a new client configuration for WireGuard
View generate-client.sh
#!/usr/bin/env bash
if [ -z "$1" ]
then
echo "$0 client-name"
exit 1
fi
@akexorcist
akexorcist / index.js
Last active Nov 17, 2022
Axios post method requesting with x-www-form-urlencoded content type. See https://axios-http.com/docs/urlencoded
View index.js
const axios = require('axios')
/* ... */
const params = new URLSearchParams()
params.append('name', 'Akexorcist')
params.append('age', '28')
params.append('position', 'Android Developer')
params.append('description', 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/')
params.append('awesome', true)
@aadnk
aadnk / LoggedPluginManager.java
Created Oct 13, 2012
Simple proxy-classes for adding better error handling in Minecraft.
View LoggedPluginManager.java
/*
* Logged-classes - Simple proxy-classes for adding better error handling in Minecraft.
* Copyright (C) 2012 Kristian S. Stangeland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,