-
Stop the virtual machine using Vagrant.
# cd vg # vagrant halt
-
Locate the VirtuaBox VM and the HDD attached to its SATA Controller.
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
{ | |
"name": "libra mini", | |
"vendorProductId": 1280134179, | |
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | |
"layers": [ | |
[ | |
"LT(3,KC_TAB)", | |
"KC_Q", | |
"KC_W", | |
"KC_E", |
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
SET UUID={0cb3b571-2f2e-4343-a879-d86a476d7215} | |
mountvol X: /s | |
bcdedit /delete %UUID% | |
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y | |
bcdedit /create %UUID% /d "DebugTool" /application osloader | |
bcdedit /set %UUID% path "\EFI\Microsoft\Boot\SecConfig.efi" | |
bcdedit /set {bootmgr} bootsequence %UUID% | |
bcdedit /set %UUID% loadoptions DISABLE-LSA-ISO,DISABLE-VBS | |
bcdedit /set %UUID% device partition=X: | |
mountvol X: /d |
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 random, subprocess, socket | |
hostname = socket.gethostname() | |
animals = ( | |
"beavis.zen", | |
"bong", | |
"bud-frogs", | |
"bunny", | |
"cheese", |
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
4b825dc642cb6eb9a060e54bf8d69288fbee4904 |
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
; # => Win | |
; ! => Alt | |
; ^ => Ctrl | |
; + => Shift | |
SetCapsLockState, AlwaysOff | |
;; Capslock::Esc | |
CapsLock::Ctrl | |
+Capslock::Capslock | |
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
SRC=/path/to/source | |
DEST=/path/to/dest | |
# Copy | |
rsync -aP --stats --human-readable "${SRC}" "${DEST}" | |
# Move | |
rsync -aP --stats --human-readable --remove-source-files "${SRC}" "${DEST}" | |
# Sync | |
rsync -aP --stats --human-readable --delete "${SRC}" "${DEST}" |
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
;Ballistic | |
player.additem 0001f66b 1000 ;.308 round | |
player.additem 0004ce87 1000 ;.38 round | |
player.additem 0009221c 1000 ;.44 round | |
player.additem 0001f66a 1000 ;.45 round | |
player.additem 0001f279 1000 ;.50 caliber round | |
player.additem 0001f276 1000 ;.10mm | |
player.additem 0001f66c 1000 ;.5mm | |
player.additem 0001f278 1000 ;5.56mm | |
player.additem 0001f673 1000 ;Shotgun shell |
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
// remember load jquery first | |
// https://gist.github.com/dcai/1a4675d26be0d4ccd12382ce07965157 | |
var songs = jQuery('span.txt>a>b').map((index, value) => value.innerText); | |
var artists = jQuery('div.text>span[title]').map((index, value) => value.innerText); | |
var albums = jQuery('div.text>a').map((index, value) => value.innerText); | |
var results = songs.map((index, value) => ({ | |
title: value, | |
artist: artists[index], | |
album: albums[index] | |
})); |
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 | |
# http://blog.strictly-software.com/2013/07/apache-performance-tuning-bash-script.html | |
echo "Calculate MaxClients by dividing biggest Apache thread by free memory" | |
if [ -e /etc/debian_version ]; then | |
APACHE="apache2" | |
elif [ -e /etc/redhat-release ]; then | |
APACHE="httpd" | |
fi | |
APACHEMEM=$(ps -aylC $APACHE |grep "$APACHE" |awk '{print $8'} |sort -n |tail -n 1) | |
APACHEMEM=$(expr $APACHEMEM / 1024) |
NewerOlder