Skip to content

Instantly share code, notes, and snippets.

View gaybro8777's full-sized avatar
💭
Im not gay. I'm just getting back at my dad for not getting me an xbox

Michael Corrado gaybro8777

💭
Im not gay. I'm just getting back at my dad for not getting me an xbox
View GitHub Profile
import io
import os
import requests
import subprocess
import zipfile
EXIFTOOLDIR = "C:\\tools\\exiftool"
EXIFTOOLURL = "https://www.sno.phy.queensu.ca/~phil/exiftool/"
EXIFTOOLVER = "http://owl.phy.queensu.ca/~phil/exiftool/ver.txt"
@gaybro8777
gaybro8777 / githubissues
Created April 21, 2019 12:52 — forked from kingofhawks/githubissues
export github issues to CSV files
__author__ = 'simon'
# coding=gbk
def export_csv(repository,target_csv):
import requests
resp = requests.get(url=repository)
#print resp.text
data = resp.json()
#print data
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import random
import sys
def print_same_line(text):
sys.stdout.write('\r')
sys.stdout.flush()
@gaybro8777
gaybro8777 / Get-DscConfigurationStatus
Created November 22, 2018 22:58 — forked from gbrayut/Get-DscConfigurationStatus
Issues with Missing DSC Schedules Tasks
#Status after configuring LCM and running Update-DscConfiguration
PS C:\windows\system32\Configuration> Get-DscConfigurationStatus
Status StartDate Type Mode RebootRequested NumberOfResources
------ --------- ---- ---- --------------- -----------------
Success 2015/04/17 19:40:47 Initial Pull False 19
#Status after restarting the server
PS C:\windows\system32> Get-DscConfigurationStatus
@tacomonster
tacomonster / AutoType.py
Created September 15, 2018 14:29
Automating Typing Program
#1431, 25
#175, 27
"""
Select right side of the screen where text editor is and type one line
After typing on line go back to terminal and ask for user to hit Enter to continue on to the
next line.
"""
import pyautogui
import random
@palewire
palewire / notebook.ipynb
Last active July 12, 2025 07:35
Rotating proxy scraper example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
From f01f8991d2cd4610c0f4284bf7409e999e47b840 Mon Sep 17 00:00:00 2001
From: Sokolov Yura aka funny_falcon <[email protected]>
Date: Mon, 12 Dec 2016 14:23:17 +0300
Subject: [PATCH] load.c: reduce memory usage of loaded_features_index
Use integer hashsum instead of string as a key in loaded_features_index.
Do not use ruby strings for substring operation, just plain pointer
and length.
---
load.c | 41 ++++++++++++++++++++---------------------
import time
import random
import re
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException
from chatterbot.trainers import ListTrainer
from chatterbot import ChatBot
var server = {
"development": "http://localhost:8000/",
"production": "http://myapp-production.herokuapp.com/",
"staging": "http://myapp-staging.herokuapp.com/"
}[process.env.NODE_ENV || "development"] + "myquery?parameter=VALUE";
@gaybro8777
gaybro8777 / optimize_media.sh
Created May 27, 2018 22:40 — forked from colinmollenhour/optimize_media.sh
Optimize PNG and JPEG images - incrementally
#!/bin/bash
#
# Optimize all jpg and png files in the cwd
# Run it again to optimize new files since the last run
#
# Example:
# echo "optimize_media.sh > /tmp/optimize.log" | sudo -u www-data bash -s
#
# Colin Mollenhour 2016