Skip to content

Instantly share code, notes, and snippets.

@danieltharp
danieltharp / DangItBobby.ps1
Created April 6, 2016 22:14
PowerShell script to find where a user is logged into on the network and disable their NIC.
# ********************************************************************************
#
# Script Name: DangItBobby.ps1
# Version: 1.0.0
# Author: bluesoul <https://bluesoul.me>
# Date: 2016-04-06
# Applies to: Domain Environments
#
# Description: This script searches for a specific, logged on user on all or
# specific Computers by checking the process "explorer.exe" and its owner. It
@mbostock
mbostock / .block
Last active May 13, 2016 20:13
N-Body Problem
license: gpl-3.0
@maxkfranz
maxkfranz / index.html
Last active March 29, 2021 09:58
cytoscape-dagre demo
<!DOCTYPE>
<html>
<head>
<title>cytoscape-dagre.js demo</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
@ScriptAutomate
ScriptAutomate / WindowsContainers-Demo.ps1
Last active October 16, 2015 03:46
Demo code used in Twin Cities PowerShell Automation presentation
# What I followed to do containers (Microsoft's Quickstart Guide):
# https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quickstart
break
# Run on Server Core 2016 TP3
Start-Process PowerShell -Verb runAs
mkdir c:\scripts
wget -uri http://aka.ms/setupcontainers -OutFile c:\scripts\containersetup.ps1
c:\scripts\containersetup.ps1 #This script took ~50 minutes, but downloads/installs Docker too
@maxkfranz
maxkfranz / code.js
Last active July 5, 2016 14:23
Compound nodes
$(function(){ // on dom ready
var cy = cytoscape({
container: document.getElementById('cy'),
boxSelectionEnabled: false,
autounselectify: true,
style: [
{
@RickCarlino
RickCarlino / gforth_cheat_sheet.md
Last active November 16, 2023 21:05
gforth cheat sheet

Math

  • .s - Show the stack
  • +, -, *, mod - Math operators
  • /mod - performs both / and mod

Stack manipulation

  • drop and 2drop - drop a stack item (once / twice)
  • dup - duplicate a stack item
  • rot - rotate the stack
@cpbotha
cpbotha / README.md
Last active May 13, 2020 12:23
Simple example of reusable d3 plugin.

This as-simple-as-possible example tries to demonstrate Mike Bostock's pattern "Towards Reusable Charts" http://bost.ocks.org/mike/chart/ for d3 plugins that are composite shapes.

@mbostock
mbostock / .block
Last active November 22, 2022 23:32
Line Transition
license: gpl-3.0