I hereby claim:
- I am get-data- on github.
- I am kevin_tarvin (https://keybase.io/kevin_tarvin) on keybase.
- I have a public key ASCFFXrjg8OGkpldvZ-_Pm7IDQetMkB-VIGE5sOh_O2Pvgo
To claim this, I am signing this object:
# Source: https://forums.aws.amazon.com/thread.jspa?threadID=166904 | |
# S3 artifact | |
aws deploy create-deployment --application-name APPLICATION --deployment-group-name GROUP --ignore-application-stop-failures --s3-location bundleType=tar,bucket=BUCKET,key=KEY --description "Ignore ApplicationStop failures due to broken script" | |
# Github | |
aws deploy create-deployment --application-name APPLICATION --deployment-group-name GROUP --ignore-application-stop-failures --github-location commitId=`git rev-parse HEAD`,repository=ACCOUNT/PROJECT --description "Ignore ApplicationStop failures due to broken script" |
# Look at what will get removed before taking action | |
git remote prune origin --dry-run | |
# Prune and delete those branches locally which were deleted on your remote repository | |
git fetch --prune | |
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d |
# Source: https://unix.stackexchange.com/questions/33617/how-can-i-update-to-a-newer-version-of-git-using-apt-get | |
sudo add-apt-repository ppa:git-core/ppa -y | |
sudo apt-get update | |
sudo apt-get install git -y | |
git --version |
iamRoleStatements: | |
- Effect: Allow | |
Action: | |
- lambda:InvokeFunction | |
Resource: "*" | |
- Effect: "Allow" | |
Action: | |
- "sqs:SendMessage" | |
- "sqs:GetQueueUrl" | |
Resource: "*" |
# handler.py | |
"""AWS Lambda function for transferring files from an S3 bucket to another | |
S3 bucket on a CreateObject event. | |
Required env vars: | |
:param SQS_QUEUE_URL: URL of SQS queue | |
Optional env vars: | |
:param LOGGING_LEVEL: string log level (default ERROR) | |
:param NUM_MESSAGES: int # of msg to retrieve per execution (default 1) | |
:validation NUM_MESSAGES: accepts int 1 - 10 |
echo "created for public use and use." | |
echo "Start with re-install cleanup." | |
rm -r /etc/dnsdumpster | |
rm /var/www/html/youtube-ads-list.txt | |
rm /etc/pihole/youtube-ads.sh | |
echo "cleanup done." | |
echo "installing python-pip and dnsdumpster." | |
apt-get install python-pip | |
pip install --upgrade pip | |
pip uninstall dnsdumpster |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
basics() { | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt-get install build-essential libssl-dev libffi-dev python-dev | |
sudo apt -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
sudo apt install git -y | |
sudo apt install wget -y |
// create a bookmark and use this code as the URL, you can now toggle the css on/off | |
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
javascript: (function() { | |
var elements = document.body.getElementsByTagName('*'); | |
var items = []; | |
for (var i = 0; i < elements.length; i++) { | |
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { | |
items.push(elements[i]); | |
} | |
} |
#!/usr/bin/python | |
import os | |
import subprocess | |
import time | |
import yaml | |
import re | |
user_name = os.environ.get("DOCKERHUB_USER") |