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/sh | |
gcc -m32 test.c -o test-32bit | |
./test-32bit |
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
#include <stdio.h> | |
int main() { | |
printf ("Hello World!\n"); | |
return 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
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
val, present := os.LookupEnv("MyEnvVariable") | |
fmt.Printf("MyEnvVariable env variable present: %t\n", present) |
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
var request = require("request"); | |
var cfenv = require("cfenv") | |
var appEnv = cfenv.getAppEnv() | |
var as_cred = appEnv.getServiceCreds('as'); | |
var custom_metric_url = as_cred.custom_metrics.url+'/v1/apps/'+process.env.CF_INSTANCE_GUID+'/metrics', | |
auth = "Basic " + Buffer.from(as_cred.custom_metrics.username+ ":" +as_cred.custom_metrics.password).toString("base64"); | |
console.log('user name ='+as_cred.custom_metrics.username) | |
console.log('password ='+ as_cred.custom_metrics.password) |
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
#include <stdio.h> | |
static int* INITIAL_STATE = new int(13); | |
void printInitialState() | |
{ | |
printf("INITIAL_STATE=%d",*INITIAL_STATE); | |
} |