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 -ex | |
mount /dev/OMCAppVG/LVRoot /mnt | |
for i in dev run proc sys ; do mount -o bind /$i /mnt/$i ; done | |
chroot /mnt |
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
package dialog | |
func englishToTwenty(number int) (value string) { | |
switch number { | |
case 0: | |
value = "zero" | |
case 1: | |
value = "one" | |
case 2: | |
value = "two" |
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
package main | |
import ( | |
"log" | |
"math/rand" | |
"sync" | |
"time" | |
"github.com/google/uuid" | |
) |
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
# /etc/systemd/system/docker.service.d/docker-nftables.conf | |
# disable iptables in docker, allowing nftables to do work | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/docker daemon -H fd:// --iptables=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
#!/bin/env ruby | |
require 'json' | |
# READ: http://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html | |
# GET: https://ip-ranges.amazonaws.com/ip-ranges.json | |
json = File.read('ip-ranges.json') | |
data = JSON.parse(json) | |
data['prefixes'].sort_by { |x| x['region'] }.each do |prefix| |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Simple Sandbox VPC // NO NAT", | |
"Metadata": { | |
"Notes" : { | |
"[ Parameters ]:" : "===================================================================================================================================", |
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
{ | |
"nftables": [ | |
{ | |
"table": { | |
"name": "nat", | |
"family": "ip", | |
"flags": 0, | |
"use": 2 | |
} | |
}, |
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
%w(git nano vim vi wget curl).each do |p| | |
package p | |
end | |
remote_file '/tmp/atom.rpm' do | |
owner 'student' | |
group 'student' | |
mode '0644' | |
source 'https://atom.io/download/rpm' |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
fmt.Println("Hello World!") | |
fmt.Println("Testing the editor...") |
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/python2 | |
# req : pip install keyring | |
import sys | |
import keyring | |
# ERROR if not enough arguments supplied | |
if len(sys.argv) < 4: | |
print ''' |
NewerOlder