All processes in ZSH/Bash under job control are in 3 states: foregrounded, backgrounded and suspended.
# run command in the foreground
command
# run commend in the background
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # https://toster.ru/q/72866 | |
| # How to | |
| # wget http://gist.github.com/... | |
| # chmod +x ya.py | |
| # ./ya.py download_url path/to/directory | |
| import os, sys, json |
| sudo pacman -S libmagick6 | |
| PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig gem install rmagick | |
| # or with bundler: | |
| PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig bundle install |
| <meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}"/> | |
| <meta name="robots" content="noodp"/> | |
| <link rel="canonical" href="{{ .Permalink }}" /> | |
| <!-- Twitter Card --> | |
| <meta name="twitter:card" content="summary" /> | |
| <meta name="twitter:description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" /> | |
| <meta name="twitter:title" content="{{ .Title }}{{ if .IsHome }} - {{ .Site.Params.Tagline }}{{ else }} - {{ .Site.Title }}{{ end }}" /> | |
| <meta name="twitter:site" content="{{ .Site.Params.twitter }}" /> | |
| <meta name="twitter:creator" content="{{ .Site.Params.twitter }}" /> |
| rtl_power -f 130M:170M:2.8M -g 30 -i 1 | awk -F ',' '{if ($7 > -28) print 1e-6*($3 + ($4 - $3) / 2)}' |
| # Super duper hacky. Don't expect performance. | |
| # This outputs 3200 metrics per run, looping with -c | |
| rtl_power_fftw -q -d 0 -b 160 -f 80M:120M -p 0 -c 2>/dev/null | grep + | \ | |
| awk '{print "rtl.fm-0."$1+1" "$2" "systime()}' | \ | |
| netcat GRAPHITEHOST 2003 |
| #!/bin/bash | |
| # Перекодирует рекурсивно в текущем каталоге имена | |
| # файлов и каталогов в транслит. | |
| # | |
| # Источник: http://www.ubuntu.sumy.ua/2011/03/translit.html | |
| shopt -s nullglob | |
| for NAME in * ; do | |
| TRS=`echo $NAME | sed "y/абвгдезийклмнопрстуфхцы/abvgdezijklmnoprstufxcy/"` | |
| TRS=`echo $TRS | sed "y/АБВГДЕЗИЙКЛМНОПРСТУФХЦЫ/ABVGDEZIJKLMNOPRSTUFXCY/"` |
| __author__ = 'will' | |
| __version__ = "0.1" | |
| __all__ = ["start_socket_server"] | |
| import select | |
| import socket | |
| def start_socket_server(): | |
| CONNECTION_LIST = [] | |
| BUFFER_SIZE = 1024 |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
| <title>Site Title</title> | |
| <link rel="stylesheet" href="/assets/css/style.min.css"> |
| # Let's try out a table with kramdown class tag | |
| | A simple | table | | |
| | with multiple | lines| | |
| {: .my-class } |