Skip to content

Instantly share code, notes, and snippets.

Mauricio Scheffer mausch

Block or report user

Report or block mausch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dbeaver
set -eu
cat << 'EOF' > ~/dbeaver.dockerfile
FROM openjdk:14-slim
RUN apt-get update && apt-get install -y wget libgtk-3-dev
RUN wget${VERSION}/dbeaver-ce-${VERSION}-linux.gtk.x86_64.tar.gz
RUN tar xvzf dbeaver-ce-${VERSION}-linux.gtk.x86_64.tar.gz
RUN rm dbeaver-ce-${VERSION}-linux.gtk.x86_64.tar.gz
View dd-daemonset.json
"kind": "DaemonSet",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "dd-agent",
"namespace": "kube-system",
"selfLink": "/apis/extensions/v1beta1/namespaces/kube-system/daemonsets/dd-agent",
"uid": "32c0241e-5edf-11e6-9c81-028433db5193",
"resourceVersion": "52398371",
"generation": 2,
View boxstarter.ps1
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
cinst -y --ignore-checksums sysinternals irfanview dotnet3.5 dotnet4.0 dotnet4.5 dotnet4.5.1 netfx-4.5.1-devpack dotnet4.5.2 netfx-4.5.2-devpack dotnet4.6 netfx-4.6-devpack dotnet4.6.1 dotnet4.6.2 netfx-4.6.2-devpack windows-sdk-10.0 microsoft-build-tools bitvise-ssh-client googlechrome firefox 7zip fiddler4 sublimetext2 totalcommander visualstudiocode visualstudio2015community visualfsharptools docker
cinst -y nodejs ruby
cinst -y git -NoAutoCrlf
cinst -y tortoisegit
cinst -y Microsoft-Hyper-V -source windowsFeatures
cinst -y IIS-WebServerRole -source windowsfeatures
cinst -y Containers -source windowsfeatures
View conversion-fsharpplus.fs
type First =
{ Name: string
Items: string list }
type Second =
{ Name: string
Numbers: int list }
open FSharpPlus
View pycharm.nix
with import <nixpkgs> {}; {
pycharm = stdenv.mkDerivation rec {
name = "pycharm-community-mau";
version = "2016.2.2";
src = fetchurl {
url =;
sha256 = "6bf50910355f680983246ab51f7a082ae6f34f799db222986c1c59003bf1dbec";
buildInputs = [ jdk makeWrapper ];
installPhase = ''
mausch / 0_reuse_code.js
Created Feb 15, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
mausch / fscheck-sasa-option.cs
Created Jan 19, 2016
Arbitrary<T> -> Arbitrary<Option<T>>
View fscheck-sasa-option.cs
static Gen<Option<T>> OptionOf<T>(Gen<T> gen) =>
gen.Select(x => x.ToOption()),
static Arbitrary<Option<T>> OptionOf<T>(Arbitrary<T> arb) =>
Arb.From(OptionOf(arb.Generator), o => o.Switch(v => arb.Shrinker(v).Select(x => x.ToOption()).Concat(new[] { Option<T>.None }), Enumerable.Empty<Option<T>>));
mausch /
Created Nov 24, 2015
Convert a pypi package into a conda package and upload it to
set -e
set -u
cat << 'EOF' >
set -x
apt-get install -y patch
conda install -y conda-build anaconda-client
conda skeleton pypi $PIP_PACKAGE
conda build -c $ANACONDA_CHANNEL --python 3.4 $PIP_PACKAGE
View gist:758f1bc7a6d6877229a2
using System;
static class L {
public static Func<T> F<T>(Func<T> f) { return f; }
// add overloads for other arities
class Program {
static void Main(string[] args) {
int i = L.F(() => 0)();
View gist:3d10f6b265adee48c4b5
using System;
using System.Linq;
class Program
static void Main(string[] args)
var source = new int[0];
// throws InvalidOperationException, not documented in . Should not even compile as AStruct doesn't implement IComparable.
You can’t perform that action at this time.