sudo apt-get update
sudo apt-get install gnome-session gnome-shell-extension-manager gdm3
> select gdm3 in config windowsudo dpkg-reconfigure gdm3
> select gdm3 in config window
sudo rebootsudo apt-get update
sudo apt-get install gnome-session gnome-shell-extension-manager gdm3
> select gdm3 in config windowsudo dpkg-reconfigure gdm3
> select gdm3 in config window
sudo reboot| #!/bin/bash | |
| # Split PDF files into multiple files with a specified number of pages. | |
| # Usage: ./split_pdf.sh [increment] [directory] | |
| # | |
| increment=${1:-5} | |
| directory=${2:-"."} | |
| for file in "$directory"/*; do |
| I have Lua script that manipulates cookies and headers based at GET parameters. | |
| This script didnt work well at one location, strangely the ngx.var.args was empty with ordinary request. | |
| The trick was that in location we have: | |
| location /x/ { | |
| header_filter_by_lua_file /etc/nginx/lua/referrer_cookie.lua; | |
| rewrite ^/x/(.*) /$1 break; | |
| try_files $uri /x/index.htm; |
| #!/bin/bash | |
| function fzf_container() { | |
| docker container ls -a | fzf -m | awk '{print $1}' | |
| } | |
| function fzf_running_container() { | |
| docker ps | fzf -m | awk '{print $1}' | |
| } | |
| function container() { |
I wanted to visual select code blocks inside markdown files, so I wrote this pretty simple script.
Someone might find it useful.
You can change the symbols as you like in searchpos, but this only works for multiple lines.
function! InsideTicks()
call searchpos('`', 'b')
normal! jv
call searchpos('`', 'W')
normal! be
| [Unit] | |
| Description=Job that runs the python SimpleHTTPServer daemon | |
| Documentation=man:SimpleHTTPServer(1) | |
| [Service] | |
| Type=simple | |
| WorkingDirectory=/tmp/letsencrypt | |
| ExecStart=/usr/bin/python -m SimpleHTTPServer 80 & | |
| ExecStop=/bin/kill `/bin/ps aux | /bin/grep SimpleHTTPServer | /bin/grep -v grep | /usr/bin/awk '{ print $2 }'` |
| #!/usr/bin/env python | |
| """ | |
| Very simple HTTP server in python. | |
| Usage:: | |
| ./dummy-web-server.py [<port>] | |
| Send a GET request:: | |
| curl http://localhost |
#Unix Toolbox
##Unix Toolbox revision 14.4
| --- ----------------- ---- | |
| Map Quick Explanation Link | |
| --- ----------------- ---- | |
| < <F1> Causes Netrw to issue help | |
| <cr> Netrw will enter the directory or read the file |netrw-cr| | |
| <del> Netrw will attempt to remove the file/directory |netrw-del| | |
| <c-h> Edit file hiding list |netrw-ctrl-h| | |
| <c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l| | |
| <c-r> Browse using a gvim server |netrw-ctrl-r| | |
| <c-tab> Shrink/expand a netrw/explore window |netrw-c-tab| |