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
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" |
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
__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 |
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
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() |
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
#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 |
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
#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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 ++++++++++++++++++++--------------------- |
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
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 | |
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
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"; |
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
#!/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 |