Skip to content

Instantly share code, notes, and snippets.

View glennbech's full-sized avatar

Glenn Bech glennbech

  • Glenn Bech AS
  • Oslo
View GitHub Profile
@glennbech
glennbech / gist:9b32d8d7ca2ba2bf50fad2f100c541bd
Created March 11, 2024 00:06
Naive Terraform cardano node
provider "aws" {
region = "eu-west-1"
}
resource "aws_iam_role" "ssm_role" {
name = "SSMAccessRole"
assume_role_policy = jsonencode({
Version = "2012-10-17"
Statement = [
#!/bin/bash
# Check if an argument is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <filename.wav>"
exit 1
fi
# Input file
input_file=$1
#!/bin/bash
# Check if an argument is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <filename.wav>"
exit 1
fi
# Input file
input_file=$1
version: '3'
services:
concourse-db:
image: postgres
environment:
- POSTGRES_DB=concourse
- POSTGRES_PASSWORD=concourse_pass
- POSTGRES_USER=concourse_user
- PGDATA=/database
### Keybase proof
I hereby claim:
* I am glennbech on github.
* I am glennbech (https://keybase.io/glennbech) on keybase.
* I have a public key ASD5-5g6Ysmr4ng5MLeGm20ebJboVzRZDvZBxSKl4pJ5ogo
To claim this, I am signing this object:
final BigDecimal price = productDto.getProductType().equals(ProductType.ADDITIONAL) ?
additionalProductRepository.findOne(productDto.getProductID()).getPrice() :
productService.get(productDto.getProductID()).orElseThrow(ResourceNotFoundException::forProduct).getPrice();
;
return Subscription.builder()
.creationDate(LocalDateTime.now())
.person(user)
The documentation at
http://docs.phonegap.com/en/edge/guide_platforms_amazonfireos_index.md.html#Amazon%20Fire%20OS%20Platform%20Guide
has some issues. It is not clear what the "cordova working directory" is, and avw_inteface jar needs to be coptied to /Users/glennbech/.cordova/lib/amazon-fireos/cordova/3.5.0/framework/libs- the "commonlibs" directory is not read i seems.
If you follow instructions - this error message is given
Please download the AmazonWebView SDK from http://developer.amazon.com/sdk/fire/IntegratingAWV.html#installawv and copy the awv_interface.jar file to this folder:/Users/glennbech/.cordova/lib/amazon-fireos/cordova/3.5.0/framework/libs
// fire!!!
FixtureDef laserFix = PhysicsFactory.createFixtureDef(240f, 0, 0);
LaserBeam laserBeam = new LaserBeam(mPlayer.getX() + mPlayer.getWidth() / 2, mPlayer.getY(), mLaserTexture, getVertexBufferObjectManager());
Body laserBody = PhysicsFactory.createBoxBody(mPhysicsworld, laserBeam, BodyDef.BodyType.DynamicBody, laserFix);
laserBeam.setBody(laserBody);
laserBeam.getBody().setLinearVelocity(0, -70);
PhysicsConnector pPhysicsConnector = new PhysicsConnector(laserBeam, laserBody, true, true);
mPhysicsworld.registerPhysicsConnector(pPhysicsConnector);
laserBeam.setConnector(pPhysicsConnector);