Skip to content

Instantly share code, notes, and snippets.

View dreammaster38's full-sized avatar

Thomas Guenther dreammaster38

View GitHub Profile
4r5e
5h1t
5hit
a55
anal
anus
ar5e
arrse
arse
ass
<#
This license governs use of the accompanying software. If you use the software, you
accept this license. If you do not accept the license, do not use the software.
1. Definitions
The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
same meaning here as under U.S. copyright law.
A "contribution" is the original software, or any additions or changes to the software.
A "contributor" is any person that distributes its contribution under this license.
"Licensed patents" are a contributor's patent claims that read directly on its contribution.
@dreammaster38
dreammaster38 / foreach-parallel-progressbar.R
Last active August 29, 2015 14:27 — forked from andrie/foreach-parallel-progressbar.R
Creating progress bars from each parallel worker using foreach and doParallel
library(foreach)
library(iterators)
library(doParallel)
library(tcltk)
# Choose number of iterations
n <- 1000
cl <- makeCluster(8)
@dreammaster38
dreammaster38 / foreach-progressbar.R
Last active August 29, 2015 14:27 — forked from andrie/foreach-progressbar.R
Create a tclktk progressbar to provide feedback when running a parallel job
library(foreach)
library(iterators)
library(doParallel)
library(tcltk)
# Choose number of iterations
n <- 250
# In sequence, without progress bar ---------------------------------------
@dreammaster38
dreammaster38 / Program.cs
Created June 22, 2016 20:56 — forked from jamesmanning/Program.cs
simple TCP client and server
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Program
#-------------------------------------------------------------------------------------
# Create Self signed root certificate
# -dnsname -DnsName domain.example.com,anothersubdomain.example.com
# -Subject "CN=Patti Fuller,OU=UserAccounts,DC=corp,DC=contoso,DC=com"
$cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature `
-Subject "CN=P2SRootCert" `
-KeyExportPolicy Exportable `
-HashAlgorithm sha256 -KeyLength 4096 `
-CertStoreLocation "Cert:\CurrentUser\My" `
-KeyUsageProperty Sign `
@dreammaster38
dreammaster38 / FuzzyMatch.cs
Created October 24, 2019 06:26 — forked from CDillinger/FuzzyMatch.cs
C# Implementation of Fuzzy Match
// LICENSE
//
// This software is dual-licensed to the public domain and under the following
// license: you are granted a perpetual, irrevocable license to copy, modify,
// publish, and distribute this file as you see fit.
using System;
using System.Collections.Generic;
public static class FuzzyMatcher
@dreammaster38
dreammaster38 / k3s-multipass.sh
Created January 29, 2021 07:34 — forked from lucj/k3s-multipass.sh
Setup a k3s kubernetes cluster using Multipass VMs
for node in node1 node2 node3;do
multipass launch -n $node
done
# Init cluster on node1
multipass exec node1 -- bash -c "curl -sfL https://get.k3s.io | sh -"
# Get node1's IP
IP=$(multipass info node1 | grep IPv4 | awk '{print $2}')
@dreammaster38
dreammaster38 / 3-nodes-local-k8s-cluster-k3sup.md
Created January 29, 2021 07:40 — forked from f-bn/3-nodes-local-k8s-cluster-k3sup.md
Deploy a lightweight 3-nodes K8s cluster with K3s and k3sup on your laptop
@dreammaster38
dreammaster38 / export-ble-infos.py
Created July 21, 2021 06:56 — forked from 5shekel/export-ble-infos.py
Export your Windows Bluetooth LE keys into Linux!
#!/usr/bin/python3
"""
Export your Windows Bluetooth LE keys into Linux! (arch edition)
Thanks to: http://console.systems/2014/09/how-to-pair-low-energy-le-bluetooth.html
discussed here: https://unix.stackexchange.com/questions/402488/dual-boot-bluetooth-device-pairing
Usage:
$ ./export-ble-infos.py <args>
$ sudo bash -c 'cp -r ./bluetooth /var/lib'