Skip to content

Instantly share code, notes, and snippets.

View humanfactors's full-sized avatar
🏳️‍⚧️

Micah K. Wilson humanfactors

🏳️‍⚧️
View GitHub Profile
key: 'nvatom'
patterns: [
{
name: 'interlink.link.markup.md'
match: '(?<!\\[)(\\[\\[)([^\\[\\]\|]+)(\\]\\])(?!\\])'
captures:
1: name: 'punctuation.md'
2: name: 'link.markup.md'
3: name: 'punctuation.md'
}
.markdown-preview:not([data-use-github-style]) {
font-family: times new roman;
font-size: 12pt;
ul { color: #2D271F;}
p { color: #2D271F; text-indent: 1.25cm; text-align: justify ;}
h1 { font-size: 1.5em; font-weight: bold; text-align: center}
h2 { font-size: 1.2em; font-weight: bold; }
h3 { font-size: 1.2em; font-style: italic; text-indent: 1cm}
h4 { font-size: 1.2em; font-weight: italic; }
h5 { font-size: 1.2em; font-weight: 600; }
@humanfactors
humanfactors / nvatom-mods.coffee
Created June 29, 2016 01:22
Nvatom modifications
fs = require 'fs-plus'
path = require 'path'
{CompositeDisposable} = require 'atom'
Utility = require './utility'
module.exports =
class Interlink
constructor: ->
Interlink.loadGrammarSync()
@subscriptions = new CompositeDisposable
curl https://debgen.simplylinux.ch/txt/jessie/sources_e9516a94c7af847bcccf2691de9485a785a9b148.txt | sudo tee /etc/apt/sources.list
TYPEOF TASK (57)
{
LABEL="Dot 3a"
TASK_KIND="0"
TYPEOF VARIABLE (53)
{
LABEL="Time1"
TYPE="FLOAT"
VALUE="14.000000" /* This sets the random time between any two given PDTs */
from collections import OrderedDict
import csv
mainlist = []
fn = open('Finland_Day1_Conflict-Names.csv', 'r')
day1 = csv.reader(fn)
for row in day1:
mainlist.append([row[1],row[2]])
fn.close()
Debian/Linux
============
# Display system information with icon
screenfetch
# Show system and kernel information
uname -a
import re
import os
import glob
import legacy_restimeinfo as legacyres
resumptiontimes = legacyres.getrestimes()
finaldict = {
'subjectid' : 'string',
'subjectdata' : {
@humanfactors
humanfactors / skankystretch.sh
Last active April 20, 2018 10:34
Debian 9 Stretch Post-Install Configuration
#!/bin/bash
# Last Update: Wednesday 16th March
# Author: Michael Wilson
# Description: Debian Based Distro Post install script
#~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~
# -------- README --------
# 1. You should probably manually call the commands in here
# 2. If you do wish do execute it you need to chmod +x the file as root
# 3. Ensure you read relevant warning messages from Michael
#!/usr/bin/python3
"""
Not quite a dysfunctinal docstring
"""
doc = '{s:{c}^{n}}'.format(s = "".join([x for i in [h[1] for t in [enumerate(__doc__.split())] for h in t if h[0] == 4] for x in i][:3]), n = 7, c = '_').strip(' ')
result = "".join(x for x in [str(eval(doc))[i] for i in [3+3+8]])+().__iter__().__class__.__name__[8]+[].__class__.__name__[2]
print(result)