This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tasks: 737 total, 1 running, 727 sleeping, 0 stopped, 2 zombie | |
Mem: 3868764k total, 3380368k used, 488396k free, 143428k buffers | |
Swap: 1450780k total, 876928k used, 573852k free, 640464k cached | |
400%cpu 7%user 1%nice 16%sys 370%idle 0%iow 1%irq 4%sirq 0%host | |
PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS | |
773 shell 20 0 12M 2.8M 1.5M R 7.6 0.0 0:07.98 top | |
5051 radio 20 0 2.1G 11M 8.2M S 2.0 0.2 0:00.53 com.lge.ipservice | |
4575 u0_a148 20 0 2.1G 130M 55M S 2.0 3.4 333:05.11 com.android.systemui | |
3741 system 18 -2 2.6G 172M 69M S 2.0 4.5 933:21.24 system_server | |
660 system -2 -8 205M 10M 6.1M S 1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# find all supermicro Java iKVM Viewer windows and resize | |
# them to display all the content | |
# | |
# for reasons that are beyond sanity, this shitty closed source program | |
# sets the min and max window sizes to the same values, making it unresizable | |
# through dragging. | |
# this wouldn't be so bad if it actually resized the window to display all | |
# the content. it constantly resizes based on the resolution of the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import csv | |
import sys | |
from pprint import pprint | |
csvreader = csv.reader(sys.stdin) | |
# Read the header line and extract the column names | |
header = csvreader.next() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# Proof of concept by Michael Brown (@supermathie) | |
require 'colorize' | |
require 'json' | |
require 'net/http' | |
REALM = ENV.fetch('POE_REALM', 'pc') | |
LEAGUE = ENV.fetch('POE_LEAGUE', 'Harvest') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenSSL::HMAC.hexdigest('SHA1', '8544E3B47ECA58F9583043F8'.scan(/../).map(&:hex).pack('c*'), '3CECEF000000'.upcase.scan(/../).map(&:hex).pack('c*'))[0..23].upcase.scan(/..../).join('-') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import hmac | |
import hashlib | |
import optparse | |
import sys | |
parser = optparse.OptionParser( | |
"usage: %prog -p PIN -a 'APP VERSION' -u UPTIME [-d DURATION]") | |
parser.add_option('-p', '--pin', help='Device PIN', dest='pin') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ virsh console ad1 | |
Connected to domain ad1 | |
Escape character is ^] | |
SAC>? | |
ch Channel management commands. Use ch -? for more help. | |
cmd Create a Command Prompt channel. | |
d Dump the current kernel log. | |
f Toggle detailed or abbreviated tlist info. | |
? or help Display this list. |
OlderNewer