With this command:
sudo add-apt-repository ppa:<ppa_name>
which needs an extra software package:
- On Ubuntu >=14.04:
sudo apt-get install software-properties-common
#! /bin/sh | |
# listppa Script to get all the PPA installed on a system ready to share for reininstall | |
# From: http://askubuntu.com/questions/148932/how-can-i-get-a-list-of-all-repositories-and-ppas-from-the-command-line | |
for APT in `find /etc/apt/ -name \*.list`; do | |
grep -o "^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+" $APT | while read ENTRY ; do | |
USER=`echo $ENTRY | cut -d/ -f4` | |
PPA=`echo $ENTRY | cut -d/ -f5` | |
echo sudo apt-add-repository ppa:$USER/$PPA | |
done |
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
Webcam is connected to Raspberry Pi. This flow is written on Raspberry Pi. It captures an image every 3 hours and tweets it to your Twitter account.
#include <NewPing.h> | |
#define TRIGGER_PIN 12 // Arduino pin tied to trigger pin on the ultrasonic sensor. | |
#define ECHO_PIN 11 // Arduino pin tied to echo pin on the ultrasonic sensor. | |
#define MAX_DISTANCE 200 // Maximum distance we want to ping for (in centimeters). Maximum sensor distance is rated at 400-500cm. | |
NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); // NewPing setup of pins and maximum distance. | |
void setup() { | |
Serial.begin(115200); // Open serial monitor at 115200 baud to see ping results. |
#!/bin/bash | |
# Generates a SSL certificate, java-ready with the hardcoded ips and name. | |
# Change varibale names to suit your need, you can do JAVA_HOME=$JAVA_HOME too. | |
JAVA_HOME=/usr/lib/jvm/java-8-oracle | |
CERT_NAME="yurimdias" | |
STOREPASS="changeit" | |
KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts | |
CERTIFICATE_PATH=./$(echo $CERT_NAME) |
#generate server and client keystore | |
keytool -genkeypair -alias server -keyalg RSA -dname "CN=Server,OU=Development,O=Test,L=Shanghai,S=SH,C=CN" -keystore server.keystore | |
keytool -genkeypair -alias client -keyalg RSA -dname "CN=Client,OU=Development,O=Test,L=Shanghai,S=SH,C=CN" -keystore client.keystore | |
keytool -list -keystore server.keystore | |
#copy server certificate into client.keystore | |
keytool -exportcert -alias server -file server-pub.cer -keystore server.keystore | |
keytool -importcert -alias server -file server-pub.cer -keystore client.keystore | |
keytool -list -keystore client.keystore |
import java.util.*; | |
import java.io.*; | |
import java.security.*; | |
public class ChangePassword | |
{ | |
private final static JKS j = new JKS(); | |
public static void main(String[] args) throws Exception | |
{ |
function render() { | |
aleph = Blockly.svg.cloneNode(true); | |
aleph.removeAttribute("width"); | |
aleph.removeAttribute("height"); | |
aleph.removeChild(aleph.children[0]); | |
aleph.removeChild(aleph.children[1]); | |
aleph.removeChild(aleph.children[1]); | |
if (aleph.children[0].children[1].children[0] !== undefined) { | |
aleph.children[0].removeChild(aleph.children[0].children[0]); | |
aleph.children[0].children[0].removeAttribute("transform"); |
AR \ BC | Check in | Drop L. | Passp. C | Board | Transit | | |
----------+----------+---------+----------+-------+---------+ | |
Passenger | Y | | Y | Y | | | |
----------+----------+---------+----------+-------+---------+ | |
Luggage | Y | Y | | | Y | | |
----------+----------+---------+----------+-------+---------+ | |
Flight | Y | | | | | | |
----------+----------+---------+----------+-------+---------+ | |
Three bounded contexts: |