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
# ubuntu22.04 on WSL of Win11 | |
cd | |
sudo apt-get update | |
PKGS="python3-pip\ | |
libgl1-mesa-glx\ | |
libxkbcommon-x11-0\ | |
libxcb-icccm4\ |
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/sh | |
# A shell script to enable sudo by "Touch ID" on macOS | |
# tested on macOS 11.6 Big Sur | |
TARGET_FILE=/etc/pam.d/sudo | |
# skip if it is not run on macOS | |
if [ 'Darwin' != `uname` ]; then | |
echo "not on macOS platform. exit." | |
exit 0 | |
fi |
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
{ | |
"key1": 1 | |
"key2": 2 | |
} |
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/sh | |
screen -list | head -n -2 | tail -n +2 | cut -f1 -d'.' | cut -f2 | xargs -n 1 pstree -p | grep "^screen" |
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/bash | |
# https://github.com/nodesource/distributions/blob/master/README.md#rpm | |
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash - | |
sudo yum install -y nodejs | |
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/bash | |
https://docs.docker.com/install/linux/docker-ce/centos/ | |
sudo yum remove docker \ | |
docker-client \ | |
docker-client-latest \ | |
docker-common \ | |
docker-latest \ | |
docker-latest-logrotate \ |
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
# screenrc | |
# | |
# see also | |
# | |
# arch linux wiki | |
# https://wiki.archlinux.org/index.php/GNU_Screen | |
# GNU Screen manual | |
# https://www.gnu.org/software/screen/manual/screen.html#Overview | |
# scroll buffer (press Ctrl-J esc to enter copy-mode, press ESC to leave copy-mode) |
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
javascript:(function(){var a=window;b=document;c=encodeURIComponent;s=a.parent.screen;d=a.open("http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+c(b.location)+"&title="+c(b.title),"_b1","width="+.8*s.width+",height="+.8*s.height+",resizable=1,alwaysRaised=1");a.setTimeout(function(){d.focus()},100)})(); |
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
1. disable | |
``` | |
$ sudo nvram SystemAudioVolume=%80 | |
``` | |
2. enable | |
``` | |
$ sudo nvram-d SystemAudioVolume | |
``` |
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/sh -x | |
rm -rf /opt/rhino | |
sed -i -e "s/\/opt\/rhino\/rish//g" /etc/shells |
NewerOlder