sudo nmcli dev wifi hotspot ifname wlan0 con-name "my-hotspot" ssid "my-hotspot" password "My HotsPoT Strong Password"
More info here
| https://www.evilbox.ro/linux/how-to-monitor-mustek-powermust-2012-ups-with-ubuntu-server-14/ |
| # kudos to https://github.com/drewlesueur | |
| # stolen from here: https://github.com/blog/266-fast-forward-your-fork#comment-11535 | |
| git checkout -b upstream-master | |
| git remote add upstream git://github.com/documentcloud/underscore.git | |
| git pull upstream master | |
| git checkout master // [my master branch] | |
| git merge upstream-master | |
| git push origin master |
sudo nmcli dev wifi hotspot ifname wlan0 con-name "my-hotspot" ssid "my-hotspot" password "My HotsPoT Strong Password"
More info here
| # This is just a cheat sheet: | |
| # On production | |
| sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
| # On local | |
| scp -C production:~/database.sql.gz | |
| dropdb database && createdb database | |
| gunzip < database.sql.gz | psql database |
Hay que seguir las notas en https://docs.docker.com/installation/ para el sistema operativo que esten ejecutando.
Vamos a utilizar un container ya listo para trabajar con Postgresql. El siguiente comando se encarga de descargar el container y de ejecutarlo. Si es necesario cambiar el valor de las variables POSTGRES_PASSWORD y POSTGRES_USER a unos más adecuados
$ docker run --name db -e POSTGRES_PASSWORD=manager -e POSTGRES_USER=rails -d postgres
| #!/bin/bash | |
| echo "Recording, press ctrl+c to stop..." | |
| arecord -D "plughw:1,0" -q -f cd -t wav | ffmpeg -loglevel panic -y -i - -ar 16000 -acodec flac speech.flac > /dev/null 2>&1 | |
| echo "Processing..." | |
| wget -q -U "Mozilla/5.0" --post-file speech.flac --header "Content-Type: audio/x-flac; rate=16000" -O - "http://www.google.com/speech-api/v1/recognize?lang=en-us&client=chromium" | cut -d\" -f12 > speech.txt | |
| echo -n "You said: " | |
| cat speech.txt |
| /* | |
| Arduino UNO reads rising edge trigger pulses on pin 2 and displays counter on | |
| Sparkfun SerLCD LCD-10097 | |
| Photo of setup: http://ompldr.org/vZGNlbA/photo.JPG | |
| Pariksheet <[email protected]> Mar 2012 | |
| */ | |