Skip to content

Instantly share code, notes, and snippets.

@U1F30C
U1F30C / shapefileConversion.md
Created December 3, 2023 03:37 — forked from YKCzoli/shapefileConversion.md
Step through of converting shapefile to geojson with qgis.

Converting shapefiles to geojson

####Assumptions

Get the data

We will use the Electoral District and Polling Division shapefiles found on the Elections Ontario site:

@U1F30C
U1F30C / README.md
Created December 3, 2023 03:08 — forked from gilangvperdana/README.md
Make your Ubuntu Server be Router!

Goals

  • Can use Ubuntu Server 20.04 LTS to be Router Gateway include DHCP Server
  • Client who connected to Ubuntu Server can be access Internet

Environement

  • Ubuntu 20.04 LTS
  • 2 Interface
    • 1 Interface from WAN / ISP (enp2s0)
    • 1 Interface for distribution clients (enx00e04c534458)
@U1F30C
U1F30C / OpenSSL Verify Signature in Bash
Created September 2, 2022 04:22 — forked from DustinD2/OpenSSL Verify Signature in Bash
This is a sample openssl bash script to create a matching RSA key pair and create a signed sha1 digest of the script itself using the private key. The digest is then verified against the public key.
#!/bin/bash
#create our key pairs
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -pubout -out public.pem
#sign and verify
openssl dgst -sha1 -sign private.pem -out "$0".sha1 $0
openssl dgst -sha1 -verify public.pem -signature "$0".sha1 $0
@U1F30C
U1F30C / aes-256-cbc.js
Last active December 22, 2021 03:22 — forked from siwalikm/aes-256-cbc.js
AES-256-CBC implementation in nodeJS with built-in Crypto library
'use strict';
const crypto = require('crypto');
const ENC_KEY = "bf3c199c2470cb477d907b1e0917c17b"; // set random encryption key
const IV = "5183666c72eec9e4"; // set random initialization vector
// ENC_KEY and IV can be generated as crypto.randomBytes(32).toString('hex');
const phrase = "who let the dogs out";
var encrypt = ((val) => {
@U1F30C
U1F30C / dining-philosophers.js
Created December 20, 2021 01:34 — forked from Leko/dining-philosophers.js
The dining philosophers implementation of Node.js
/**
* The dining philosophers implementation of Node.js
*
* See also:
* http://rust-lang-ja.github.io/the-rust-programming-language-ja/1.6/book/dining-philosophers.html
*
* (c) 2018 Leko
*/
const cluster = require('cluster')
#### Issue description
#### Steps to reproduce the issue
1.
2.
3.