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
# teminal set | |
export TERM=xterm-color | |
#rsync | |
function rsync_c107qzb_() { | |
rsync -avzhe 'ssh -p 22' --delete $1 [email protected]:~/tmp/mc262644/$1 | |
} | |
function rsync_dss_logan_() { | |
rsync -avzhe 'ssh -p 22' --delete $1 [email protected]:~/tmp/mc262644/$1 |
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/bash | |
set -eux | |
gittodo="-[ ] " | |
cd $1 | |
fn__donemd=_done.md | |
# yest | |
yest_yymm=$(date -v -1d '+%y%m') |
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/bash | |
# a std way to to clone author repo | |
# v0.3 | |
# set -x | |
# echoy="echo" | |
while read fromEnv; do | |
if [ "$fromEnv" != "" ]; then |
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/bash | |
# product donwload | |
# wget this | |
# source this | |
# use in cmd line // download_untar PE | |
jb_info() { | |
wget -O- https://plugins.jetbrains.com/docs/marketplace/product-codes.html | sed 's/<[^>]*>/ /g' | |
# check https://plugins.jetbrains.com/docs/marketplace/product-codes.html |
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
2 | |
do 'docker ps' to get the names and docker id for your container. | |
do 'docker exec <docker_id> -it /bin/bash' | |
this will give you bash prompt inside container. |
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
Install using tar archives | |
If snap packages are not available, unpack the pycharm-*.tar.gz file to a different folder, if your current Download folder doesn't support file execution: | |
tar xfz pycharm-*.tar.gz -C <new_archive_folder> | |
The recommended installation location according to the filesystem hierarchy standard (FHS) is /opt. To install PyCharm into this directory, enter the following command: | |
sudo tar xfz pycharm-*.tar.gz -C /opt/ | |
To verify integrity of the downloaded archive, use the SHA checksum linked from the Download page. | |
Switch to the bin subdirectory: |
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
12 | |
This microsoft WSL issue completely made it work for me. Essentially it boiled down to: | |
Abort the do-release-upgrade script | |
Re-launch Ubuntu | |
Remove lxd with: sudo dpkg --force depends -P lxd; sudo dpkg --force depends -P lxd-client | |
Finish with sudo apt upgrade |
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
Extract new Firefox tarball | |
# mkdir /opt/firefox | |
# tar xjf FirefoxSetup.tar.bz2 -C /opt/firefox/ |
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/bash | |
set -o nounset # exit if trying to use an uninitialized var | |
set -o errexit # exit if any program fails | |
set -o pipefail # exit if any program in a pipeline fails, also | |
set -x # debug mode |
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/bash | |
echo Script name: $0 | |
echo $# arguments | |
if [$# -ne 1]; | |
then echo "illegal number of parameters" | |
fi |