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 |
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
| 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
| #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
| 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 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
| #!/usr/bin/env bash | |
| set -x | |
| NS="ns1" | |
| VETH="veth1" | |
| VPEER="vpeer1" | |
| VETH_ADDR="10.200.1.1" | |
| VPEER_ADDR="10.200.1.2" |
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
| # List all namespace, except for the default/global one. | |
| ip netns | |
| # Same as above, list all namespaces. | |
| ip netns list | |
| # Execute command inside a specific namespace | |
| ip netns exec <namespace_name> <command> | |
| # Sets specified interface in the specified namespace |
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 Openvswitch on ubuntu | |
| sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils | |
| sudo apt-get install openvswitch-switch | |
| #Create Namespace | |
| sudo ip netns add mario | |
| sudo ip netns add luigi | |
| #Create virtual switch | |
| sudo ovs-vsctl add-br my-switch |
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
| #!/bin/sh | |
| #Usage: | |
| # To start: acestream start [acestream_id_only] | |
| # To stop: acestream stop | |
| #Dependencies: | |
| # docker pull ikatson/aceproxy | |
| # #docker run -t -p 8000:8000 --name aceproxy ikatson/aceproxy | |
| # vlc |
OlderNewer