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
[storage] | |
engine = file_system | |
path = Development/MACHINENAME | |
directory = Mackup | |
[configuration_files] |
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
import boto3 | |
import re | |
import datetime | |
import time | |
ec = boto3.client('ec2') | |
iam = boto3.client('iam') | |
def backupVols(e): | |
print("Looking for volumes to backup") |
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
console.log('Loading event'); | |
var AWS = require('aws-sdk'); | |
var dynamodb = new AWS.DynamoDB(); | |
exports.handler = function(event, context) { | |
console.log("Request received:\n", JSON.stringify(event)); | |
console.log("Context received:\n", JSON.stringify(context)); | |
var tableName = "OurBlogDemo"; | |
var datetime = new Date().getTime().toString(); |
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
steps: | |
- name: 'gcr.io/cloud-builders/docker' | |
args: [ 'build', '-t', 'gcr.io/yourorg/mystaticsite:$COMMIT_SHA', '.' ] | |
- name: 'gcr.io/cloud-builders/docker' | |
args: [ 'build', '-t', 'gcr.io/yourorg/mystaticsite:latest', '.' ] | |
images: | |
- 'gcr.io/yourorg/mystaticsite:$COMMIT_SHA' | |
- 'gcr.io/yourorg/mystaticsite:latest' | |
tags: | |
- "cloudbuild" |
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/python | |
from getpass import getpass | |
import hashlib | |
import requests | |
import sys | |
import re | |
passd = getpass('Gimme your password: ') | |
hash = hashlib.sha1(passd).hexdigest().upper() | |
res = requests.get('https://api.pwnedpasswords.com/range/'+hash[0:5]) |
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/local/bin/python3.6 | |
import dns.resolver | |
import re | |
def main(): | |
v4 = [] | |
v6 = [] | |
v4, v6 = que('_cloud-netblocks.googleusercontent.com') | |
for o4 in v4: | |
print(o4) |
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
# See https://obviate.io/?p=8022 for more details | |
import time | |
from machine import Pin | |
led = Pin(2, Pin.OUT) | |
while True: | |
if led.value(): | |
led.off() | |
else: |
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
/* | |
* HID RFID Reader Wiegand Interface for Arduino Uno | |
* Originally by Daniel Smith, 2012.01.30 -- http://www.pagemac.com/projects/rfid/arduino_wiegand | |
* | |
* Updated 2016-11-23 by Jon "ShakataGaNai" Davis. | |
* See https://obviate.io/?p=7470 for more details & instructions | |
*/ | |
#define MAX_BITS 100 // max number of bits |
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
gitlab: | |
image: 'gitlab/gitlab-ee:latest' | |
restart: always | |
hostname: 'gitlab.mycompany.tld' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'https://gitlab.mycompany.tld' | |
# https://docs.gitlab.com/omnibus/settings/ssl.html | |
letsencrypt['enable'] = true | |
letsencrypt['auto_renew'] = true |
OlderNewer