Skip to content

Instantly share code, notes, and snippets.

View thvinmei's full-sized avatar

T.H. thvinmei

View GitHub Profile
[Unit]
Description=Jupyter notebook
[Service]
Type=simple
ExecStart=/home/MYUSERNAME/.local/bin/jupyter-notebook --ip=* --config=/home/MYUSERNAME/.jupyter/jupyter_notebook_config.py --no-browser
User=MYUSERNAME
Group=MYGROUPNAME
WorkingDirectory=/home/MYUSERNAME
Restart=always
@thvinmei
thvinmei / Kinniku2Slack.gs
Last active October 22, 2022 17:10
Slackに筋肉体操からランダムな1つを選択して投稿するスクリプト
var properties = PropertiesService.getScriptProperties();
function Kinniku2Slack() {
// Google App Script で実行
// 実行時にNHKの「筋肉体操」からランダムに1つ選んで
// Slackの指定チャンネルに書き込む。
var yesterday = loadCount()
//番組数までの乱数生成
var today = Math.floor( Math.random() * 4 );
@thvinmei
thvinmei / .gitconfig
Last active October 7, 2018 06:16
Gitを使うために設定しているエイリアスとか
[user]
name = ***
email = ***
[core]
editor = emacs
excludesfile = /home/****/.gitignore_global
[commit]
template = /home/****/.git_template
[help]
autocorrect = 1