Skip to content

Instantly share code, notes, and snippets.

premek /
Last active Sep 30, 2020
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
chrisswanda / WireGuard_Setup.txt
Last active Jan 22, 2021
Stupid simple setting up WireGuard - Server and multiple peers
View WireGuard_Setup.txt
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
amanjuman / SoftEther VPN Server Setup in Raspberry Pi 3
Last active Jan 2, 2021
SoftEther VPN Server Setup in Raspberry Pi 3
View SoftEther VPN Server Setup in Raspberry Pi 3
sudo su
cd /root/
tar xzf softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-arm_eabi-32bit.tar.gz && rm softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-arm_eabi-32bit.tar.gz
cd vpnserver && sudo make
cd ..
sudo mv vpnserver /usr/local && cd /usr/local/vpnserver/
sudo chmod 600 *
mill1000 /
Last active Jan 14, 2021
Headless A2DP Audio Streaming on Raspbian Stretch


This gist will show how to setup Raspbian Stretch as a headless Bluetooth A2DP audio sink. This will allow your phone, laptop or other Bluetooth device to play audio wirelessly through a Rasperry Pi.


A quick search will turn up a plethora of tutorials on setting up A2DP on the Raspberry Pi. However, I felt this gist was necessary because this solution is:

  • Automatic & Headless - Once setup, the system is entirely automatic. No user iteration is required to pair, connect or start playback. Therefore the Raspberry Pi can be run headless.
  • Simple - This solution has few dependencies, readily available packages and minimal configuration.
  • Up to date - As of December 2017. Written for Raspbian Stretch & Bluez 5.43


hyteckit / rtl_tcp.service
Last active Oct 5, 2017 — forked from bemasher/
A simple system for collecting and writing differential consumption values to an influxdb database.
View rtl_tcp.service
Description=Software Defined Radio TCP Server
mapmeld /
Last active Sep 27, 2020
OverEncrypt - paranoid HTTPS


This is a guide that I wrote to improve the default security of my website , which has a certificate from LetsEncrypt. I'm choosing to improve HTTPS security and transparency without consideration for legacy browser support.

WARNING: if you mess up settings, lose your certificates, or decide to no longer maintain HTTPS certs, these steps can and will make your domain inaccessible.

I would recommend these steps only if you have a specific need for information security, privacy, and trust with your users, and/or maintain a separate domain which won't mess up your main site. If you've been thinking about hosting a site on Tor, then this might be a good option, too.

The best resources that I've found for explaining these steps are , , and

bemasher /
Last active Feb 2, 2019
This has become a full-blown project, see
x33st0rm / w7-malicious-updates-removal.bat
Last active Sep 14, 2017
Windows 7 removal of malicious telemetry/spyware, windows 10 forceful upgrade and otherwise unwanted updates.
View w7-malicious-updates-removal.bat
@echo off
echo ------------------------------------------------------------------------------
echo Windows 7 Malicious Updates Batch Uninstaller by st0rm ( Updated 03-06-2016 )
echo ------------------------------------------------------------------------------
echo Prevent future malicious updates by disabling automatic windows updates.
echo Reboot manually afterwards to finish process.
echo ------------------------------------------------------------------------------
echo Uninstalling KB971033
wusa /uninstall /kb:971033 /quiet /norestart
xvitaly / remove_crw.cmd
Last active Jan 16, 2021
Remove telemetry updates for Windows 7 and 8.1
View remove_crw.cmd
@echo off
echo Uninstalling KB3075249 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3021917 (telemetry for Win7)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
echo Uninstalling KB3022345 (telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
echo Uninstalling KB3068708 (telemetry)
PurpleBooth /
Last active Jan 25, 2021
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.