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 | |
exec 2>&1 | |
# These might be needed for your regular user when running it in a remote system | |
chmod a+rw /dev/dri/* | |
chmod a+rw /dev/kvm | |
chmod a+rw /dev/video0 | |
exec setuidgid myemuuser envdir /etc/service/myemu/env /home/myemuuser/android-sdk-linux/tools/emulator -avd myemu |
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 | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/command | |
exec 2>&1 | |
mkdir -p /var/log/myemu | |
chown -R myemuuser:myemuuser /var/log/myemu | |
exec envuidgid myemuuser multilog t s10485760 n5 '!tai64nlocal' /var/log/myemu |
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
/* Public domain. */ | |
#include "error.h" | |
#include "stralloc.h" | |
#include "str.h" | |
#include "env.h" | |
#include "pathexec.h" | |
static stralloc tmp; |
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
version: 0.1 | |
phases: | |
install: | |
commands: | |
- printenv | |
- npm install | |
build: | |
commands: | |
- npm run build |
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 | |
cat file.txt | tr '\r' '\n' | tr -s '\n' > file.translated.txt |
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
events: | |
- schedule: | |
name: 'MyEventName' | |
rate: cron(0 6 * * ? *) | |
enabled: true | |
input: | |
key: value |
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
functions: | |
MyLambdaFunction: | |
role: MyLambdaRole | |
handler: index.handle | |
resources: | |
Resources: | |
MyEventName: | |
Type: AWS::Events::Rule | |
Properties: | |
Description: An awesome periodic event |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"Service": [ | |
"events.amazonaws.com", | |
"lambda.amazonaws.com" | |
] |
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
{ | |
"action": "start", | |
"instanceId": "i-xxxxxxx" | |
} |
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 | |
npm install | |
zip -r ec2_start_stop.zip * |