yum -y install epel-release
yum -y upgrade
yum -y install openssh-server net-tools iputils psmisc less which man mc bash-completion bash-completion-extras bash-argsparse bind-utils traceroute htop mtr
echo "export HISTTIMEFORMAT='%F %T '" > /etc/profile.d/history.sh
echo "export HISTIGNORE='ls -l:pwd:date:'" >> /etc/profile.d/history.sh
echo "export HISTCONTROL=ignoredups" >> /etc/profile.d/history.sh
systemctl enable sshd
systemctl start sshd
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
// checksum calculation for GTIN-8, GTIN-12, GTIN-13, GTIN-14, and SSCC | |
// based on http://www.gs1.org/barcodes/support/check_digit_calculator | |
function isValidBarcode(barcode) { | |
// check length | |
if (barcode.length < 8 || barcode.length > 18 || | |
(barcode.length != 8 && barcode.length != 12 && | |
barcode.length != 13 && barcode.length != 14 && | |
barcode.length != 18)) { | |
return false; | |
} |
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
# Replace JobName with the job name and ProjectName with the project name | |
for JOB in {246..254} | |
do curl -u $JENKINS_USER_NAME:$JENKINS_API_TOKEN -X POST http://$JENKINS_SERVER:$JENKINS_PORT/view/ProjectName/job/JobName/$JOB/doDelete | |
done |
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
docker run \ | |
--name ubuntu \ | |
-e HOST_IP=$(ifconfig en0 | awk '/ *inet /{print $2}') \ | |
-v /Users/hudson/Workspaces:/src \ | |
-t -i \ | |
ubuntu /bin/bash |
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
Array.from(document.getElementsByClassName("CLASSNAME")).map(e => e.textContent).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
int main(int args, const char * argv[]) { | |
int userNum; | |
cout << "Enter a number: "; | |
cin >> userNum; | |
while (userNum >= 4) { | |
userNum = userNum / 4; | |
cout << userNum << " "; | |
} |
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
goto :loop | |
:loop | |
echo Copying Files | |
copy *.jpg "C:\Users\vPro Demo\Dropbox\folder" | |
timeout /t 30 | |
goto :loop |
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
// ==UserScript== | |
// @name Hide Rated R Movies on Feature Films page | |
// @namespace http://stevespiga.rel.li/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Steve Spigarelli | |
// @match https://www.slcolibrary.org/mm/mmmo/newFeatureFilms.htm | |
// @grant none | |
// ==/UserScript== |
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
function processRow(row) { | |
let items = [... row.getElementsByTagName("td")] | |
let elementName = items[2].innerText | |
let elementSymbol = items[1].innerText | |
let atomicNumber = items[0].innerText | |
return elementName + ", " + elementSymbol + ", " + atomicNumber | |
} | |
var elements = [... document.getElementsByTagName("tr")].splice(1,).map(processRow).join('<br/>\n') |
NewerOlder