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 | |
import tweepy | |
class Tweet(object): | |
""" | |
use tweepy | |
""" | |
def __init__(self): | |
consumer_key = os.environ.get("TWITTER_CONSUMER_KEY") | |
consumer_secret = os.environ.get("TWITTER_CONSUMER_SECRET") |
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
# -*- coding: utf-8 -*- | |
import os | |
import shutil | |
import sys | |
path = '/mnt/hdd1/nas/picture/smartphone/rei/20170909/pictures/Twitter' | |
files = os.listdir(path) | |
# ファイル移動 |
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
# -*- coding: utf-8 -*- | |
import os | |
import random | |
username = raw_input("user name? >>") | |
cmd = "useradd -s /sbin/nologin " + username | |
os.system(cmd) | |
length = random.randint(8, 12) | |
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890%/' | |
newpass = "" | |
for i in range(1, length): |
NewerOlder