-
shell
-
echo $SHELL
-
usb
-
lsusb
-
release
-
lsb_release -a
-
alias
-
alias lll='ll --group-directories-first'
-
alias
-
alias celsius="paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/'"
-
youtube dl
-
youtube-dl --extract-audio --audio-format mp3 -o 'FOLDER/playlist/%(title)s.%(ext)s' url
-
fonts
-
fc-match -a
-
purge
-
sudo apt-get purge ...
-
add
-
sudo dpkg --add-architecture i386
-
list
-
dpkg --print-foreign-architectures
-
remove
-
sudo dpkg --remove-architecture i368
-
source
-
. ~/.bashrc
-
install
-
sudo dpkg -i filename.deb
-
line beginning
-
CTRL-U
-
line end
-
CTRL-K
-
move rename
-
mv old_file new_file
-
remove directory
-
rm -R folder
-
remove file
-
rm filename
-
list
-
gem list
-
list
-
gem list | grep github
-
uninstall
-
gem uninstall addressable --version 2.6.0
-
update
-
gem update github-pages
-
execute command n
-
!n
-
execute last command
-
!!
-
list
-
history
-
run
-
cd folder/file.run
chmod -x file.run
./file.run
-
events end
-
CTRL-C
-
events start
-
xev
-
file
-
/usr/share/X11/xkd/symbols
-
list
-
xmodmap -pke
-
settings
-
setxkbmap -print -verbose 10
-
line beginning
-
CTRL-A
-
line end
-
CTRL-E
-
warning
-
`rvm reset` for the last warning
-
gz
-
tar -zxvf filename.gz
-
xz
-
tar -xvf filename.xz
-
linux
-
lsb_release -a > Ubuntu 18.04.2 LTS bionic
-
apply
-
setupcon
-
close
-
chvt 2
-
configure
-
sudo dpkg-reconfigure console-setup
-
keys
-
CTRL+ALT+F(1-6)
-
list
-
who -la
-
open
-
kill xxxx
-
open
-
sudo chvt 3
-
shadow
-
about:config
devtools.inspector.showAllAnonymousContent
-
update tags
-
:update-cache -f
-
:colorscheme
-
in usr/scahr/cmus/
-
kill
-
killall cmus
-
add
-
:add Music
-
clear
-
:clear
-
continue
-
`C`
-
repeat
-
`R`
-
shuffle
-
`S`
-
volume
-
+/-
-
add
-
`y`
-
remove
-
`D`
-
pause
-
C
-
play
-
Enter
-
scrubble
-
Left, Right
-
merge
-
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=detonazione.pdf *-*.pdf
-
optimize
-
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
-
fonts
-
strings GUR*.pdf | grep FontName
-
unpushed
view
-
git log @{push}..
-
unpushed
view
-
git origin/master..HEAD
-
backup
-
cp /etc/default/grub /etc/default/grub.bak
-
open
-
sudo nano /etc/default/grub
-
compile
-
sudo update-grub
-
version
-
grub-install --version
-
toc
-
* toc
{:toc}
-
css
-
never ever use /assets/css/style.xxx
-
VSC
-
jekyll serve --watch --livereload
-
date to rfc822
-
{{ site.date | date_to_rfc822 }}
-
liquid
-
core:
customFileTypes:
'text.html.liquid': [
'html'
]
-
new
-
sudo apt remove ruby bundler jekyll --purge
rm -rf ~/.gem ~/.ruby ~/.rvm
sudo apt clean && sudo apt autoremove && sudo apt autoclean
sudo apt update && apt upgrade
sudo apt-get install ruby-full build-essential zlib1g-dev
gem install jekyll bundler
gem install github-pages
gem uninstall jekyll --version 4.1.1
jekyll -v
-
error
-
Address already in use
-
script
-
ps aux | grep jekyll
petrosh 1637 ...
petrosh 31232 ...
kill -9 1637
-
optional
-
^>>>(>)?(\s)?(\n)?
-
media query
-
@media (max-width: 768px)
a
display: block
-
mobile
-
main
max-width: 38rem;
padding: 2rem;
margin: auto;
-
border
-
background: linear-gradient(to top, rgba(255,255,0,.2) 1px, transparent 1px)
-
syntax
-
set syntax=liquid
-
syntax
-
set filetype=liquid
-
tabs
-
set tabstop =4 (tab width)
set softtabstop =4 (white space)
set shiftwidth =4 (whitespace)
set expandtab (use spaces instead of tab)
-
character lower
-
vu
-
character upper
-
vU
-
close tag
-
(string) Ctrl-c
-
open tag
-
(string) Ctrl-o
-
file
begin
-
1G
-
file
end
-
G
-
paragraph
down
-
}
-
paragraph
up
-
{
-
add
-
:tabe filename
-
link
-
http://vim.wikia.com/wiki/Using_tab_pages
-
next
-
gt
-
open
-
vim -p filename
-
previous
-
gT
-
link
-
http://stackoverflow.com/questions/1497958/how-do-i-use-vim-registers
-
list
-
:reg
-
paste
-
"xp (paste register x)
-
write
-
:wa
-
write exit
-
:xa
-
conquer
-
ConqueTermSplit jekyll s
-
edit
-
~$ vim .vimrc
-
map insert
-
imap <C-W> <Esc>:wa<CR>
-
map write
-
map W :wa<CR>
-
upgrade
-
pip install --upgrade youtube-dl
-
audio
-
~/Music:$ youtube-dl --extract-audio --audio-format mp3 -o 'FOLDER/playlist/%(title)s.%(ext)s' url
-
best
-
youtube-dl -f best url
-
playlist
-
youtube-dl -i PLwJ2VKmefmxpUJEGB1ff6yUZ5Zd7Gegn2