This file contains hidden or 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
/* ==UserStyle== | |
@name notion-custom-fonts | |
@version 20240503.19.42 | |
@namespace https://userstyles.world/user/aquariuslt | |
@description customize your notion fonts (cjk + latin) | |
@author aquariuslt | |
@license MIT | |
==/UserStyle== */ | |
@-moz-document domain("notion.so") { | |
/* define cjk font here */ |
This file contains hidden or 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
// ==UserScript== | |
// @name script - jobcan.jp | |
// @namespace Violentmonkey Scripts | |
// @match https://ssl.jobcan.jp/employee/attendance* | |
// @grant | |
// @version 1.0 | |
// @author Nick | |
// @description 8/28/2023, 1:40:55 PM | |
// ==/UserScript== |
This file contains hidden or 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
ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4 |
This file contains hidden or 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
# For horizontal video | |
ffmpeg -i input_file_name -c:v libx264 -c:a copy -r 25 -b 3.5M -s 768x432 output_file_name | |
# For portrait video | |
ffmpeg -i input_file_name -c:v libx264 -c:a copy -r 25 -b 3.5M -s 432x768 output_file_name |
This file contains hidden or 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
-- HANDLE SCROLLING | |
local deferred = false | |
overrideRightMouseDown = hs.eventtap.new({ hs.eventtap.event.types.rightMouseDown }, function(e) | |
--print("down")) | |
deferred = true | |
return true | |
end) |
This file contains hidden or 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/zsh | |
array=(*.mkv);for i ($array){num=$(echo $i|grep -Eo "第[0-9]+"|grep -Eo "[0-9]+");ffmpeg -i $i -vn xnj$num.m4a;} |
This file contains hidden or 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
sudo update_dyld_shared_cache -force | |
qlmanage -r |
This file contains hidden or 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
# Need csvkit | |
# Ref: https://github.com/wireservice/csvkit/issues/245 | |
csvjson --stream file_1.csv >> combined.jsonl | |
csvjson --stream file_2.csv >> combined.jsonl | |
in2csv --format ndjson combined.jsonl >> combined.csv |
This file contains hidden or 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
# git-radar | |
# Installation: brew install michaeldfallen/formula/git-radar | |
# Source: https://github.com/michaeldfallen/git-radar | |
export PROMPT=' | |
%{$fg_bold[white]%}%T%{$reset_color%}\ | |
%{$fg[cyan]%} %n%{$reset_color%}\ | |
%{$fg_bold[green]%} %d%{$reset_color%}\ | |
$(git-radar --zsh --fetch) \ | |
%{$fg[white]%}[%*] $exit_code | |
%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}' |
This file contains hidden or 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
# In CLI | |
git branch --merged | grep -v "\*" | grep -v "master" | grep -v "develop" | grep -v "staging" | xargs -n 1 git branch -d | |
# As a shell alias | |
alias gbpurge='git branch --merged | grep -v "\*" | grep -v "master" | grep -v "develop" | grep -v "staging" | xargs -n 1 git branch -d' |
NewerOlder