Skip to content

Instantly share code, notes, and snippets.

View kristianpaul's full-sized avatar

Cristian Paul Peñaranda Rojas kristianpaul

View GitHub Profile
>>> len((('foo','1'),('fii','2')))
2
>>> len(('foo','1'),)
2
INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.500 s
[INFO] Finished at: 2020-05-17T21:58:28Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project fargate-load-balanced-service: There are test failures.
[ERROR]
[ERROR] Please refer to /home/runner/work/aws-cdk-examples/aws-cdk-examples/java/ecs/fargate-load-balanced-service/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
@kristianpaul
kristianpaul / segfault.py
Created December 19, 2019 13:36 — forked from coolreader18/segfault.py
Make CPython segfault in 5 lines of code.
class E(BaseException):
def __new__(cls, *args, **kwargs):
return cls
def a(): yield
a().throw(E)
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "logs:CreateLogGroup",
"Resource": "*"
}
@kristianpaul
kristianpaul / gist:c11a3f588f834756979bd13b3669ef89
Last active March 4, 2024 01:54
List of API friendly FLOSS apps
By API Friendly it means that once the service is running everything to configure and use it can be done via API
WebRTC
Janus
WebServer
Loadbalancer
version: '3'
services:
db:
image: postgres
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
### Keybase proof
I hereby claim:
* I am kristianpaul on github.
* I am kristianpaul (https://keybase.io/kristianpaul) on keybase.
* I have a public key ASB-P-FdbORARSBYIum-b5sxqNg7NDuPTiGtZJRRbXIF5Ao
To claim this, I am signing this object:
#!/usr/bin/env python3
import sys
import io
import re
# Argument parsing WIP
def argument_parse():
if len(sys.argv) > 1:
aul@ip-172-31-21-54:~/ec2-spot-labs$ !139
python ./ec2-spot-duration/get_spot_duration.py --region us-east-1 --profile pi --product-description 'Linux/UNIX' --bids c3.large:0.04,c4.large:0.04,c5.large:0.04,c5d.large:0.04,t2.medium:0.01,t2.nano:0.0029
Duration Instance Type Availability Zone
168.0 c4.large us-east-1a
168.0 c4.large us-east-1b
168.0 c4.large us-east-1c
168.0 c4.large us-east-1d
168.0 c4.large us-east-1e
168.0 c4.large us-east-1f
168.0 c5d.large us-east-1a
pi@pi:~/atinout-0.9.1 $ make
gcc -o atinout -W -Wall -Wextra -Werror -DVERSION=\"0.9.1\" -g atinout.c
cc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Makefile:14: recipe for target 'atinout' failed
make: *** [atinout] Error 1
pi@pi:~/atinout-0.9.1 $ gcc -v
Using built-in specs.