Skip to content

Instantly share code, notes, and snippets.

View martinbjeldbak's full-sized avatar

Martin Bjeldbak Madsen martinbjeldbak

View GitHub Profile
@martinbjeldbak
martinbjeldbak / reclaimWindows10.ps1
Created January 21, 2017 05:08 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
#!/bin/python3
import sys
input_file = sys.argv[1]
with open('output.dot', 'w') as outfile:
outfile.write('digraph G {\n')
with open(input_file, 'r') as f:

Keybase proof

I hereby claim:

  • I am martinbjeldbak on github.
  • I am martinb (https://keybase.io/martinb) on keybase.
  • I have a public key whose fingerprint is 6A5E A704 EDF5 7C46 6F85 0189 3D54 FD7F 2B8C D9E1

To claim this, I am signing this object:

@martinbjeldbak
martinbjeldbak / znc.conf
Last active August 29, 2015 14:18
My ZNC 1.6.0 (an IRC bouncer) config file
// WARNING
//
// Do NOT edit this file while ZNC is running!
// Use webadmin or *controlpanel instead.
//
// Altering this file by hand will forfeit all support.
//
// But if you feel risky, you might want to read help on /znc saveconfig and /znc rehash.
// Also check http://en.znc.in/wiki/Configuration
@martinbjeldbak
martinbjeldbak / Hw3.lhs
Last active August 29, 2015 14:16
UCSD CSE 230 Winter 2014 HW3
---
Homework #3, Due Monday, March 2nd 2015 (23:59:59 PST)
---
Preliminaries
=============
Before starting this part of the assignment,
1. Install the following packages
@martinbjeldbak
martinbjeldbak / Hw2.lhs
Last active August 29, 2015 14:15
CSE 230 Winter 2015 HW2
---
title: Homework #2, Due Friday 2/13/15
---
> {-# LANGUAGE TypeSynonymInstances #-}
> {-# OPTIONS -Wall -fno-warn-unused-do-bind #-}
> module Hw2 where
> import Control.Applicative hiding (empty, (<|>))
> import Data.Map hiding (foldl, foldr)
@martinbjeldbak
martinbjeldbak / coinswap.rb
Last active August 29, 2015 14:02
Memoized dynamic programming solution for the coin exchange problem (16-1) in CLRS Introduction to Algorithms, Chapter 16
Val = rand(2..1000)
Denoms = [1]
100.times{ Denoms << rand(2..1000) }
Denoms.sort!
def coinswap_aux(m, i)
r = Array.new(m + 1) { Array.new(i) }
sols = Array.new(m + 1) { Array.new(i) }
@martinbjeldbak
martinbjeldbak / wekaTSF.java
Created November 28, 2013 21:26
Weka time series forecasting with pentaho's plugin and their Java API. Here's a full working example to get datetimes along with the forecasted data.
package dk.martinbmadsen.wekaTimeSeriesExample;
import java.io.*;
import java.util.List;
import org.joda.time.DateTime;
import weka.core.Instances;
import weka.classifiers.functions.GaussianProcesses;
import weka.classifiers.evaluation.NumericPrediction;