Skip to content

Instantly share code, notes, and snippets.

View mcnemesis's full-sized avatar
💭
DNAP hackathons on days with good weather ;-)

Nemesis Fixx Da JWL mcnemesis

💭
DNAP hackathons on days with good weather ;-)
View GitHub Profile
# CONSIDER THIS AN EXAMPLE ... replace variables with own vals
az account set -s <SUBSCRIPTION_ID>
az vm deallocate --resource-group TWEBBUILDER --name TWEBBUILDERVM
az vm list -g TWEBBUILDER --query '[].{Name:name,DiskName:storageProfile.osDisk.name}' --output table
az disk create -g TWEBBUILDER_GALL --name TWEBBUILDER_GALL_disk --source /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/TWEBBUILDER/providers/Microsoft.Compute/snapshots/TWBSnap
az disk list -g TWEBBUILDER_GALL --output table
az network vnet create -g TWEBBUILDER_GALL --location westeurope --name TWBGALLVNet --address-prefix 192.168.0.0/16 --subnet-name TWBGALLSubNet --subnet-prefix 192.168.1.0/24
az network public-ip create -g TWEBBUILDER_GALL --location westeurope --name TWBGALLIP --dns-name twbgallery --allocation-method static --idle-timeout 4
az network nic create -g TWEBBUILDER_GALL --location westeurope --name TWBGallNic --vnet-name TWBGALLVNet --subnet TWBGALLSubNet --public-ip-address TWBGALLIP
az vm create -g TWEBBUILDER_GALL --name TW
@mcnemesis
mcnemesis / uganda_districts.txt
Created June 4, 2014 07:23
List of all current (as of 2014) Uganda's Districts - useful in forms-authoring and other tasks of your liking (source : http://www.statoids.com/uug.html)
Abim
Adjumani
Agago
Alebtong
Amolatar
Amudat
Amuria
Amuru
Apac
Arua
@mcnemesis
mcnemesis / RESTAPI.cs
Created August 16, 2013 15:42
1-File Robust RESTful API internal layer for Windows Phone 8
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;
namespace RESTAPI
{
/// <summary>
/// Encapsulates functionality to make it possible to make
@mcnemesis
mcnemesis / umap_sparse.py
Created August 22, 2018 16:50 — forked from johnhw/umap_sparse.py
1 million prime UMAP layout
### JHW 2018
import numpy as np
import umap
# This code from the excellent module at:
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module
import random
@mcnemesis
mcnemesis / index.html
Created December 14, 2017 18:04
NGOMA
<!-- msg template -->
<script type="text/template" id="msg_template">
<li class="content">
<p class="img" style='background-image: url("<%= img %>")'> </p>
<p class="msg"><%= msg %></p>
</li>
</script>
<!-- main html -->
<a href="https://github.com/uriuriuriu/beat.js" target="_blank"><h1 id="title">NuChwezi Chan</h1></a>
@mcnemesis
mcnemesis / index.pug
Created December 7, 2017 10:41
Only CSS: Truck a GO, GO!
p.nu-title Nu Chwezi KIDS
#truck
.body
.shadow
.cockpit
.front
.back
.left
.right
@mcnemesis
mcnemesis / index.html
Last active November 20, 2017 22:57
Ministry of ICT - Uganda Neddagala Ly'ayo
<section id="app">
<div class="container-fluid">
<div class="row">
<div class="container banner">
<h1 class="neon small">{{ title }}</h1>
</div>
</div>
<div class="row">
@mcnemesis
mcnemesis / flow-data-stream-ui-concept-1.markdown
Created November 14, 2017 12:04
FLOW (Data Stream UI - Concept#1)

FLOW (Data Stream UI - Concept#1)

A technique to create an infinitely scrolling background (evolves into the World's most loved technology, one bit at a time).

My name is AK1N NEMESIS FIXX, of the Nu Chwezi Hackers, and I am the creator of Flow. Ask me anything, or, welcome, let's hack for the advancement of mankind!

A Pen by Nemesis Fixx on CodePen.

License.

@mcnemesis
mcnemesis / history_viz.sh
Created December 28, 2012 18:55
A Bash One-liner to visualize one's command-usage based on frequencies in one's Bash History.
history | awk '{ print $2}' | sort | uniq -c | sort -n | tail -n 30 | sed -n '{s/^[ \t]*//};p' | gnuplot -p -e 'set xtics rotate out;set style data histogram;set style fill solid 1.0 border -1;plot "-" u 1:xtic(2) notitle'