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 datetime import datetime | |
from os import rename, walk | |
from os.path import join, splitext, basename | |
import exiftool | |
def get_files(dir): | |
files = [] | |
for d, _, fs in walk(dir): |
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 python3 | |
import urllib.request | |
import smtplib | |
from email.mime.application import MIMEApplication | |
from email.mime.multipart import MIMEMultipart | |
from datetime import datetime, timedelta | |
KINDLE_ID = '__________@kindle.com' | |
GMAIL_ID = '__________@gmail.com' |
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
(ns price-day | |
(:require [clj-http.client :as client] | |
[clojure.string :as s] | |
[clojure.core.async :as a :refer [>!! >! <! <!!]] | |
[environ.core :refer [env]] | |
[taoensso.timbre :as log] | |
[taoensso.carmine :as r] | |
[clojure.string :as str])) | |
(def redis-uri (or (env :redis-uri) "redis://localhost:6379")) |
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
(ns price-minute | |
(:require [clojure.string :as s] | |
[clojure.java.io :as io] | |
[environ.core :refer [env]] | |
[clj-http.client :as client] | |
[clojure.core.async :as a :refer [>!! >! <! <!!]] | |
[taoensso.timbre :as log] | |
[taoensso.carmine :as r])) | |
(def date (java.time.LocalDate/now)) |
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
'atom-text-editor.vim-mode-plus:not(.insert-mode)': | |
'ctrl-a': 'core:select-all' | |
'ctrl-x': 'core:cut' | |
'atom-text-editor.ex-mode-editor': | |
'ctrl-c': 'core:copy' | |
'atom-text-editor.vim-mode-plus': | |
'ctrl-c': 'core:copy' | |
'atom-text-editor.vim-mode-plus-input': | |
'ctrl-c': 'core:copy' |
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 python3 | |
### Configuration ################################################ | |
CLIEN_USERID = 'XXXXXXXX' | |
CLIEN_PASSWD = 'XXXXXXXX' | |
TELEGRAM_TOKEN = '000000000:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
TELEGRAM_CHAT_ID = '000000000' | |
### End of Configuration ######################################### | |
import argparse |
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 python3 | |
### Configuration ################################################ | |
SLRCLUB_USERID = 'XXXXXXXX' | |
SLRCLUB_PASSWD = 'XXXXXXXX' | |
TELEGRAM_TOKEN = '000000000:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
TELEGRAM_CHAT_ID = '000000000' | |
### End of Configuration ######################################### | |
import argparse |
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 | |
TOKEN=********************************************* | |
CHAT_ID=******** | |
MESSAGE=$* | |
URL="https://api.telegram.org/bot$TOKEN/sendMessage" | |
curl -s -X POST $URL -d chat_id=$CHAT_ID -d text="$MESSAGE" |
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 | |
URL="rtmp://ebsandroid.ebs.co.kr:1935/fmradiofamilypc/familypc1m" | |
PROGRAM=$1 | |
RECORD_MINS=$(($2 * 60)) | |
DATE=`date +%Y%m%d` | |
FLV_FILE=`mktemp -u` | |
M4A_FILE=$DATE"_"$PROGRAM.m4a |