Listing posts

Displaying posts 181 - 185 of 328 in total
Record what you hear with pulseaudio attachment
mouse 1210 · person cloud · link
Last update
2019-07-22
2019
07-22
« — »
1
2
3
4
5
6
7
8
# identify your speakers monitor
pacmd list-sources | grep "name.*monitor"

# record audio to RAW WAV file
parec --format=s24le -d alsa_output.pci-xxxx_yy_zz.w.analog-stereo.monitor raw.wav

# encode output with opus
opusenc --raw --raw-bits 24 --raw-rate 44100 --bitrate 24 raw.wav out.opus

See attached script for a pipe-file solution that integrates above commands.


Source: askubuntu.com


~~~ * ~~~

Git manage branches
mouse 1477 · person cloud · link
Last update
2019-07-08
2019
07-08
« — »
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
git checkout -b <branch>          # create branch
git push -u origin <branch>       # push branch to remote

# pull the new branch from another pc:
git fetch                         # download all data
git branch -v -a                  # shows avaiable branches
git checkout <branch>

# delete branch
git push origin :<branch>         # remote
git branch -d <branch>            # local

# rename branch
git branch -m old-name new-name       # local
git push -u origin :old-name new-name # remote

~~~ * ~~~

Fare il gelato senza gelatiera
mouse 1680 · person cloud · link
Last update
2019-07-02
2019
07-02
« — »

In ambo le ricette è possibile inserire un sapore a piacere, ad esempio:

  • cacao amaro
  • scaglie/gocce di cioccolato
  • amarene sciroppate
  • sciroppo preferito
  • granella di pistacchi

Ricetta rapida (senza mescolamenti intermedi)

Ingredienti:

  • 500ml di panna fresca
  • 350gr di latte condensato

Procedimento:

  • Mescolare tutti gli ingredienti con uno sbattitore e mettere in frigo per almeno 2 ore

Ricetta allo yoghurt (con mescolamenti intermedi)

Ingredienti:

  • 250ml yogurt greco intero
  • 200ml panna fresca
  • 150gr zucchero

Procedimento:

NB: Usare ingredienti e contenitori freddi da frigo, contenitore finale da freezer.

  1. Montare a parte la panna con uno sbattitore
  2. Amalgamare yogurt e zucchero
  3. Unire alla panna senza farla smontare (sbattitore a bassa velocità)
  4. Mettere in freezer per 4 ore mescolando ogni 30 minuti

Fonte: Blog Giallozafferano per gelato yogurt, latte condensato 1 e 2


~~~ * ~~~

Windows tabbed console attachment
mouse 1265 · person cloud · link
Last update
2019-06-21
2019
06-21
«ConsoleZ is a fork of Console2
+ optional MidnightCommander config»

My ConsoleZ setup with git bash for windows

  1. download and install git bash
  2. download and install ConsoleZ
  3. gunzip and copy the attached config file to /c/Users/user_name/AppData/roaming/Console to have:
    • default git bash session
      • icon: C:\Program Files\Git\git-bash.exe
      • shell: %windir%\system32\cmd.exe /c ""C:\Program Files\Git\bin\sh.exe" --login -i"
    • LucidaConsole font with ClearType
    • 10000 rows buffer size
    • auto save position and size
    • shortcuts:
      • Ctrl+Shift+T to create new tab
      • Shift+LArr/RArr to switch tab left/right
      • Ctrl+# to switch to tab number #
      • Ctrl+Alt+S to rename tab
      • Ctrl+0/+/- to zoom font
      • Ctrl+Ins / Shift+Ins to copy/paste
      • Shift+Click&Move to select and copy text
      • Ctrl+Click&Move to move window
      • MiddleClick (bt#3) to paste

Midnight commander setup

  • download MC for windows and install it into C:\Programmi\mc

  • append this in $HOME/.bash_profile:

1
2
alias mc=". $HOME/bin/mc-wrapper.sh"
export EDITOR=/usr/bin/nano
  • create $HOME/bin/mc-wrapper.sh:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
MC_USER=`id | sed 's/[^(]*(//;s/).*//'`
MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
/c/Programmi/mc/mc -P "$MC_PWD_FILE" "$@"

if test -r "$MC_PWD_FILE"; then
  MC_PWD="`cat "$MC_PWD_FILE"`"
  if test -n "$MC_PWD" && test -d "$MC_PWD"; then
    cd "$MC_PWD"
  fi
  unset MC_PWD
fi

rm -f "$MC_PWD_FILE"
unset MC_PWD_FILE
unset MC_USER
  • MC > Options > Config > check_box_outline_blank Use internal editor

Source: ConsoleZ, old Console2


~~~ * ~~~

Esercizi per stretching/allungamento schiena attachment
mouse 23774 · person cloud · link
Last update
2019-06-08
2019
06-08
«lombari
parte bassa schiena»


  • Rispettare riscaldamento e respirazione, evitare movimenti bruschi ed eccessivi allungamenti.
  • Si alleviano le tensioni e migliora l'elasticità della muscolatura paravertebrale e lombare.
  • Vanno bene anche quando l'infiammazione ed il dolore non sono ancora passati del tutto.
descrizione esempio
3 volte, per 20 secondi
5 volte, incurvare verso l'alto espirando tutta l'aria, ritornare inspiarando
5 volte, gambe divaricate, piegarsi espirando, ritornare inspiarando
glutei sui talloni, allungarsi espirando, ritornare inspiarando. ripetere allungando a dx e sx.
per 20 secondi, 1 volta per gamba
per 15-20 secondi, 1 volta per gamba
per 20-30 secondi, 1 volta per lato

Farmaci prescritti durante la sciatica:

  • tachipirina*16cpr 1000mg (paracetamolo), 1 confezione
  • muscoril punture intramuscolo 6 fiale 4mg 2ml, 1 al giorno, 1 confezione

Fonte: my-personaltrainer.it