I hereby claim:
- I am dword4 on github.
- I am dword4 (https://keybase.io/dword4) on keybase.
- I have a public key ASCO6E0SX6H7NNGE4r9ourvAjFQrWtI6xeaaeb0zqOngWQo
To claim this, I am signing this object:
#!/usr/bin/python | |
from imgurpython import ImgurClient | |
from PIL import Image | |
from creds import * | |
import PIL | |
from reportlab.pdfgen import canvas | |
from reportlab.platypus import SimpleDocTemplate, Paragraph, Image, Spacer, PageBreak | |
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle | |
from reportlab.lib.pagesizes import letter | |
from reportlab.lib.units import inch |
#!/usr/bin/python | |
import datetime | |
import calendar | |
day = datetime.date.today().strftime("%d") | |
month = datetime.date.today().strftime("%m") | |
year = datetime.date.today().strftime("%Y") | |
strip_month = datetime.date.today().strftime("%-m") |
#!/bin/bash | |
SCRIPT_VERSION="0.1" | |
# things to check | |
# internal ip, external ip, dns server, connectivity to google | |
# filesystem usage, current system load, memory usage | |
> log.log | |
date >> log.log | |
IP=`ip addr | grep -P -o '\d{1,3}.\d{1,3}\.\d{1,3}\.\d{1,3}\/24'` |
#@module.commands('lasttopic') | |
def last_topic(bot, trigger): | |
channel_list = [] | |
conn_channels = bot.privileges | |
for channel in conn_channels: | |
if channel not in channel_list: | |
channel_list.append(channel) | |
for chan in channel_list: | |
if chan == '#t3st': |
set t_Co=256 | |
if has("syntax") | |
syntax on | |
endif | |
set novisualbell | |
set hlsearch | |
"colorscheme apprentice | |
"colorscheme slate | |
"colorscheme dword2 |
#!/bin/bash | |
HOST=$1 | |
echo "deploying salt -> $HOST" | |
ssh root@$HOST "yum -y install epel-release && yum -y install salt-minion" | |
ssh root@$HOST "sed -i 's/#master: salt/master: 192.168.1.50/g' /etc/salt/minion" | |
ssh root@$HOST "systemctl start salt-minion && systemctl enable salt-minion" | |
ssh root@$HOST "systemctl stop firewalld && systemctl disable firewalld" | |
echo "salt successfully deployed |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/python3 | |
import pandas as pd | |
import numpy as np | |
import sys | |
target = sys.argv[1] | |
def getTargetTotal(target): | |
df = pd.read_csv('data.csv', header=None,names=['date','description','ammount','balance']) |
#!/usr/bin/python3 | |
alphabet = 'abcdefghijklmnopqrstuvwxyz' | |
chars = list(alphabet) | |
words = ['alpha','bravo','charlie','delta','echo','foxtrot','golf','hotel','india','juliett','kilo','lima','mike','november','oscar','papa','quebec','romeo','sierra','tango','uniform','victor','whiskey','xray','yankee','zulu'] | |
for w in words: | |
# loop through each word specified |
# adds a device forcefullly in LNMS via the API | |
lnms_api_add: | |
cmd.run: | |
- name: >- | |
curl -X POST --data-binary '{"hostname":"{{ salt['grains.get']('ip4_interfaces:ens18:0') }}","force_add":"true","port":"161","version":"v2c","community":"public"}' -k -v -H 'X-Auth-Token: SOMEAPITOKEN' 'http://192.168.1.85/api/v0/devices' |