atom
Comment toggle
CTRL + /
Select row
CTRL + L
Move row
CTRL + arrows
Clipboard
history
CTRL + ALT + H
Newline
bottom
ALT + Enter
background
blocky
Settings > Color Profile > Use sRGB color profile
bash
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
apt-get
purge
sudo apt-get purge ...
architecture
add
sudo dpkg --add-architecture i386
list
dpkg --print-foreign-architectures
remove
sudo dpkg --remove-architecture i368
bashrc
source
. ~/.bashrc
debian
install
sudo dpkg -i filename.deb
delete
line beginning
CTRL-U
line end
CTRL-K
filesystem
move rename
mv old_file new_file
remove directory
rm -R folder
remove file
rm filename
gem
list
gem list
list
gem list | grep github
uninstall
gem uninstall addressable --version 2.6.0
update
gem update github-pages
history
execute command n
!n
execute last command
!!
list
history
install
run
cd folder/file.run
chmod -x file.run
./file.run
keyboard
events end
CTRL-C
events start
xev
keymap
file
/usr/share/X11/xkd/symbols
list
xmodmap -pke
settings
setxkbmap -print -verbose 10
move
line beginning
CTRL-A
line end
CTRL-E
rvm
warning
`rvm reset` for the last warning
tar
gz
tar -zxvf filename.gz
xz
tar -xvf filename.xz
versions
linux
lsb_release -a > Ubuntu 18.04.2 LTS bionic
virtual_terminal
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
browser
Dom
shadow
about:config
devtools.inspector.showAllAnonymousContent
cmus
update tags
:update-cache -f
:colorscheme
in usr/scahr/cmus/
kill
killall cmus
library
add
:add Music
clear
:clear
play
continue
`C`
repeat
`R`
shuffle
`S`
volume
+/-
playlist
add
`y`
remove
`D`
song
pause
C
play
Enter
scrubble
Left, Right
ghostscript
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
git
commit
unpushed view
git log @{push}..
unpushed view
git origin/master..HEAD
grub
backup
cp /etc/default/grub /etc/default/grub.bak
open
sudo nano /etc/default/grub
compile
sudo update-grub
version
grub-install --version
jekyll
toc
* toc
{:toc}
css
never ever use /assets/css/style.xxx
VSC
jekyll serve --watch --livereload
date
date to rfc822
{{ site.date | date_to_rfc822 }}
filetype
liquid
core:
customFileTypes:
'text.html.liquid': [
'html'
]
install
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
kill
error
Address already in use
script
ps aux | grep jekyll
petrosh 1637 ...
petrosh 31232 ...
kill -9 1637
regexp
optional
^>>>(>)?(\s)?(\n)?
sass
media query
@media (max-width: 768px)
a
display: block
mobile
main
max-width: 38rem;
padding: 2rem;
margin: auto;
gradient
border
background: linear-gradient(to top, rgba(255,255,0,.2) 1px, transparent 1px)
tmux
clipboard
copy from system
"+p
configuration
file
~/.tmux.conf
run
CTRL-B I
options
show bindings
tmux list-keys
show global
tmux show-options -g
show window
tmux show-options -gw
panel
arrows
CTRL-B arrows
close
CTRL-B (y)
close
CTRL-B d
next
CTRL-B o
previous
CTRL-b ;
show number
CTRL-B q
scroll
enter
CTRL-[
exit
q
session
attach
tmux a
exit
CTRL-B d
list
tmux ls
open
tmux a -t session_name
split
horizontally
CTRL-B %
vertically
CTRL-B "
zoom
toggle zoom
CTRL-B z
ubuntu
shortcuts
desktop
Super+D
vim
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)
case
character lower
vu
character upper
vU
html
close tag
(string) Ctrl-c
open tag
(string) Ctrl-o
move
file begin
1G
file end
G
paragraph down
}
paragraph up
{
save
write
:wa
write exit
:xa
terminal
conquer
ConqueTermSplit jekyll s
vimrc
edit
~$ vim .vimrc
map insert
imap <C-W> <Esc>:wa<CR>
map write
map W :wa<CR>
youtube-dl
upgrade
pip install --upgrade youtube-dl
download
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