Skip to content

Instantly share code, notes, and snippets.

@hoangdh
hoangdh / Dockerfile-PyKMS
Last active April 30, 2024 17:16
Dockerfile - KMS Emulator Server on Linux (vlmcsd & PyKMS)
FROM alpine:3.9
MAINTAINER hoangdh <github.com/hoangdh>
ENV LIB python3-tkinter python3-dev sqlite-dev
ENV DEP build-base git py-pip
RUN apk update \
&& apk add --no-cache $LIB $DEP \
&& git clone https://github.com/SystemRage/py-kms /tmp/py-kms \
@reginadiana
reginadiana / README-TEMPLATE.md
Last active April 30, 2024 17:15
Template sugestivo para documentação de projetos

Titulo ou Arte do Projeto

@r3code
r3code / 01_vps-vpn-setup.md
Last active April 30, 2024 17:14
Настройка VPS для VPN: IPSec/IKEv2 или Outline Server

Настройка VPS для VPN

Использую сервер на Ubuntu 20.04 LTS

Варианты для VPN

Тестировался на канале 100 Мбит/с (96/95 Мбит/с download/upload)

  • IKEv2 IPSec сервер - download: 9-10 Мбит/с, upload 29 Мбит/с
  • Outline VPN Server - download: 23-29 Мбит/с, upload 29-34 Мбит/с
  • Wireguard VPN server - download: 15-20 Мбит/с, upload 27-31 Мбит/с
@astrojuanlu
astrojuanlu / dft_scipy.ipynb
Last active April 30, 2024 17:14
Transformada de Fourier discreta en Python con SciPy
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@TrevTV
TrevTV / ArcOn10.md
Last active April 30, 2024 17:13
Guide to installing Arc Browser on Windows 10

As this is not an official way of installing Arc, if you encounter any issues do NOT report them to the developers, they did not intend for people to be running Arc on Windows 10.

This guide is a bit more manual since I wanted to respect the developers' wishes and not directly link any downloads to the beta of Arc.

I don't know how this will work with updates, you may just need to redo the process to update it, but I'm not sure

  1. Install this font: https://aka.ms/SegoeFluentIcons (this fixes the icons since Windows 10 doesn't have this font installed by default)
  2. Download the Arc appinstaller and open it in notepad/some other text editor
  3. Copy everything inside and paste it into this website: https://codebeautify.org/xmlviewer (this is optional, but it makes reading and copying from the file easier)
  4. Find the mainpackage @Uri, it should end in Arc.x64.msix, and open that in a new tab. It should download that msix file.
@ianelsbree
ianelsbree / Setting Up WSL with VS Code.md
Last active April 30, 2024 17:11
WSL with VS Code Setup

Setting Up WSL with VS Code for CS-120/CS-170

Introduction

This instructional guide will show you how to set up Windows Subsystem for Linux, along with Visual Studio Code integration; this will make writing, compiling, and testing code for the CS-120 and CS-170 courses more streamlined. I assume you are using the latest version of Microsoft Windows, have access to the Microsoft Store (only 1 free program is used), and have a basic knowledge of how to use the Windows operating system and command line. Prior knowledge of Linux and the Bash shell is not required, although it certainly doesn't hurt.

Windows Subsystem for Linux

Windows Subsystem for Linux is actually a Linux subsystem on your Windows system. Confusing names aside, it allows you to run Linux programs (such as Valgrind) on a Windows computer. Additionally, Linux shell syntax is preferred by some, including those who may need to be running Windows for other reasons. As such, WSL allows a good compromise between Linux functionality and Win

@angelo-v
angelo-v / jwt-decode.sh
Last active April 30, 2024 17:09
Decode a JWT via command line
# will not work in all cases, see https://gist.github.com/angelo-v/e0208a18d455e2e6ea3c40ad637aac53#gistcomment-3439904
function jwt-decode() {
sed 's/\./\n/g' <<< $(cut -d. -f1,2 <<< $1) | base64 --decode | jq
}
JWT=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
jwt-decode $JWT
@jacobsalmela
jacobsalmela / ltsp.conf
Created April 21, 2016 16:36
dnsmasq config file for iPXE booting with an existing DHCP server
# Sample configuration for dnsmasq to function as a proxyDHCP server,
# enabling LTSP clients to boot when an external, unmodifiable DHCP
# server is present.
# The main dnsmasq configuration is in /etc/dnsmasq.conf;
# the contents of this script are added to the main configuration.
# You may modify the file to suit your needs.
# Don't function as a DNS server:
port=0
@joshuabaker
joshuabaker / languages.json
Last active April 30, 2024 17:07
List of languages with ISO 639-1 Alpha-2 codes in JSON.
[
{
"code": "aa",
"name": "Afar",
"native": "Afar"
},
{
"code": "ab",
"name": "Abkhazian",
"native": "Аҧсуа"