Skip to content

Instantly share code, notes, and snippets.

View opentokix's full-sized avatar

Peter Eriksson opentokix

View GitHub Profile
#!/usr/bin/env python3
def main():
print("Do you want quality? (yes/no):")
x = input()
if x == "yes":
print("You have to come to the right place!")
elif x == "no":
print("You have come to the wrong place!")
else:
nginx::nginx_upstreams:
'jenkins':
ensure: present
members:
- localhost:8080
nginx::nginx_locations:
'jenkins':
location: '~ "^/jenkins/(.*)$"'
proxy_read_timeout: 90s
@opentokix
opentokix / genesis_public_key
Created February 21, 2018 09:01
genesis_public_key
040e7f261cc1ca3737b920d061ad88af6caf71cef6fc572aa0776e329156ce02ed320acc6a0c7c61078419f906a232a74469f1bc9ef6dc157a4ef1e97f493ee71e
[carbon]
pattern = ^carbon\.
retentions = 60:90d
[test]
pattern = ^test\.
retentions = 10s:10m,1m:1h,10m:1d
[default_1min_for_1day]
pattern = .*
@opentokix
opentokix / gist:7c7ea27fae60284a0f17
Created October 12, 2015 13:41
opera mini proxy configuration nginx
set_real_ip_from 59.151.106.227;
set_real_ip_from 59.151.106.228/30;
set_real_ip_from 59.151.106.232/29;
set_real_ip_from 59.151.106.240/29;
set_real_ip_from 59.151.106.248/30;
set_real_ip_from 59.151.106.252;
set_real_ip_from 64.255.164.0/24;
set_real_ip_from 64.255.180.0/24;
set_real_ip_from 80.232.117.0/24;
set_real_ip_from 80.239.242.0/23;
[BITS 64]
[ORG 0x0000000000200000]
%INCLUDE "bmdev.asm"
start:
mov RAX, 24
add RAX, 1000
mov RDI, tstring
call int_to_string
mov RSI, tstring