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 | |
set -xeuo pipefail | |
declare -x USERNAME="$1" | |
declare -x USERPIC="$2" | |
declare -r DSIMPORT_CMD="/usr/bin/dsimport" | |
declare -r ID_CMD="/usr/bin/id" |
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 python3 | |
import sys | |
import time | |
class bcolors: | |
HEADER = '\033[95m' | |
OKBLUE = '\033[94m' | |
OKCYAN = '\033[96m' | |
OKGREEN = '\033[92m' |
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 python3 | |
def add_digits(the_digits, sum_log10_inversed = False): | |
total = 0 | |
digit_count = len(the_digits) | |
if(sum_log10_inversed): | |
the_digits.reverse() | |
# count down, from the last digit to the first |
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
wget -q -nc -O /tmp/wl.txt https://raw.githubusercontent.com/greenmoss/w/master/w ; sort -R /tmp/wl.txt | head -20 ; tr -dc a-z0-9 </dev/urandom | head -c 20 |
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
CONNECTED(00000005) | |
depth=2 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA | |
verify return:1 | |
depth=1 C = US, O = DigiCert Inc, CN = DigiCert SHA2 Secure Server CA | |
verify return:1 | |
depth=0 C = US, ST = Virginia, L = Dulles, O = "LISCR, LLC", CN = *.liscr.com | |
verify return:1 | |
--- | |
Certificate chain | |
0 s:/C=US/ST=Virginia/L=Dulles/O=LISCR, LLC/CN=*.liscr.com |
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 bash | |
# This script renews letsecnrypt SSL certificates using Cloudflare dns-1 renewal | |
# It assumes you are using Mailcow | |
set -euo pipefail | |
# REQUIRED set these: | |
[email protected] | |
your_domain=mail.your.domain # only tested with single domain | |
cloudflare_ini_path=/root/.cloudflare # add your Cloudflare file here, called cloudflare.ini |
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
Bootstrapping dependencies for Debian-based OSes... | |
Ign http://us.archive.ubuntu.com trusty InRelease | |
Get:1 http://us.archive.ubuntu.com trusty-updates InRelease [65.9 kB] | |
Hit http://us.archive.ubuntu.com trusty-backports InRelease | |
Hit http://us.archive.ubuntu.com trusty Release.gpg | |
Get:2 http://us.archive.ubuntu.com trusty-updates/main Sources [395 kB] | |
Get:3 http://security.ubuntu.com trusty-security InRelease [65.9 kB] | |
Ign http://ppa.launchpad.net trusty InRelease | |
Get:4 http://us.archive.ubuntu.com trusty-updates/restricted Sources [6,327 B] | |
Get:5 http://us.archive.ubuntu.com trusty-updates/universe Sources [176 kB] |
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
.controller('View1Ctrl', [ '$scope', '$log', '$http', function($scope, $log, $http) { | |
$log.debug('foobar'); | |
$scope.name = ''; | |
$scope.names = [{name:"Chris"}, {name:"Calvin"}]; | |
$scope.addName = function() { | |
$scope.names.push( {'name':$scope.name} ); | |
$scope.name = ''; | |
}; | |
var h = $http({ | |
method: 'GET', |
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
$http({ | |
method: 'GET', | |
url: 'https://google.com', | |
headers: {'Content-Type':'text/plain'} | |
}) | |
.then(function(response) { | |
$log.debug(response.data) | |
}); |
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
Timestamp: | |
========== | |
Thu Apr 07 18:29:56 UTC 2016 | |
================= | |
Config Statistics | |
================= |
NewerOlder