Skip to content

Instantly share code, notes, and snippets.

View jhyland87's full-sized avatar

J jhyland87

  • 48°52.6′S 123°23.6′W
View GitHub Profile
@jhyland87
jhyland87 / VirtualBox-Miscellaneous_Commands.md
Last active May 22, 2018 21:47
[VirtualBox] Miscellaneous Commands

Miscellaneous VboxManage Commands


Delete Storage Medium

1. Detach it from the storage controller

$ vboxmanage storageattach d2c7e68e-fc6d-4ae1-b601-61ab2a4b7c0b --storagectl "SATA" --port 1 --medium none

2. Delete the storage medium

@jhyland87
jhyland87 / VirtualBox-Create-Mount_VHD.md
Last active May 22, 2018 21:47
[VirtualBox] Create and mount a VHD to an existing VM

Create & Mount a HDD in VirtualBox

1. Create VHD in VirtualBox

$ vboxmanage createmedium disk --filename New-Drive.vhd --size 8192 --format VHD --variant Standard
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: c6a6475c-a78e-4843-99f8-c5cd8891c302

$ vboxmanage list hdds
#!c:/perl/bin
########################################################################################################################################################
# MMFTool.pl
# Created: 7/12/2010
# Justin Hyland jhyland@crystaltech.com
# ######################################################################################################################################################
# DESCRIPTION: Provides WMI access to windows dedicated and virtual dedicated servers, ability to start tasts, stop, start, restart services, gather
# CPU/MEM info, reboot RDP & Psexec
# ######################################################################################################################################################
# NOTES: PerlIO needs to be manually compacted into MMFTool, so run command: pp -o mmftool.exe mmftool.pl -M PerlIO
//////////////////////////////////////////////
// 2.8" TOUCH SCREEN TIC TAC TOE //
// //
// http://www.educ8s.tv //
/////////////////////////////////////////////
#include <Adafruit_TFTLCD.h>
#include <Adafruit_GFX.h>
#include <TouchScreen.h>
$ dnsmap google.com
dnsmap 0.30 - DNS Network Mapper by pagvac (gnucitizen.org)
[+] searching (sub)domains for google.com using built-in wordlist
[+] using maximum random delay of 10 millisecond(s) between requests
accounts.google.com
IPv6 address #1: 2607:f8b0:4000:816::200d
accounts.google.com
( 21)[Fri Apr 06 09:20:06| 1:000]{47}jhyland@MacBook-Pro:~/Documents/scripts/typescript/test(✓)$ cat oop.1.ts
'use strict'
class Greeter {
greeting: string;
constructor(message: string) {
this.greeting = message;
}
greet() {
return "Hello, " + this.greeting;
function stfups {
declare -A bundles
bundles[outlook]="com.microsoft.Outlook"
bundles[chrome]="com.google.Chrome"
bundles[vnc]="com.realvnc.vncviewer"
if [[ -z $1 ]]; then
echo "Need to specify a bundle - One of: ${!bundles[@]}"
return 1
@jhyland87
jhyland87 / taskinfo_and_lsappinfo.txt
Created March 12, 2018 21:27
Using the taskinfo command to get info on Chrome, and using lsappinfo to get Chromes PID.
$ sudo taskinfo $(lsappinfo info com.google.Chrome -only pid | cut -d'=' -f2)
process: "Google Chrome" [96843]
coalition (type 0) ID: 344
coalition (type 1) ID: 0
suspend count: 0
virtual bytes: 4.07 GB; resident bytes: 543.17 MB
run time: 349997 s
user/system time (current threads): 3415.911501 s / 806.561131 s
user/system time (terminated threads): 459.655692 s / 117.408499 s
interrupt wakeups: 2115973 (737016 / 34.83% from platform idle)
$ compgen -A command | sort -u | grep -Ev '^(x86_64|_|ec2|as-|mysql|sql|db|mongo|nfs|tcp|git|svn|mon-|airspy|check_)' | grep --color=always -iE '(proc|win|info|stat|web)'
FileStatsAgent
GetFileInfo
NetBootClientStatus
addftinfo
afinfo
argus-vmstat
capinfos
captoinfo
coproc
@jhyland87
jhyland87 / lsappinfo.txt
Created March 8, 2018 21:03
showing all populated values of google via lsappinfo
$ lsappinfo info com.google.Chrome -only allowedtobecomefrontmost,applicationTypeToRestore,applicationWasTerminatedByTAL,applicationtype,arch,asn,bundleid,bundlelastcomponent,bundlename,bundlenamelc,bundlepath,changecount,creator,debuglevel,displayname,execpath,executablepath,filecreator,filename,filetype,hidden,isconnectedtowindowserver,isready,isregistered,isstopped,isthrottled,launchedForPersistence,launchedinquarantine,name,parentasn,pid,presentationmode,presentationoptions,psn,recordingAppleEvents,session,shellpath,supressRelaunch,version,kCFBundleNameKey,kLSASNKey,kLSASNToBringForwardAtNextApplicationExitKey,kLSAllowedToBecomeFrontmostKey,kLSApplicationBackgroundOnlyTypeKey,kLSApplicationBackgroundPriorityKey,kLSApplicationCountKey,kLSApplicationDesiresAttentionKey,,kLSApplicationForegroundPriorityKey,kLSApplicationForegroundTypeKey,kLSApplicationHasRegisteredKey,kLSApplicationHasSignalledItIsReadyKey,kLSApplicationInStoppedStateKey,kLSApplicationInThrottledStateAfterLaunchKey,kLSApplicationInformationS