This file contains 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/bash | |
if [ -z $1 ]; then | |
echo "Usage : "$0" http://passenger_address" | |
else | |
echo "address to call: "$1 | |
passenger-status --verbose | grep 'Password:' | cut -d ':' -f2 | while read line; do | |
echo "Calling : "$line # Passenger instance password | |
curl --header "X-Passenger-Connect-Password: "$line $1 > /dev/null 2>&1 |
This file contains 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
package ch.hegarc.ig.person; | |
import ch.hegarc.ig.person.business.Person; | |
public class Main { | |
public static void main(String[] args) { | |
Person p1 = new Person(1, "Bastien", "Gysler"); | |
p1.print(); |
This file contains 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
package ch.hegarc.ig.person.business; | |
public class Person { | |
private Integer number; | |
private String firstName; | |
private String lastName; | |
public Person() { | |
this(null, null, null); |
NewerOlder