Skip to content

Instantly share code, notes, and snippets.

View simbafs's full-sized avatar

SimbaFs simbafs

View GitHub Profile
@simbafs
simbafs / cdl-text-browser.md
Last active March 27, 2019 13:26
Linux 終端機純文字瀏覽器

#簡介&比較#

  1. w3m ==> 只支援HTML,CSS JS都不支援
  2. brow.sh ==> 用 Firefox 為基底開發,支援大部份網頁但沒有聲音全部以ASCII Art 呈現圖片(畫質不高)5分鐘自動斷線

#使用#
ssh brow.sh

#快捷鍵#
CTRL-q 離開
CTRL-l 網址列

@simbafs
simbafs / termux-git-auto-completion.md
Created March 27, 2019 13:32
Termux git 命令自動完成

依序輸入下列命令

cd ~
wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
echo ". git-completion.bash" >> .bashrc

參考來源

alias ls='ls -shC1 --color=auto'
alias tree='tree -Cha'
alias home='cd ~'
alias bin='cd ~/bin'
alias code='cd ~/git'
alias rm='rm -r'
alias cp='cp -r'
alias pwd=dirs
alias r='vi README.*'
alias ..='cd ../'
@simbafs
simbafs / ok
Last active March 28, 2019 13:23
ok
#!/bin/bash
computer="/home/simba/git/"
termux="/data/data/com.termux/files/home/git"
until [[ -d .git ]] ; do
if [[ $pwd = $computer ]] ;then
break
fi
cd ..
done
@simbafs
simbafs / fin
Created March 28, 2019 13:22
fin
#!/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
#!/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>'
@simbafs
simbafs / .vimrc
Last active November 14, 2019 15:37
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
mkdir wifi
cd wifi
echo lspci......
sudo lspci > lcpci.txt
echo dmesg......
sudo dmesg > dmesg.txt
echo lsusb......
sudo lsusb > lsusb.txt
echo lshw......
sudo lshw > lshw.txt
#include <iostream>
#include <vector>
using namespace std;
int main(){
int _n;
cin >> _n;
for(int _i; _i < _n; _i++){
int data[1005][1005] = {{}};
#include <iostream>
#include <vector>
using namespace std;
int main(){
int _n;
cin >> _n;
for(int _i; _i < _n; _i++){
int data[1005][1005] = {{}};