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 csv, json, os | |
from datetime import datetime | |
import praw | |
def get_reddit(): | |
return praw.Reddit(client_id='', | |
client_secret = '', | |
user_agent='Praw') | |
def get_mod_data(): |
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 os, csv, re | |
PATH = "SOME/ABS/PATH" | |
#remove old output files | |
def cleanup(): | |
for file_name in os.listdir(PATH): | |
if '.txt' in file_name: | |
os.remove(file_name) |
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
Public Function TINYURL_GENERATOR(base_url As String) As String | |
Set objIE = CreateObject("InternetExplorer.Application") | |
objIE.Top = 0 | |
objIE.Left = 0 | |
objIE.Width = 800 | |
objIE.Height = 600 | |
objIE.Visible = 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
#!/usr/bin/env bash | |
# This file takes in one argument (the absolute path of the generate NETFLIX file with IPs) | |
filename=$1 | |
if [ -z $filename ] | |
then | |
echo "No Filename specified! Exited." | |
exit | |
fi |
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 random | |
from PIL import Image | |
s3 = boto3.resource('s3') | |
bucket_name = "my-bucket" | |
bucket = s3.Bucket(bucket_name) | |
exception_file_name = "images/7df7a570-2348-11e9-8b57-e3db97667bbd.gif" | |
files_to_remove = [] |
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
from docx import Document | |
from Tkinter import * | |
import os | |
def get_documents(files): | |
file_list = [] | |
for document in files: | |
if ".docx" in document and "$" not in document: |
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
# You should have a .txt file named users.txt in the same directory you run this script in. | |
# You will need to have install beautifulsoup4 as well as rquest | |
from bs4 import BeautifulSoup as bs | |
import requests | |
import csv | |
twitter_ids = [] | |
twitter_handles = {} |
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 | |
#This file will take two inputs. One origin directory with N subfolders | |
#Another Directory which to post the Copied files to | |
#a Count as a number | |
#Will output in Target Directory a random selection of files. | |
#you may have to give permissions to this file to work via `chmod 755 randomizer.sh` | |
#You can execute the script by ./randomizer.sh '/home/me/Desktop/Files' '/home/me/Desktop/Destination' 5 2>/dev/null | |
#You will see some printed output. You can open the directory and the files will be present. | |
#If you specifiy a higher count than files that exist you will have to force kill the script. |
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
body { | |
background-color: #0e0e0e; | |
} | |
.content { | |
background-color: #1d1c1c; | |
} | |
.indextab > li.active > a{ | |
background-color: #8c8a8a !important; | |
} | |
.indextab > li > a:hover { |
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
bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - |