Skip to content

Instantly share code, notes, and snippets.

View marcinkoziej's full-sized avatar

Marcin Koziej marcinkoziej

View GitHub Profile
{
"version": "2.0",
"routeKey": "ANY /postcard_gen",
"rawPath": "/default/postcard_gen",
"rawQueryString": "foo=bar",
"cookies": [
"pN=41",
"s_pers=%20s_vnum%3D1594377280743%2526vn%253D4%7C1594377280743%3B%20s_invisit%3Dtrue%7C1592343496991%3B%20s_nr%3D1592341697007-Repeat%7C1600117697007%3B",
"s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B"
],
on_bog3: &on_bog3
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: disk
operator: In
values:
- bog3
on_bog4: &on_bog4
apiVersion: v1
items:
- apiVersion: v1
kind: Service
metadata:
creationTimestamp: "2020-01-04T15:46:12Z"
labels:
component: apiserver
provider: kubernetes
name: kubernetes
hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEg3jHbByFSRYkJzWqd2DkvQdlolq9xxgOPD5Z5BNKoIwEKp3BheWxvYWTESpcCCMQgZQs/OXw/oghglpkpjqlPaHCTmBanzY5uAV6mIV3d/FLEIDrNBk3YFwLjNue2A0ZKB9G6Z0JR0z3Lv7JJkTmlxHxjAgHCo3NpZ8RAXfeHAkpXJOaMBm/lwCwF3vvVdRnxrGuZlEujiOWstLE3yEu004h6RSs3ENmLaLKcJeeu+B5kZ3cyQbj6gmfBD6hzaWdfdHlwZSCkaGFzaIKkdHlwZQildmFsdWXEIGOPL8J4RvdqP602OqPDrTkoaJOJUMMcVg5Ld23luouno3RhZ80CAqd2ZXJzaW9uAQ==
@marcinkoziej
marcinkoziej / gist:e7194c0bf412b08b8be284b455967ffc
Created September 6, 2017 15:09
I get this Synapse error when inputting new guest username with polish characters
2017-09-06 15:08:42,901 - synapse.http.server - 139 - ERROR - GET-240003- Failed handle request synapse.http.server._async_render on <synapse.rest.ClientRestResource object at 0x7f3fb292dad0>: <SynapseRequest at 0x7f3f767f1998 method=GET uri=/_matrix/client/r0/register/available?username=a%C3%B3%C3%B3&access_token=<redacted> clientproto=HTTP/1.1 site=8008>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/synapse/http/server.py", line 116, in wrapped_request_handler
yield request_handler(self, request, request_metrics)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 393, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/local/lib/python2.7/dist-packages/synapse/http/server.py", line 255, in _async_render
callback_return = yield callback(req
2017-09-04 15:55:01,151 - root - 181 - WARNING - GET-12- Error retrieving alias
2017-09-04 15:55:01,154 - synapse.http.server - 126 - ERROR - GET-12- 502: Bad Gateway
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/synapse/http/server.py", line 116, in wrapped_request_handler
yield request_handler(self, request, request_metrics)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 393, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/local/lib/python2.7/dist-packages/synapse/http/server.py", line 255, in _async_render
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
@import url(https://www.akcjademokracja.pl/wp-content/themes/social-activity/css/akcja-fonts.css);
body {
margin: 0px;
font-family: "Cambria", "Caladea", "Times New Roman";
line-height: 24px;
.row-fluid.vspace17.clearfix{"ng-hide"=>"me.id"}
.col-md-12{translate: 'common_login_to_post'}
To comment, please
%a{href: '/auth/users/sign_in'}
sign in
.row-fluid.vspace17.clearfix{"ng-show"=>"me.id"}
.col-md-2.col-xs-2.column
%img.avatar{alt: "", "ng-src" => "{{users[me.id].avatar_url}}"}/
Haml::SyntaxError - Illegal nesting: content can't be both given on the same line as %div and nested within it.
(in /Users/marcin/Projects/knowhow/app/assets/templates/topic/list.html.haml):
() Users/marcin/Projects/knowhow/app/assets/templates/topic/list.html.haml:41:in `'
haml (4.1.0.beta.1) lib/haml/parser.rb:407:in `tag'
haml (4.1.0.beta.1) lib/haml/parser.rb:427:in `div'
haml (4.1.0.beta.1) lib/haml/parser.rb:221:in `process_line'
haml (4.1.0.beta.1) lib/haml/parser.rb:132:in `block in parse'
haml (4.1.0.beta.1) lib/haml/parser.rb:118:in `parse'
haml (4.1.0.beta.1) lib/haml/engine.rb:66:in `initialize'
@marcinkoziej
marcinkoziej / gist:5f901b6c802ac244bb19
Created July 1, 2015 08:51
But + fix in SSOWAT @ YUNOHOST
2015/07/01 10:28:07 [error] 899#0: *9063 lua entry thread aborted: runtime error: /usr/share/ssowat/helpers.lua:39: bad argument #1 to 'sub' (string expected, got table)
stack traceback:
coroutine 0:
[C]: in function 'sub'
/usr/share/ssowat/helpers.lua:39: in function 'ends'
/usr/share/ssowat/helpers.lua:613: in function </usr/share/ssowat/helpers.lua:511>, client: 77.79.213.66, server: akcjademokracja.pl, request: "POST /yunohost/sso/edit.html HTTP/1.1", host: "akcjademokracja.pl", referrer: "https://akcjademokracja.pl/yunohost/sso/edit.html"