Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Lopez Silvenga

View GitHub Profile
@Silvenga
Silvenga / add-minion.sh
Created Mar 21, 2016
Remotely Authorize and Provision a Salt Minion
View add-minion.sh
#!/bin/bash
# apt-get install sshpass
# http://docs.saltstack.com/en/latest/topics/tutorials/preseed_key.html
BOOTSTRAP=/srv/minion-bootstrap.sh
LOG_LOCATION=/tmp/minion-bootstrap.log
TMP=/tmp/salt
if [[ -z "$1" ]] || [[ -z "$2" ]] ; then
View slight-putty-theme.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Slight]
"Colour0"="240,240,240"
"Colour1"="255,255,255"
"Colour2"="63,63,65"
"Colour3"="103,103,103"
"Colour4"="0,0,0"
"Colour5"="0,255,0"
"Colour6"="21,23,26"
View dockerfile.sh
#(nop) CMD ["/opt/entrypoint.sh"]
cp /usr/share/pmm-server/entrypoint.sh /opt/entrypoint.sh
ansible-playbook -vvv -i 'localhost,' -c local /opt/playbook-init.yml
#(nop) COPY file:a969fd4cfc09f89b74fb2ba60e955c0f6a7f4aaf050100501633d19c933cae4d in /opt/playbook-init.yml
ansible-playbook -vvv -i 'localhost,' -c local /opt/playbook-install.yml
#(nop) COPY file:b94f58ef90751b3a827d3d85000e585b2ce11a83e830db6d722f31c31fcc8453 in /opt/playbook-install.yml
#(nop) COPY file:07c96ecb439e64ef84963c186de39d8a34efc3cbef0a1fc0fbc2dee4a3ba78c3 in /tmp/gitCommit
#(nop) COPY dir:2e52ca7492897d14e051e405564f95426a034c5d705d76c7129a83463cf47906 in /tmp/RPMS
yum -y install epel-release && yum -y install ansible
useradd -s /bin/false pmm
View mg-postfix.sh
#!/bin/bash
#########################################################
mgUSERNAME="MailGun Username"
mgPASSWORD="COMPLEX PASSWORD"
testEmail="user@example.com"
#########################################################
echo "Installing this agent may be dangerous, make sure this is the correct server!"
@Silvenga
Silvenga / speedtest.sh
Created May 2, 2014
Network speed testing script put together by aFriend from LowEndTalk.
View speedtest.sh
#!/bin/bash
echo "
###############################################################################
Download tests. Warning: downloads approx 100MB per site. Total approx 1.8GB
###############################################################################
"
function download_benchmark() {
#echo "Benchmarking download from $1 ($2)"
View mxroute.linq
<Query Kind="Program">
<NuGetReference>cPanelSharp</NuGetReference>
<NuGetReference>Newtonsoft.Json</NuGetReference>
<Namespace>cPanelSharp</Namespace>
<Namespace>Newtonsoft.Json</Namespace>
<Namespace>Newtonsoft.Json.Linq</Namespace>
</Query>
cPanelClient Client = new cPanelClient("silvenga", "ghost.mxroute.com", password: Util.GetPassword("mxroute-silvenga"), cpanel: true);
View global.d.ts
// Version 1
// https://stackexchange.github.io/dnscontrol/js
type Ttl = string | number;
// Top Level Functions
declare function REV(address: string): string;
declare function NewRegistrar(name: string, type: string, meta?: any): string;
declare function NewDnsProvider(name: string, type: string, meta?: any): string;
declare function DEFAULTS(...modifiers: any[]): void;
View unbreak-windows-update.reg
Windows Registry Editor Version 5.00
[
-HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate
]
@Silvenga
Silvenga / global.d.ts
Created Dec 24, 2017
dnscontrol Typescript Definitions
View global.d.ts
// https://stackexchange.github.io/dnscontrol/js
type Ttl = string | number;
// Top Level Functions
declare function REV(address: string): string;
declare function NewRegistrar(name: string, type: string, meta?: any): string;
declare function NewDnsProvider(name: string, type: string, meta?: any): string;
declare function DEFAULTS(...modifiers: any[]): void;
declare function D(name: string, registrar: string, ...meta: any[]): void;
View docker.sls
Install Pre-Reqs:
pkg.installed:
- pkgs:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
Install Docker Apt Repo:
pkgrepo.managed: