Skip to content

Instantly share code, notes, and snippets.

aserhat / 0 - setup
Last active Oct 12, 2021
View 0 - setup
# Summary
A few notes I took to see if I could use MacOS as Hypevirsor in a similar fashion to Linux
I wanted to see how few addons were needed instead of using Parallels, Virtual Box, VM Fsion etc.
The idea is to use QEMU, Hypervisor Framework ( and some custom host networking.
# Installations
brew install qemu (For controlling Hypervisor Framework)
brew install cdrtools (For making cloud init iso's) (For customer tap based networking)
heywoodlh / reset-terminal-services.ps1
Created Sep 1, 2017
Script for renewing RDP License
View reset-terminal-services.ps1
## This Script is intended to be used for Querying remaining time and resetting Terminal Server (RDS) Grace Licensing Period to Default 120 Days.
## Developed by Prakash Kumar ( May 28th 2016
## Disclaimer: Please test this script in your test environment before executing on any production server.
## Author will not be responsible for any misuse/damage caused by using it.
$ErrorActionPreference = "SilentlyContinue"
## Display current Status of remaining days from Grace period.
View 用树莓派做Bitcoin Unlimited全节点.md

这是一个用树莓派做Bitcoin Unlimited全节点的示例。对于没用使用过全节点钱包,也不熟悉命令行操作的朋友,建议先看这篇教程,尝试在PC或Mac上安装和同步区块链,这样更容易理解这个示例。





  • 树莓派 3B(配盒子,电源)
  • 16GB的SD卡Class 10 microSDHC
r0l1 / copy.go
Last active Oct 11, 2021
Copy a directory tree (preserving permissions) in Go.
View copy.go
/* MIT License
* Copyright (c) 2017 Roland Singer []
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
jpillora / unix-to-tcp.go
Last active Oct 14, 2021
Forward unix socket to tcp socket
View unix-to-tcp.go
package main
import (
const (

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

Jimmy-Xu /
Created Dec 14, 2015
upgrade Python 2.7.6 -> 2.7.9 on Ubuntu 14.04
# Installs Python 2.7.9 on Ubuntu 14.04 to include security updates
# Run this script with superuser privileges.
BASEDEPS="build-essential python-pip"
BUILDDEPS="libbz2-dev \
libc6-dev \
libgdbm-dev \
denji /
Last active Oct 14, 2021 — forked from spikebike/client.go
Simple Golang HTTPS/TLS Examples

Moved to git repository:

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
sheikhwaqas /
Last active Sep 9, 2021
Install MySQL Server on Ubuntu (Non-Interactive Installation)
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Set the Server Timezone to CST
echo "America/Chicago" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# Enable Ubuntu Firewall and allow SSH & MySQL Ports
ufw enable
ufw allow 22
JamesChevalier /
Last active Oct 15, 2021
Unicode on Mac is insane. Mac OS X uses NFD while everything else uses NFC. This fixes that.

convmv manpage

Install convmv if you don't have it

sudo apt-get install convmv

Convert all files in a directory from NFD to NFC:

convmv -r -f utf8 -t utf8 --nfc --notest .