Skip to content

Instantly share code, notes, and snippets.

View tomazursic's full-sized avatar

Tomaz Ursic tomazursic

View GitHub Profile
@tomazursic
tomazursic / newclient.sh
Created February 14, 2019 16:53
Generate OpenVPN keys
#!/bin/bash
# Current file directory path
DIR="$(cd "$(dirname "$0")" && pwd)"
cd $DIR
generate_keys () {
key_dir=keys
archive=client-$ID.zip
base_config=base-client.conf

Mount NTFS filesystem

# using this on osx derivate
sudo /usr/local/bin/ntfs-3g /dev/disk2s1 /Volumes/NTFS -olocal -oallow_other

Transfer disk image file on external drive with dd progress

# at the cost of speed! 

sudo pv -tpreb .iso | sudo dd of=/dev/disk2 bs=4M

@tomazursic
tomazursic / index.html
Created April 28, 2021 07:15
Boilerplate
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Unique page title - My Site</title>
<script type="module">
document.documentElement.classList.remove('no-js');