ghq でリポジトリ管理していて、フォルダ整理したくなったので調べながら書いたコマンド集
ghq root/github.com/hoge/fuga のような階層になっていること前提
// This file was initially generated by Windows Terminal 1.1.2021.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
// http://tateren.hateblo.jp/entry/2016/10/03/025425 を参考にしています | |
// ブクログのアカウント情報 | |
var scriptProperties = PropertiesService.getScriptProperties(); | |
var ACCOUNT = scriptProperties.getProperty('BOOKLOG_ACCOUNT'); | |
var PASSWORD = scriptProperties.getProperty('BOOKLOG_PASSWORD'); | |
function AutoRegistToBooklog() { | |
// 受信トレイにある注文メールを検索 | |
var query = "from:digital-no-reply@amazon.co.jp in:inbox" |
# keyhac config file | |
# https://crftwr.github.io/keyhac/doc/ja/index.html | |
import sys | |
import os | |
import datetime | |
import pyauto | |
from keyhac import * | |
def configure(keymap): |
ref. https://devonzuegel.com/post/twitter-backup
gem install t twurl
# copy consumer key https://developer.twitter.com/en/apps
twurl authorize --consumer-key {YOUR APP'S CONSUMER KEY} --consumer-secret {YOUR APP'S CONSUMER SECRET}
# https://stackoverflow.com/questions/45726573/ | |
function myfunc -a num | |
set -q num[1] || set num 10 | |
echo 'myfunc' $num | |
end |
// ==UserScript== | |
// @name ニコレポを見やすくするやつ | |
// @namespace https://twitter.com/hush_in | |
// @version 0.1 | |
// @description ニコレポを見やすくするやつ | |
// @author hush_in | |
// @match https://www.nicovideo.jp/my/top | |
// @grant none | |
// ==/UserScript== | |
{ |
.column:nth-child(1) { | |
width: 600px; | |
} | |
.column:nth-child(1) .item-box:not(:hover) .tweet-footer { | |
display: none; | |
} | |
.column:nth-child(1) .js-stream-item-content { | |
padding: 3px; |
find . -name "* *" -print0 | xargs -0 rename 's/ /-/g'
ls -l --time-style='+%Y-%m-%d' | grep -v total | awk '{ printf("%s %s-%s\n", $7, $6, $7) }' | xargs -n 2 mv