Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python3
import sys
import re
#コマンドライン引数
args = sys.argv
src_url=args[1]
#amazon~dpまでを削除
@TB-O-gh
TB-O-gh / screenshot-interval.py
Created November 24, 2019 02:23
スクリーンショット連打スクリプト
#!/usr/bin/python3
# クスリーンショット連射
# インポート
import subprocess
import time
# 変数宣言
File_Number=1
@TB-O-gh
TB-O-gh / rename_suffix.sh
Created November 24, 2019 02:12
拡張子一括変更スクリプト
#!/usr/bin/bash
set -e
for list in `ls -1 ./*.$1`;do
basenameline=`basename $list .$1`
mv $basenameline.$1 $basenameline.$2
done
@TB-O-gh
TB-O-gh / platex_my_skeleton.sh
Created September 7, 2019 01:25
プレーンテキストから自分用のplatexソースコードを生成
#!/bin/bash
echo '\documentclass[twocolumn,a4paper,12pt]{tarticle}'
echo '\begin{document}'
echo ''
cat $1 |sed -e "s/\$/\\\newline/"|sed -e "s/\$「/\\\noindent「/"
echo ''
echo '\noindent* 奥付\newline'
echo 'タイトル\newline'
echo '著者\newline'
echo 'サークル\newline'
@TB-O-gh
TB-O-gh / pop_alarm.py
Created July 16, 2019 08:35
Gnome3環境でアラームをセットする。
#!/usr/bin/python3
from gi.repository import Notify
from time import sleep
timer = 5
title = "アラーム"
message = "アラーム内容"
sleep(timer)
@TB-O-gh
TB-O-gh / name-numbaring.sh
Last active July 9, 2019 13:19
ファイルの連番リネームスクリプト
#!/usr/bin/bash
# ディレクトリのファイルを連番ファイルとしてリネームする。
set -e
suffix='jpg'
if [ $# = 0 ]
start_number=0
else
start_number=$1