- Related tutorial: http://raspberrypiguide.de/
- Command Line Cheatsheet: https://gist.github.com/hofmannsven/8392477
Find all available devices arp -a
Locate Raspberry (b8:27:eb) in Network: Pi Finder
| # prerequisites: | |
| ## install software | |
| apt install mariadb-server libmariadbclient-dev sqlite3 | |
| ## install mysqlclient in virtualenv | |
| su -c 'homeassistant/bin/pip3 install mysqlclient --upgrade' -l homeassistant | |
| ## create database | |
| mysql -e 'CREATE SCHEMA IF NOT EXISTS `hass_db` DEFAULT CHARACTER SET utf8' | |
| ## create user (use a safe password please) | |
| mysql -e "CREATE USER 'hass_user'@'localhost' IDENTIFIED BY 'hass_pw'" | |
| mysql -e "GRANT ALL PRIVILEGES ON hass_db.* TO 'hass_user'@'localhost'" |
| <VirtualHost ...> | |
| ... | |
| # Reverse Proxy | |
| ProxyRequests Off | |
| #ProxyPreserveHost On | |
| RequestHeader set X-Forwarded-Proto "https" | |
| ProxyPass /blog http://blog.example.org/blog | |
| ProxyPassReverse /blog http://blog.example.org/blog | |
| ... | |
| </VirtualHost> |
| // ... | |
| let webpack = require("webpack"); | |
| mix.webpackConfig({ | |
| plugins: [ | |
| // Choose the language you want to keep (Ex: "fr") | |
| new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /fr/) | |
| ] | |
| }); |
| @echo off | |
| setlocal | |
| call :setESC | |
| cls | |
| echo %ESC%[101;93m STYLES %ESC%[0m | |
| echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m | |
| echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m | |
| echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m |
| /* | |
| Arduino 'Synth' using 8 bit Sigma-Delta DAC v0.0.0 | |
| Can be played over serial. Connect speaker to pin9 and GND. | |
| Piano keys: z s x d c v g b h n j m ; ( + shift = transpose up) | |
| Mute: space | |
| Transpose up: + | |
| Transpose down: - | |
| Change OSC FX: * |
Find all available devices arp -a
Locate Raspberry (b8:27:eb) in Network: Pi Finder
| docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt |
| javascript:void(function(){var w = 430; var h = 600; var t = (screen.height ? (screen.height - h) / 4 : 0); var l = (screen.width ? (screen.width - w) / 2 : 0); var win = window.open('https://drive.google.com/keep/','google-keep','width='+w+',height='+h+',top='+t+',left='+l+',location=no,personalbar=no,menubar=no,status=no,resizable=yes,scrollbars=yes');})(); |
| <?php | |
| class log { | |
| public $filename; | |
| public $timestamp; | |
| public $ip; | |
| public $u_agent; | |
| public $u_refer; | |
| public $ub; |
| <?php | |
| $countries = array("Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Island |