This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Install packages: | |
| $ sudo apt-get update | |
| $ sudo apt-get upgrade | |
| $ sudo apt-get install avahi-daemon | |
| #Assuming your hostname is "raspberrypi" it is now available at: raspberrypi.local | |
| #If you want to change hostname: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.security.KeyPair; | |
| import java.security.KeyPairGenerator; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.PrivateKey; | |
| import java.security.PublicKey; | |
| import javax.crypto.Cipher; | |
| public class Sample { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Install docker script | |
| curl -sSL https://get.docker.com |sh | |
| #Get docker up and running | |
| - Start docker: | |
| ``` | |
| $ sudo systemctl start docker | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE USER locmess WITH PASSWORD 'password'; | |
| CREATE DATABASE locmess_db; | |
| \connect locmess_db; | |
| CREATE SCHEMA AUTHORIZATION locmess; | |
| GRANT ALL PRIVILEGES ON DATABASE locmess_db TO locmess; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/etc/dhcpcd.conf | |
| # Example static IP configuration: | |
| interface eth0 | |
| static ip_address=192.168.1.2/24 | |
| #static ip6_address=fd51:42f8:caae:d92e::ff/64 | |
| static routers=192.168.1.1 | |
| static domain_name_servers=8.8.8.8 8.8.4.4 fd51:42f8:caae:d92e::1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #MacOS Usefull Tools for developers | |
| xcode-select --install | |
| #HomeBrew - Best package manager for macOS aka linux apt-get | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew install wget | |
| brew install git | |
| brew install postgresql |
NewerOlder