Based on info from http://peterdowns.com/posts/open-iterm-finder-service.html but with modified behavior and fixed to work with iTerm2 version 3 or later. It will not work with older versions of iTerm. The modified behavior is to open a new terminal window for each invocation instead of reusing an already open window. Update - The original author released a build script for the newer iTerm2 versions at https://github.com/peterldowns/iterm2-finder-tools that keeps the original behavior of reusing an open iTerm2 window.
- Run Automator, select a new Service
- Select Utilities -> Double click ‘Run AppleScript’
- Service receives selected 'folders' in 'finder.app'
- Paste script:
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/zsh | |
declare -A visited_formulas | |
check_formulas() { | |
for formula in "$@"; do | |
if [[ -z `brew uses --installed $formula` ]] && ! (( ${+visited_formulas[$formula]} )) && [[ $formula != "brew-cask" ]]; then | |
read "input?$formula is not depended on by other formulas. Remove? [Y/n] " | |
visited_formulas[$formula]=1 | |
if [[ "$input" == "Y" ]]; then |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
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
http://demo.amitjakhu.com/dripicons/ | |
http://ikons.piotrkwiatkowski.co.uk/ | |
https://github.com/danklammer/bytesize-icons |
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
Jul 08 23:26:35 deepblue-arch kernel: [Hardware Error]: Corrected error, no action required. | |
Jul 08 23:26:35 deepblue-arch kernel: [Hardware Error]: CPU:1 (19:21:0) MC7_STATUS[Over|CE|-|AddrV|PCC|-|CECC|-|Poison|Scrub]: 0xc7c7497674fda87a | |
Jul 08 23:26:35 deepblue-arch kernel: [Hardware Error]: Error Addr: 0x0000000000000000 | |
Jul 08 23:26:36 deepblue-arch kernel: [Hardware Error]: IPID: 0x0000000000000000 | |
Jul 08 23:26:36 deepblue-arch kernel: [Hardware Error]: Bank 7 is reserved. | |
Jul 08 23:26:36 deepblue-arch kernel: [Hardware Error]: cache level: L2, tx: GEN |
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
Jul 18 19:32:36 deepblue-arch kernel: [drm:dcn10_enable_timing_synchronization [amdgpu]] *ERROR* GSL: Timeout on reset trigger! | |
Jul 18 19:32:36 deepblue-arch kernel: [drm] REG_WAIT timeout 1us * 100000 tries - optc1_wait_for_state line:819 | |
Jul 18 19:32:36 deepblue-arch kernel: r8169 0000:27:00.0 enp39s0: Link is Up - 1Gbps/Full - flow control rx/tx | |
Jul 18 19:32:36 deepblue-arch kernel: ------------[ cut here ]------------ | |
Jul 18 19:32:36 deepblue-arch kernel: WARNING: CPU: 0 PID: 9 at drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:1192 dc_commit_state+0x1347/0x16f0 [amdgpu] | |
Jul 18 19:32:36 deepblue-arch kernel: Modules linked in: nls_utf8 snd_seq_dummy snd_hrtimer snd_seq rfcomm xt_MASQUERADE nf_conntrack_netlink nfnetlink iptable_nat n> | |
Jul 18 19:32:36 deepblue-arch kernel: rng_core pinctrl_amd xt_recent mac_hid acpi_cpufreq xt_limit xt_addrtype xt_tcpudp xt_conntrack nf_conntrack nf_defrag_ipv6 nf> | |
Jul 18 19:32:36 deepblue-arch kernel: CPU: 0 PID: 9 Comm: kworker/0:1H Not tainted 5.18.12-zen1-1-zen #1 |