Welcome to Alpine!
The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <http://wiki.alpinelinux.org>.
You can setup the system with the command: setup-alpine
You may change this message by editing /etc/motd.
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 | |
function append_once() { | |
while read data; do | |
grep -q "$data" $1 || echo "$data" >> $1 | |
done | |
} | |
append_once ~/.bashrc <<EOF | |
echo 'This line is only written once.' |
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
all: | |
@echo "WARNING: Installation requires your sudo access, please enter your password when prompted." | |
@echo " ... press Enter to continue... " | |
@read | |
curl -LOs https://src.fedoraproject.org/repo/pkgs/bash-completion/bash-completion-1.3.tar.bz2/a1262659b4bbf44dc9e59d034de505ec/bash-completion-1.3.tar.bz2 | |
curl -LOs https://raw.githubusercontent.com/Homebrew/formula-patches/c1d87451da3b5b147bed95b2dc783a1b02520ac5/bash-completion/bug-740971.patch | |
curl -LOs https://gist.githubusercontent.com/jnovack/e66f40e7a31e04f909c2f503c6df7367/raw/287b97a1f24bb47746248a15659b9478e6ec8e02/osx.patch | |
curl -LOs https://gist.github.com/jnovack/e66f40e7a31e04f909c2f503c6df7367/raw/SHA256SUMS | |
shasum -c SHA256SUMS || (@echo "There was an error downloading one or more files... please try again."; exit 1) | |
tar -xzvf bash-completion-1.3.tar.bz2 |
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 | |
openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out certificate.pem -days 720 \ | |
-subj "/C=XX/ST=State/L=City/O=Department/OU=Organization/CN=localhost.localdomain" |
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
"use strict"; | |
const fs = require('fs'); | |
const path = require('path'); | |
const protocol29406 = exports.protocol = require('../lib/protocol29406'); | |
const storm = require('storm-replay'); | |
const version = exports.version = require('../package.json').version; |
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 | |
# Recurse through http://rancher-metadata/ for debugging purposes | |
recurse() { | |
local URL=${1//\/\//\/}; | |
for FILE in $(curl ${URL}); | |
do | |
if [[ $FILE == "Not" || $FILE == "found" ]]; then | |
break; | |
fi; |
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 crackPassword(password) { | |
var crypttext = password.toUpperCase(); | |
var plaintext = ''; | |
var xlate = "dsfd;kfoA,.iyewrkldJKDHSUBsgvca69834ncxv9873254k;fg87"; | |
var seed, i, val = 0; | |
if(crypttext.length & 1) | |
return; | |
seed = (crypttext.charCodeAt(0) - 0x30) * 10 + crypttext.charCodeAt(1) - 0x30; |
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
// ==UserScript== | |
// @name Freeze Window | |
// @namespace | |
// @version 0.0.1 | |
// @description | |
// @author Justin J. Novack | |
// @include http*://*.hotslogs.com/* | |
// @run-at document-end | |
// ==/UserScript== |
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
.PHONY:i ptr version extract docker images all | |
version-ptr: | |
storm-extract -f DataBuildId.txt -x -q -i "/Applications/Heroes of the Storm" | |
$(eval BUILD = `cat mods/core.stormmod/base.stormdata/DataBuildId.txt | sed 's/[[:alpha:]]//'`) | |
@echo ${BUILD} | |
extract-ptr: | |
storm-extract -f DataBuildId.txt -x -q -i "/Applications/Heroes of the Storm" | |
$(eval BUILD = `cat mods/core.stormmod/base.stormdata/DataBuildId.txt | sed 's/[[:alpha:]]//'`) |
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
#read the current pref, returns '0' for off and '1' for on. | |
defaults read /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState | |
#set bluetooth pref to off | |
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 0 | |
#set bluetooth pref to on | |
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 1 | |
#kill the bluetooth server process |