Skip to content

Instantly share code, notes, and snippets.

View narthollis's full-sized avatar

Nicholas Steicke narthollis

View GitHub Profile

Keybase proof

I hereby claim:

  • I am narthollis on github.
  • I am narthollis (https://keybase.io/narthollis) on keybase.
  • I have a public key whose fingerprint is 4289 00CC 964A 534A 7D15 FD80 F715 5F86 C718 9A76

To claim this, I am signing this object:

extern crate exitcode;
extern crate ctrlc;
extern crate chrono;
use std::io;
use std::net::{TcpListener, SocketAddr, TcpStream};
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use std::io::{Read, Write};
use core::borrow::Borrow;
export class GraphNode<T> {
private readonly $item: T;
private readonly $children: GraphNode<T>[] = [];
private readonly $parents: GraphNode<T>[] = [];
public constructor(item: T) {
this.$item = item;
}

React + Redux Application Performance Investigation

Our application was having issues when rendering a list with approximately 150 items. Each item in the list is rendered into a number of columns determined by configuration. The columns range from being a glorified print string, to reasonably complex selection logic and time since presentations.

The performance issues mainly presented themselves when the application would poll for data - which in this case would result in retrieving the full data set for all views in the application. In future we hope to move to a diff based poll or eventing but have not yet had time to implement the backend.

#!/bin/bash
INDEX_URL="http://emotes.gbs.io/"
ZIP_URL="https://s3.amazonaws.com/emotes.gbs.io/pidgin.zip"
ZIP_OUT="pidgin.zip"
ERROR_UNSPECIFIED=1
ERROR_NO_ETAG=2
ERROR_DOWNLOAD_FAIL=3
ERROR_UNZIP_FAIL=4
@narthollis
narthollis / gist:ca363a8854f54bebfd59
Created August 2, 2014 12:04
EVEthing Dynamic Homepage - Debugging per-character suppression
for (var i in EVEthing.home.CHARACTERS) {
if(!EVEthing.home.CHARACTERS.hasOwnProperty(i)) { continue; }
console.log(
JSON.stringify([
EVEthing.home.CHARACTERS[i]['character']['name'],
{
'Suppress Skill Queue':
EVEthing.home.CHARACTERS[i]['character']['config']['home_suppress_empty_skill_queue']
#!/bin/bash
# In case for whatever reason the paths change...
IPTABLES=/sbin/iptables
IP6TABLES=/sbin/ip6tables
# RULE CREATION ORDER
# ALL rules are added as created here
# V4 rules are added as created here
# V6 rules are added as created here
@narthollis
narthollis / pyfa-setup.iss
Created November 20, 2013 08:00
Inno Setup Script for pyfa
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "pyfa"
#define MyAppVersion "1.1.17 (Rubicon 1.0)"
#define MyAppPublisher "pyfa"
#define MyAppURL "https://forums.eveonline.com/default.aspx?g=posts&t=247609&p=1"
#define MyAppExeName "pyfa.exe"
[Setup]
@narthollis
narthollis / EVE_Shoping_List.py
Last active December 23, 2015 17:19
This is a quick script to that will consolidate EVE shopping lists (by item) and fetch prices in from EVE Central. It defaults to "The Forge" chang the REGION variable to match the region you wish to query.
#!/usr/bin/env python3
import sys, json, http.client, xml.etree.ElementTree
REGION = 10000002;
skills = json.load(open('skills.json'))
name_to_skill = {}
@narthollis
narthollis / Process.md
Last active October 20, 2022 05:37
Ubuntu/Linux Active Directory Kerberos Authentication

#Software#

  • acl
  • attr
  • samba
  • krb5-config
  • krb5-user
  • ldap-utils
  • nscd
  • nslcd
  • ntp