Skip to content

Instantly share code, notes, and snippets.

View TheCodeDestroyer's full-sized avatar
😎
Status set

Nace Logar TheCodeDestroyer

😎
Status set
View GitHub Profile
{
"variables": [],
"info": {
"name": "Test Collection",
"_postman_id": "c70228d7-6542-db5c-7aec-a11125e5ef5d",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
#!/usr/bin/env bash
#node-update - A script to handle NodeJS Update process
# shellcheck source=/dev/null
. "$HOME/.nvm/nvm.sh"
OLD="$(nvm current)"
LATEST="$(curl -s http://nodejs.org/dist/ -o - | grep 'v[0-9].*' | sort | sed -e 's/.*node-//' -e 's/\.tar\.gz.*//' -e 's/<[^>]*>//' -e 's/\/<[^>]*>.*//' -e '$!d')"
#!/usr/bin/env bash
#nvm-update - A script to handle NVM update process
cd "$HOME/.nvm" || exit
git checkout master
git pull
@TheCodeDestroyer
TheCodeDestroyer / jenkins-cli
Last active March 3, 2017 07:52
jenkins-cli wrapper
#!/usr/bin/env bash
#jenkins-cli - A wrapper script for jenkins cli
COMMAND=${1:-help}
SHELL_CONFIG_FILE_NAME=".zshrc"
commonConfirm() {
MESSAGE=${1:-Is this correct?}
DEFAULT_RESPONSE=${2:-[Y/n]}
@TheCodeDestroyer
TheCodeDestroyer / pi-backup
Created April 10, 2016 16:03
Raspberry Pi backup script (shell)
#!/bin/bash
echo "Specify block device name:"
read BLOCK_DEVICE_NAME
echo "Is this the correct device: /dev/$BLOCK_DEVICE_NAME (Y/n)"
read ANSWER
#!/bin/bash
sleep 1s
LOG_FILE=$HOME/.kodi/temp/kodi.log
rm $LOG_FILE 2> /dev/null
echo "Starting Kodi"
/usr/lib/kodi/kodi.bin --standalone &
echo "Kodi started"