Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Sean McNamara allquixotic

🎯
Focusing
  • GDIT
  • Maryland, USA
View GitHub Profile
@allquixotic
allquixotic / test.md
Last active Dec 1, 2021
UDP network test
View test.md

Tested with BSD NetCat, not nmap project's NCat!

CLIENT

IP=CHANGEME ; for ((i=1; i<=600;i++)); do echo "$i: Received at $(date '+%s')." | netcat -4unNw1 ${IP} 15384; done

SERVER

Ubuntu 20.04.3

echo "$(dig +short myip.opendns.com @resolver1.opendns.com)"; netcat -vulknp 15384

View secure-erase.sh
#!/bin/bash
################################################################################
# secure-erase.sh
# Copyright 2018 bwDraco - Brian Wong
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@StefanWallin
StefanWallin / README.md
Last active Jan 15, 2022 — forked from konklone/ssl.rules
nginx ssl config with multiple SNI vhosts and A+ SSL Labs score as of 2014-11-05
View README.md

Configuring nginx for SSL SNI vhosts

Gotchas

Remarks

  • My version of konklones SSL config does not have SPDY support(my nginx+openssl does not support it)
  • You need a default ssl server (example.org-default.conf).
  • Some SSL-options have to be unique across your instance, so it's easier to have them in a common file(ssl.conf).
@dz0ny
dz0ny / mopidy.liq
Last active Dec 11, 2019
Gapless streaming for mopidy
View mopidy.liq
#!/usr/bin/liquidsoap
set("log.file.path", "/dev/null")
set("log.stdout", true)
set("server.telnet", false)
set("harbor.bind_addr","0.0.0.0")
# tweak these values if you have lag, skipping, buffer underrun etc
# set("frame.duration",0.04)
# set("root.max_latency",60.)
View gist:7437587

So, we figured creating our own chatroom could be fun.

It's something we can all work together on.

We don't plan on moving there but the project itself could be interesting for the whole room to collaborate work on.

What we need to discuss now:

  • What technologies we want to use (Node/Express seems natural for serverside. What about clientside?)
  • What features to we want? Do we just want to start with a clone of the SO chat?
View gist:6194351
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
@unclebob
unclebob / apology.
Created Apr 27, 2012
Apology to Women Programmers.
View apology.
Today I gave a keynote at ACCU in Oxford. In the midst of it I made two (count them) two statements that I should have known better than to make. I was describing the late '70s, and the way we felt about the C language at the time. My slide said something like: "C was for real men." Emily Bache, whom I know and hold in high regard, spoke up and said "What about women?". And I said something like: "We didn't allow women in those days." It was a dumb crack, and should either not have been said, or should have been followed up with a statement to the effect that that was wrong headed.
The second mistake I made was while describing Cobol. I mentioned Adm. Grace Hopper. I said something like "May she rest in peace." I don't know that any of the words were actually demeaning, but the tone was not as respectful as it should have been to an Admiral in the United State Navy, and one who was so instrumental in our industry; despite what I feel about Cobol.
I am a 59 year old programmer who was brought up