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/sh | |
#curl -L https://tinyurl.com/dd-benchmark-sh | sh | |
echo "dd-benchmark.sh" > disk-benchmark.log.out | |
echo $(date) >> disk-benchmark.log.out | |
echo "-----------------------------" >> disk-benchmark.log.out | |
echo >> disk-benchmark.log.out | |
echo "-----Testing write speed-----" >> disk-benchmark.log.out | |
dd if=/dev/zero bs=1024k of=tstfile count=1024 2>> disk-benchmark.log.out |
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 | |
nvram 8be4df61-93ca-11d2-aa0d-00e098032b8c:epid_provisioned=%01%00%00%00 |
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
const c4se = function(n) { | |
const varname = 'string_x'; | |
var buildCase = ''; | |
console.log('case ' + n + ':'); | |
for(var i = 0; i<~~(n/2); i++) { | |
buildCase += '(string_x[' + i + '] === ' + 'string_x[' + (n - i - 1) + '])'; | |
} |
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
>B | |
>b | |
> | |
>CE | |
>c | |
>E | |
>ABcDE | |
>E | |
>ABCDe | |
>AbCDE |
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
if B then | |
checkpoint | |
fi | |
if ~B then | |
checkpoint | |
fi | |
if A|B then | |
checkpoint | |
if C then | |
if E then |
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
//- https://www.sitepoint.com/dynamically-load-jquery-library-javascript/ | |
//- Load jQuery library using plain JavaScript (With callback) | |
//- --------------------------------------------------------------------- | |
(function () { | |
function loadScript(url, callback) { | |
var script = document.createElement("script") | |
script.type = "text/javascript"; |
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
# long-div.py | |
# (c) 2019 David Volm (daXXog) <>< + + + ><> | |
# ___________________________________________ | |
firstNumber=input('whats the first number? \n') | |
secondNumber=input('whats the second number? \n') | |
def floorDiv(): | |
thinkFloor = str(int(secondNumber // firstNumber)) | |
lenDiff = len(str(secondNumber)) - len(thinkFloor) |
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
counter = 10 | |
while counter >= 0: | |
print(counter) | |
counter = counter - 1 | |
print('David Volm') |
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
// David's prims (JavaScript) | |
// rough hacked together version ! | |
// | |
// (c) 2019 daXXog <>< + + + ><> | |
// ------------------------------------------ | |
// [[][][]].flatten prototype | |
//- https://stackoverflow.com/a/19191529 | |
Array.prototype.flatten = function() { | |
var arr = this, |