Skip to content

Instantly share code, notes, and snippets.

View cratermoon's full-sized avatar

Steven E. Newton cratermoon

View GitHub Profile
@cratermoon
cratermoon / githubcurl.c
Created January 29, 2024 20:26
creating a curl program using curl and --libcurl
/********* Sample code generated by the curl command line tool **********
* All curl_easy_setopt() options are documented at:
* https://curl.se/libcurl/c/curl_easy_setopt.html
* curl -s --libcurl github.c https://github.com
************************************************************************/
#include <curl/curl.h>
int main(int argc, char *argv[])
{
CURLcode ret;
Word Occurences
zettelkasten 41
sublime 32
focus 28
things 22
ebooks 22
life 19
like 18
good 17
zero 15
@cratermoon
cratermoon / techvmgt.md
Created January 2, 2019 05:51
Tech or management path
  • If I subsequently regret making the move to management, what is my way back to a hands-on technical role?
  • Don't layoffs hit middle management first?
  • Why not Rachel or Marya?
  • What support for new managers is there and who supports me?
  • Who is my manager?
  • How big is my team? Do I get any say who is on it?
  • Is there an intermediate step? Offically recognized mentor and leader that isn't straight up management?
  • What happens when I have to fire someone? Who do I work with in HR for personnel issues?
@cratermoon
cratermoon / gist:393448fa912a73a71464c6f073888c7c
Created September 17, 2016 03:08
create 1000 files match Screenhive file
const fs = require('fs');
for (i = 0; i < 1000; i++) {
var appid = Math.floor(Math.random() * (531480 - 5)) + 5;
var ds = (new Date()).toISOString().replace(/[^0-9]/g, "")
var filename = appid + "_" + ds + "_1.png";
fs.open(filename, "w", (err, fd) => {
fs.close(fd, console.log);
}
);