This file contains hidden or 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
# i3 config file (v4) | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
##################################### | |
# Main Config | |
# | |
# Set mod key (Mod1=<Alt>, Mod4=<Super>) | |
set $mod Mod1 | |
# | |
# Configure border style <normal|1pixel|pixel xx|none|pixel> |
This file contains hidden or 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
# First day config with qutebrowser | |
config.load_autoconfig() | |
# Define Aliases | |
aliases = { | |
"q": "quit", | |
"tabopen": "open -t", | |
"w": "session-save", | |
"wq": "quit --save", | |
"close": "tab-close", |
This file contains hidden or 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
# First day config with qutebrowser | |
config.load_autoconfig() | |
# Define Aliases | |
aliases = { | |
"q": "quit", | |
"tabopen": "open -t", | |
"w": "session-save", | |
"wq": "quit --save", | |
"close": "tab-close", |
This file contains hidden or 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/python3 | |
from subprocess import call | |
website = 'WEBSITE' | |
call(["xdg-open", website]) |
This file contains hidden or 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/python3 | |
# Purpose of script: | |
# Convert a security group to HCL | |
import boto3 | |
client = boto3.client('ec2') | |
def describe_sg(security_group): |
This file contains hidden or 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/python3 | |
from jira import JIRA | |
from rofi import Rofi | |
from subprocess import Popen, DEVNULL | |
r = Rofi() | |
browser_path = "vivaldi-stable" | |
jira_uri = 'https://company.atlassian.net' | |
api_token = 'https://id.atlassian.com/manage/api-tokens' # go here and generate one |
This file contains hidden or 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/python3 | |
import boto3 | |
ec2_client = boto3.client('ec2') | |
def find_in_sg(ip_address): | |
sg = ec2_client.describe_security_groups() | |
security_groups = [] | |
for group in sg['SecurityGroups']: |
This file contains hidden or 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 python | |
import os | |
import re | |
import csv | |
import sys | |
import math | |
import errno | |
import signal | |
import socket |
This file contains hidden or 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
######################### | |
## Basic Configuration ## | |
######################### | |
site: datadoghq.com | |
skip_ssl_validation: false | |
# force_tls_12: false | |
tags: | |
- environment:dev | |
- dd_agent:true |
This file contains hidden or 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 requests | |
import json | |
import pyowm | |
geolocation_api_uri = "http://ip-api.com/json/?fields=49344" | |
def get_coord(): | |
r = requests.get(geolocation_api_uri) |