$ vboxmanage storageattach d2c7e68e-fc6d-4ae1-b601-61ab2a4b7c0b --storagectl "SATA" --port 1 --medium none
This file contains hidden or 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
function stfu { | |
if [[ ${BASH_VERSINFO} -lt 4 ]]; then | |
echo "[ERROR] You're running Bash v${BASH_VERSINFO}?? Grow some balls and upgrade to v4" 1>&2 | |
return 1 | |
fi | |
declare -A font | |
font['rst']=$(echo -en "\e[0m") | |
font['bld']=$(echo -en "\e[1m") |
This file contains hidden or 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
# Assoc array associating a mime type to the appropriate file extension | |
# source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types | |
# | |
# JS To gather data from source: | |
# $('table.standard-table > tbody > tr').each(function(a,b){ | |
# console.log('mime2ext["%s"]="%s"', | |
# $(b).find("td:eq(2) > code").text(), | |
# $(b).find("td:eq(0) > code").text().replace(/^\./, '')) | |
# }) |
This file contains hidden or 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
# Assoc array associating a file extension type to the appropriate mime type | |
# source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types | |
# | |
# JS To gather data from source: | |
# $('table.standard-table > tbody > tr').each(function(a,b){ | |
# console.log('ext2mime["%s"]="%s"', | |
# $(b).find("td:eq(0) > code").text().replace(/^\./, ''), | |
# $(b).find("td:eq(2) > code").text()) | |
# }) |
This file contains hidden or 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
(3)[Tue May 22 05:21:28| 0:006]{1}root@localhost:/var/log(✓)# | |
| | | | | | | | | | | |
| | | | | | | | | \ Account type indicator | |
| | | | | | | | | | |
| | | | | | | | \ Last return code | |
| | | | | | | | | |
| | | | | | | \ Current working directory | |
| | | | | | | | |
| | | | | | \ Local hostname | |
| | | | | | |
This file contains hidden or 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 | |
# Create /etc/profile.d/prompt.sh and add the content of this gist to it. | |
# | |
# Prompt example: | |
# (2)[Fri May 06 10:00:30| 0:003]{4}root@ip-172-31-1-226:~(0)# | |
# Format is: | |
# (sessions on server)[date time| Last command exec time]{sessions on server}username@hostname:working_directory(exit code of last cmd)# | |
# | |
# Example Output (of $[prompt[0]}): http://d.pr/i/19B87 | |
# |
$ 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
This file contains hidden or 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
#!c:/perl/bin | |
######################################################################################################################################################## | |
# MMFTool.pl | |
# Created: 7/12/2010 | |
# Justin Hyland [email protected] | |
# ###################################################################################################################################################### | |
# 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 |
This file contains hidden or 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
////////////////////////////////////////////// | |
// 2.8" TOUCH SCREEN TIC TAC TOE // | |
// // | |
// http://www.educ8s.tv // | |
///////////////////////////////////////////// | |
#include <Adafruit_TFTLCD.h> | |
#include <Adafruit_GFX.h> | |
#include <TouchScreen.h> |
This file contains hidden or 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
$ 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 |