Skip to content

Instantly share code, notes, and snippets.

View jermdw's full-sized avatar
😺

jermdw jermdw

😺
View GitHub Profile
@jermdw
jermdw / Create-Administrator.ps1
Created June 13, 2017 15:30 — forked from ducas/Create-Administrator.ps1
Create a local administrator account using PowerShell
$Username = "su"
$Password = "password"
$group = "Administrators"
$adsi = [ADSI]"WinNT://$env:COMPUTERNAME"
$existing = $adsi.Children | where {$_.SchemaClassName -eq 'user' -and $_.Name -eq $Username }
if ($existing -eq $null) {
@jermdw
jermdw / 0_reuse_code.js
Created February 26, 2017 05:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jermdw
jermdw / -
Created February 4, 2017 01:33 — forked from anonymous/-
System: Host: honeybadger-XPS-13-9360 Kernel: 4.8.0-34-generic x86_64 (64 bit gcc: 6.2.0)
Desktop: Cinnamon 3.2.8 (Gtk 3.20.9) dm: lightdm Distro: Ubuntu 16.10
Machine: System: Dell (portable) product: XPS 13 9360 Chassis: type: 9
Mobo: Dell model: 0839Y6 v: A00 UEFI [Legacy]: Dell v: 1.0.7 date: 09/13/2016
Battery BAT0: charge: 78.9 Wh 104.2% condition: 75.7/78.9 Wh (96%) volts: 8.5/7.6
model: SMP DELL TP1GT61 serial: 2776 status: Full
CPU: Dual core Intel Core i7-7500U (-HT-MCP-) cache: 4096 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 11600
clock speeds: min/max: 400/3500 MHz 1: 1983 MHz 2: 1216 MHz 3: 2579 MHz 4: 823 MHz
Graphics: Card: Intel Device 5916 bus-ID: 00:02.0 chip-ID: 8086:5916