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 | |
# author: SimbaFs | |
# reference: https://github.com/aseprite/aseprite/blob/3ea0437e1dd92b939ff103e5e775397f345cfa52/INSTALL.md | |
# Define variables | |
SKIA_DIR="$HOME/deps/skia" | |
NINJA_URL="https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip" | |
SKIA_URL="https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-Linux-Release-x64-libc++.zip" | |
ASEPRITE_REPO="https://github.com/aseprite/aseprite.git" |
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 | |
# author: simbafs | |
# date: 2022-08-30 | |
# MIT License | |
IPFS="${IPFS:-$(which ipfs)}" | |
KEY="${KEY:-q8s}" | |
# this line will be changed by the script | |
PKEY="${PKEY:-"k51qzi5uqu5dg9y6e55vjfb583rdoshtko6qizgk7nde9ybm9gyor5ujpfb9m2"}" | |
DIR="${DIR:-.}" |
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
# example: /usr/share/doc/tmux/examples/ | |
# {{{ screen-keys.conf | |
# $Id: screen-keys.conf,v 1.7 2010/07/31 11:39:13 nicm Exp $ | |
# | |
# By Nicholas Marriott. Public domain. | |
# | |
# This configuration file binds many of the common GNU screen key bindings to | |
# appropriate tmux key bindings. Note that for some key bindings there is no | |
# tmux analogue and also that this set omits binding some commands available in | |
# tmux but not in 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 | |
# credit: simba-fs | |
# | |
# color | |
BLUE='\033[1;34m' | |
NC='\033[0m' # No Color | |
wireless=0 | |
ip=192.168.43.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
name: Hexo | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: |
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
ifconfig | egrep 'inet ' | sed 's/ inet //' | sed 's/ netmask .*//' |
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
declare -a cmd; | |
cmd+=('sudo apt update') | |
cmd+=('sudo apt install -y nmap net-tools mtr') | |
for i in ${!cmd[@]};do | |
echo "> ${cmd[$i]}" | |
${cmd[$i]} | |
done |
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
syntax on | |
set showcmd | |
" blue default desert evening koehler murphy peachpuff ron slate zellner | |
" darkblue delek elflord industry morning pablo README.txt shine torte javascript | |
colorscheme koehler | |
set nu | |
set tabstop=4 | |
set shiftwidth=4 | |
set autoindent |
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 | |
tmux new-session -d -s ckcsc | |
tmux new-window -t ckcsc:0 -n 'ckcsc' 'cd ~/git/ckcsc; npm start' | |
# split npm start | |
tmux select-pane -t ckcsc:0.0 | |
tmux split-pane -p 1 | |
tmux send-keys 'cd ~/git/ckcsc; npm start<enter>' |
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 | |
if [ $#=1 ];then | |
message="change something" | |
else | |
message=$2 | |
fi | |
if [ "x$1" = "x" ];then | |
echo "error:You can't miss [file name]" | |
else |
NewerOlder