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
#!/usr/bin/dumb-init /bin/sh | |
set -e | |
# Note above that we run dumb-init as PID 1 in order to reap zombie processes | |
# as well as forward signals to all processes in its session. Normally, sh | |
# wouldn't do either of these functions so we'd leak zombies as well as do | |
# unclean termination of all our sub-processes. | |
# Prevent core dumps | |
ulimit -c 0 |
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
### Keybase proof | |
I hereby claim: | |
* I am petesh on github. | |
* I am anysh (https://keybase.io/anysh) on keybase. | |
* I have a public key ASAUkOe3Zy0o59kw5ZVDMomsHU5GgVIJCS_2e8ax13gPZgo | |
To claim this, I am signing this object: |
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
// Display the difference between a float being printed | |
// and a double being printed. | |
public class foo { | |
public static void main(String[] args) { | |
float valuef = 2.0f/3; | |
double valued = 2.0/3; | |
System.out.println(valuef); | |
System.out.println(valued); | |
} | |
} |
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
using System; | |
using System.Diagnostics; | |
public class simpletest | |
{ | |
static public void Main () | |
{ | |
Console.WriteLine(">>> use ls on the binary <<<"); | |
var psi = new ProcessStartInfo("/bin/ls", "-l /usr/bin/7z"); | |
var proc = new Process() { StartInfo = psi, }; |
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
using System; | |
using System.Diagnostics; | |
public class simpletest | |
{ | |
static public void Main () | |
{ | |
// start with working situation | |
var psi = new ProcessStartInfo() { | |
FileName = "/usr/bin/7z", |