Skip to content

Instantly share code, notes, and snippets.

View galenguyer's full-sized avatar

Galen Guyer galenguyer

View GitHub Profile
mxmeinhold /
Last active July 19, 2023 17:40
Useful git snippets and links
* ------------------------------------------------------------
* <author> wrote this code. As long as you retain this
* notice, you can do whatever you want with this stuff. If we
* meet someday, and you think this stuff is worth it, you can
* buy me a Monster Energy® energy drink in return.
* ------------------------------------------------------------
marcan / smbloris.c
Last active November 22, 2022 08:32
SMBLoris attack proof of concept
/* SMBLoris attack proof-of-concept
* Copyright 2017 Hector Martin "marcan" <>
* Licensed under the terms of the 2-clause BSD license.
* This is a proof of concept of a publicly disclosed vulnerability.
* Please do not go around randomly DoSing people with it.
* Tips: do not use your local IP as source, or if you do, use iptables to block

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.

Effective Engineer - Notes

What's an Effective Engineer?

whoshuu / curlget.cpp
Created March 31, 2015 06:44
Example libcurl GET request
#include <curl/curl.h>
#include <string>
size_t writeFunction(void *ptr, size_t size, size_t nmemb, std::string* data) {
data->append((char*) ptr, size * nmemb);
return size * nmemb;
int main(int argc, char** argv) {
auto curl = curl_easy_init();
mandiwise / Count lines in Git repo
Last active July 4, 2024 16:56
A command to calculate lines of code in all tracked files in a Git repo
// Reference:
$ git ls-files | xargs wc -l
prakhar1989 /
Last active November 8, 2023 17:19 — forked from stijlist/gist:bb932fb93e22fe6260b2

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

soarez /
Last active July 15, 2024 09:31
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.