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
set SOURCEDIR=%~dp0wireshark | |
set OUTDIR=%~dp0build2019 | |
set PLATFORM=x64 | |
set QT5_BASE_DIR=C:\Qt\5.15.0\msvc2019_64 | |
set WIRESHARK_BASE_DIR=%~dp0wireshark-libs | |
cd /d %SOURCEDIR% | |
cmake -E time cmake -G "Visual Studio 16 2019" -S %SOURCEDIR% -B %OUTDIR% | |
cmake -G "Visual Studio 16 2019" -S %SOURCEDIR% -B %OUTDIR% |
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
set SOURCEDIR=%~dp0wireshark | |
set OUTDIR=%~dp0build | |
set PLATFORM=x64 | |
set QT5_BASE_DIR=C:\Qt\5.15.0\msvc2019_64 | |
set WIRESHARK_BASE_DIR=%~dp0wireshark-libs | |
powershell -Command "Invoke-WebRequest -Uri https://github.com/disig/SoftHSM2-for-Windows/releases/download/v2.5.0/SoftHSM2-2.5.0.msi -OutFile $Env:WIRESHARK_BASE_DIR\SoftHSM2-2.5.0.msi" | |
msiexec /qn /i %WIRESHARK_BASE_DIR%\SoftHSM2-2.5.0.msi | |
wget https://github.com/disig/SoftHSM2-for-Windows/releases/download/v2.5.0/SoftHSM2-2.5.0.msi | |
msiexec /qn /i SoftHSM2-2.5.0.msi |
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 | |
sudo true | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent |
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 | |
SCRIPT_DIR=$(cd $(dirname $0); pwd) | |
# supress EULA confirmation at setup-environment | |
EULA=y | |
cd $SCRIPT_DIR/var-fsl-yocto | |
MACHINE=imx6ul-var-dart DISTRO=fsl-imx-fb . var-setup-release.sh -b build_fb | |
bitbake -e core-image-minimal | grep ^IMAGE_FSTYPES= |
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 | |
wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > packages.google.gpg | |
sudo install -o root -g root -m 644 packages.google.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/packages.google.gpg] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
sudo apt-get install apt-transport-https | |
sudo apt-get update | |
sudo apt-get install -y google-chrome-stable |
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 | |
# https://qiita.com/m-tmatma/items/d9ceba9118d5f6c1be83 | |
if [ -e /etc/bash_completion.d/git-prompt ]; then | |
source /etc/bash_completion.d/git-prompt | |
PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] $(__git_ps1 " (%s)") \$ ' | |
fi | |
# https://qiita.com/m-tmatma/items/04456a9bd0e49bc43861 | |
alias co='git rev-parse --is-inside-git-dir > /dev/null 2>&1 \ |
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 | |
# https://qiita.com/m-tmatma/items/9a562863ca99ca6c0d1c | |
sudo apt install -y openssh-server | |
sudo systemctl start ssh | |
sudo systemctl enable ssh | |
# https://qiita.com/m-tmatma/items/7668afea91aff4fbfa85 | |
sudo apt install -y avahi-daemon | |
sudo systemctl start avahi-daemon |
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
alias co='git rev-parse --is-inside-git-dir > /dev/null 2>&1 \ | |
&& git checkout $(git branch -a | grep -v "/HEAD" | peco | sed -r "s#^\\s+remotes/origin/##" | sed -r "s#^\*\s+##")' |
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 | |
# original code is https://qiita.com/yuta-ron/items/65861ca75bd0990d0065 | |
alias dps='docker ps --format "{{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Command}}\t{{.RunningFor}}"' | |
alias dexec='docker exec -it $(dps | peco | cut -f 1) bash' | |
alias dstop='docker stop $(dps | peco | cut -f 1)' | |
alias dlogs='docker logs $(dps | peco | cut -f 1)' |
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 | |
# | |
# please install peco in advance. | |
# | |
# sudo apt install -y peco | |
# | |
coremote () { | |
remotename=`echo $1 | sed -r "s#([^/]+)/.*#\1#"` | |
branchname=`echo $1 | sed -r "s#[^/]+/##"` | |