Listing posts

Displaying posts 1 - 5 of 168 in total
Useful Android apps
Last update
2018-10-17
2018
10-17
«a collection of must have android apps for many common needs»

General

Media

Games

System


~~~ * ~~~

Consigli per il proprio successo
mouse 10 · person cloud · link
Last update
2018-10-12
2018
10-12
«7 Reasons Why Smart, Hardworking People Don't Become Successful»
Cover original

successo = fn(intelligenza, luogo, carriera, relazioni, salute, fortuna)

  1. conoscere nuove persone (1/settimana?)
    • nuove idee/prospettive
  2. accogliere i cambiamenti
    • nuove opportunita'
    • spazio all'innovazione
    • bisogna essere curiosi di cio' che ci circonda
  3. accettare dei rischi
    • segui vie nuove, non seguire la sicura maggioranza
    • come sarà la tua vita qualche tra X0 anni se ora non inseguissi una tua idea?
      ti pentiresti o saresti contento?
  4. non affidarsi alle proprie credenziali ma bensi' a:
    • duro lavoro
    • strategia
    • un po' di fortuna
  5. non seguire costantemente l'ultima novità (rapidamente mutevole):
    • conoscere il valore del proprio tempo
    • non perdersi tra la marea di novità/possibilità/obiettivi
    • concentrarsi su un singolo obiettivo per volta
  6. prendere una decisione quando si hanno molte possibilità
    • fare le dovute ricerche/informarsi prima di scegliere
  7. credere in sé stessi
    • non sottostimarsi
    • non impostare standard troppo alti per sé stessi/un lavoro
    • non essere perfezionisti (non si finisce/parte mai)
    • come vorresti che fosse la tua vita tra X anni?

Quindi:

  • inizia subito a fare qualcosa per scacciare lo
    stare in attesa che succeda qualcosa da un momento all'altro
  • cosa farai oggi per avvicinarti al tuo successo?
  • quali sono le cose che ti stanno frenando?

Fonte: 7 Reasons Why Smart, Hardworking People Don't Become Successful by Melissa Chu @YouTube


~~~ * ~~~

Create a booklet or a multipage PDF from a single page one
mouse 14 · person cloud · link
Last update
2018-10-12
2018
10-12
« — »
1
2
3
4
5
6
7
8
9
10
11
12
13
# install pdftk, pdfjam & scripts
apt install pdftk texlive-extra-utils

# --- input is an A4 portrait PDF ---
pdfnup  --a4paper --scale 0.95 --nup 2x1 in.pdf # multipage
pdfbook --a4paper --short-edge           in.pdf # booklet

# --- input is an A4 landscape PDF ---
pdfnup  --a4paper --scale 0.95 --nup 1x2 --no-landscape in.pdf # multipage
pdfbook --a4paper --short-edge in.pdf # simple booklet
# better booklet (minimize blank space)
pdf90 in.pdf # or pdftk in.pdf cat 1-endwest output in-rotated90.pdf
pdfbook --a4paper --short-edge in-rotated90.pdf

~~~ * ~~~

gitconfig global file and tools
mouse 269 · person cloud · link
Last update
2018-10-05
2018
10-05
« — »
  • Setup a main config file in /etc/gitconfig or ~/.gitconfig:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[alias]
  co = checkout
  ci = commit
  st = status
  br = branch
  df = diff --staged
  cp = cherry-pick
  bd  = branch --edit-description
  bds = !GIT_EDITOR=cat git branch --edit-description | grep -v "^#"
  pom = push origin master
  lom = pull origin master
  poa = push origin alb
  loa = pull origin alb
  lst = ls-tree --full-tree -r HEAD
  hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --date=short
  histg = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
  undoci = reset --soft HEAD^
  redoci = commit -c ORIG_HEAD
  stash-unapply = !git stash show -p | git apply -R
  stash-diff = stash show -p
  ; drop all local commits and align with origin/master
  reset-om = reset --hard origin/master

[user]
  name  = Alberto Cavalin
  email = acavalin@users.noreply.github.com

[credential "https://github.com"]
  username = acavalin

[core]
  autocrlf = input
  safecrlf = true
  excludesfile = ~/.gitignore_global

[push]
  default = current

[color]
  ui = true
  • Setup the ignore list in ~/.gitignore_global:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# jEdit temporary files
*.marks
\#Untitled-*#

# Rails files (db, log, temp, cfg)
/db/*.sqlite3
/db/*.sqlite3-journal
/log/*.log
/log/*.gz
/tmp
Gemfile.lock
/config/database.yml

.DS_Store
nohup.out
  • Enhance the terminal experience:

    1
    2
    3
    [ -f "$HOME/.git-completion.bash" ] && source "$HOME/.git-completion.bash"
    [ -f "$HOME/.git-prompt.sh" ] && source "$HOME/.git-prompt.sh"
    export PROMPT_COMMAND='__git_ps1'
    
  • Install some good interfaces for git:

1
2
apt-get install tig  # ncurses-based text-mode interface
apt-get install gitg # gtk visual repository viewer
  • Look for a file in a project:
1
grep --color=always --exclude-dir=".git" -rin term . | less -R

Source: cache username/pass via StackOverflow and GitHub; dev.to git terminal

See also: When to Use Git Reset, Git Revert & Git Checkout


~~~ * ~~~

Setup Deluge torrent manager attachment
mouse 234 · person cloud · link
Last update
2018-10-05
2018
10-05
« — »
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
sudo apt-get install deluged deluge-console

# don't start at boot
sudo systemctl stop    deluged
sudo systemctl disable deluged

# now, as the desired user, create cfg files
deluged && pkill deluged

# add a new full user to deluge (10 = max level)
echo "name:password:10" >> .config/deluge/auth
deluge-console "config -s allow_remote True" # enable thin clients
pkill deluged && deluged                     # restart daemon

# install the web ui
sudo apt-get install deluge-web
deluge-web --fork
firefox http://localhost:8112/ # password: deluge

# on another host
sudo apt-get install deluge-gtk
deluge-gtk # use thin client mode, then configure connection manager

Setup an IP blocklist thanks to johntyree's quora question, useful gist and the resulting big list build by concatenating all files from bluetack in iblocklist.com.

You can use the attached deluge_manager.rb script to auto stop seeding and sort torrents by number of seeds/peers.

You can also use the Transdrone (aka Transdroid) Android app to remotely manage deluge.

Note: Since libtorrent >= 0.16 you cannot anymore set a dl/ul speed limit because it is all very well auto managed by the µTP protocol enabled by default.

You can disable it by installing the ltconfig plugin and setting:

1
2
enable_outgoing_utp = false
enable_incoming_utp = false

but it is better to keep it enabled. You can also disable TCP and let µTP do all the work by setting:

1
2
3
4
enable_outgoing_utp = true
enable_incoming_utp = true
enable_outgoing_tcp = false
enable_incoming_tcp = false

Source: Deluge HP and HP guide, HowtoGeek, tuttodinternet, kamilslab