Skip to content

Instantly share code, notes, and snippets.

@geoder101
geoder101 / TaskLinqExtensions.cs
Last active February 6, 2018 06:46
TPL C# extension methods
namespace Extensions
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
/// <summary>
/// LINQ extension methods for the TPL-'Task' monad.
/// </summary>
/// <remarks>
@geoder101
geoder101 / template1.sql
Created October 30, 2014 08:12
t-sql transaction commit/rollback template
BEGIN TRY
BEGIN TRANSACTION
-- insert sql here
COMMIT
END TRY
BEGIN CATCH
IF @@TRANCOUNT > 0 ROLLBACK
END CATCH
@geoder101
geoder101 / keybase.md
Created April 2, 2015 08:02
Keybase Identity Proof

Keybase proof

I hereby claim:

  • I am geoder101 on github.
  • I am geoder101 (https://keybase.io/geoder101) on keybase.
  • I have a public key whose fingerprint is E24B 769A 7418 BD5F AE71 2BD3 7EB9 C307 2DA1 82BC

To claim this, I am signing this object:

@geoder101
geoder101 / dos2unix.sh
Created March 18, 2016 21:29
CRLF -> LF
perl -p -i -e "s/\r//g" <filename>
@geoder101
geoder101 / .gitignore
Last active September 2, 2021 13:00
gitignore for F# projects
# Originally created by https://www.gitignore.io/api/windows,linux,visualstudio,visualstudiocode,osx,xamarinstudio,f#,monodevelop,vim,emacs,node,bower on 2016-03-19
# Last updated: 2016-03-20
### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
@geoder101
geoder101 / UnixSignalFSharp.fs
Created March 20, 2016 09:13
UnixSignalFSharp
(*
The MIT License (MIT)
Copyright (c) 2016 George Dernikos
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@geoder101
geoder101 / usbdevinfo.sh
Created July 17, 2016 13:58
MacOSX USB Dev Info
#!/usr/bin/env bash
system_profiler SPUSBDataType
@geoder101
geoder101 / .bashrc
Last active December 13, 2016 09:37
bashrc :: docker-machine start, env & eval
DOCKER_MACHINE_ID=default
if [ ! -f /tmp/docker.env ]; then
docker-machine start $DOCKER_MACHINE_ID &> /dev/null
docker-machine env $DOCKER_MACHINE_ID 1> /tmp/docker.env
fi
if [ -f /tmp/docker.env ]; then
source /tmp/docker.env
fi
@geoder101
geoder101 / lyrics.txt
Last active June 21, 2022 18:29
Sony Anderson | Μην το σκεφτεις (Official Video Clip) | lyrics
https://www.youtube.com/watch?v=LelpAUwVxMk
Α, Α, OK, λού
εκεί που είναι η ζωή μη το σκεφτείς οι αγγαλίοι
πίνουμε αργιλέ εδώ στο σπίτι και τρώμε καλαμπόκι σαν το σκουρίκι
τα πεταλούδα είναι ωραία και μη το σκεφτείς ία παρέα
87 εκεί που είναι για τρελά ε είναι το όλοι μαζί εδώ παιδεία
εδώ είναι ο Σον αφήστε τα όπλα γιατί εγκώ θα πι-άσω την παντόφλα
εκεί που μάθαμε στα σχολεία θέλω να κάνω απεργία
και βγαίνω με παπούτσα ντόλτσε καμπάνα
@geoder101
geoder101 / stress-test.sh
Created June 14, 2017 17:13 — forked from cirocosta/stress-test.sh
naive http server stress tester using cURL
#!/bin/bash
#### Default Configuration
CONCURRENCY=4
REQUESTS=100
ADDRESS="http://localhost:8080/"
show_help() {
cat << EOF