Skip to content

Instantly share code, notes, and snippets.

@climu
climu / nas-historment.sgf
Last active March 16, 2017 13:46
sgf with scoring infos from kgs
(;GM[1]FF[4]CA[UTF-8]AP[CGoban:3]ST[2]
RU[Japanese]SZ[19]KM[6.50]TM[1800]OT[5x30 byo-yomi]
PW[historment]PB[nas]BR[1k]DT[2017-02-19]PC[The KGS Go Server at http://www.gokgs.com/]C[historment [?\]: hi, hf
nas [1k\]: hi
historment [?\]: #OSR
nas [1k\]: you are about 3-4K?
historment [?\]: probably
]RE[B+35.50]
;B[pd]BL[1778.715]
;W[dd]WL[1796.532]
@climu
climu / gist:25f3b0093d188f34ef623820e6de86df
Created April 21, 2017 10:54
error when runing sudo letsencrypt certonly -a webroot --webroot-path=/var/www/html -d openstudyroom.org
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: openstudyroom.org
Type: unauthorized
Detail: Invalid response from
http://openstudyroom.org/.well-known/acme-challenge/v-PygDXu1XSAPKOEZVWvmgdBf8t13vzisF8bKzfoYsU:
"
@climu
climu / game-188-felino-potato.html
Last active May 12, 2017 09:05
source html of https://openstudyroom.org/league/games/188/ for ilustrating the use of wgo.
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
@climu
climu / requirement.txt
Created May 30, 2017 18:09
pip freeze from my local working copy
appdirs==1.4.3
beautifulsoup4==4.5.3
bitfield==1.32
Cython==0.25.2
defusedxml==0.5.0
Django==1.10.6
django-allauth==0.31.0
django-annoying==0.10.3
django-appconf==1.0.2
django-bootstrap3==8.2.1
@climu
climu / keybase.md
Created May 8, 2018 22:41
keybase.md

Keybase proof

I hereby claim:

  • I am climu on github.
  • I am climu (https://keybase.io/climu) on keybase.
  • I have a public key whose fingerprint is E275 BB11 3F5D E78D 7098 AE7A E8CF F6F8 ADAA 632A

To claim this, I am signing this object:

var match_8_sortable = Sortable.create(match_8,{
group: {
name: 'players_list',
pull: function (to, from){
to = $(to.el)
if ($(from.el).hasClass('played')){
return 'clone';
}
if ((to.attr('data-round') <= 4) && (to.attr('data-bracket') == 2)){
return true;
Jul 04 13:41:49 openstudyroom.org python[10919]: UnboundLocalError: local variable 'servers' referenced before assignment
Jul 04 13:41:49 openstudyroom.org python[10919]: The above exception was the direct cause of the following exception:
Jul 04 13:41:49 openstudyroom.org python[10919]: Traceback (most recent call last):
Jul 04 13:41:49 openstudyroom.org python[10919]: File "/home/climu/osr_bot/venv/lib/python3.5/site-packages/discord/ext/commands/bot.py", line 8
Jul 04 13:41:49 openstudyroom.org python[10919]: yield from ctx.command.invoke(ctx)
Jul 04 13:41:49 openstudyroom.org python[10919]: File "/home/climu/osr_bot/venv/lib/python3.5/site-packages/discord/ext/commands/core.py", line
Jul 04 13:41:49 openstudyroom.org python[10919]: yield from injected(*ctx.args, **ctx.kwargs)
Jul 04 13:41:49 openstudyroom.org python[10919]: File "/home/climu/osr_bot/venv/lib/python3.5/site-packages/discord/ext/commands/core.py", line
Jul 04 13:41:49 openstudyroom.org python[10919]: raise CommandInvokeE
```(venv) climu@belbet:~/osr/bot/OSR-discord-bot$ python bot.py
Traceback (most recent call last):
File "bot.py", line 2, in <module>
import discord
File "/home/climu/osr/bot/venv/lib/python3.6/site-packages/discord/__init__.py", line 20, in <module>
from .client import Client, AppInfo
File "/home/climu/osr/bot/venv/lib/python3.6/site-packages/discord/client.py", line 30, in <module>
from .guild import Guild
File "/home/climu/osr/bot/venv/lib/python3.6/site-packages/discord/guild.py", line 39, in <module>
from .channel import *
(venv) climu@titbet ~/osr/openstudyroom $ python -Wa manage.py
/home/climu/osr/venv/lib/python3.5/site-packages/wagtail/wagtailcore/models.py:17: RemovedInDjango20Warning: Importing from django.core.urlresolvers is deprecated in favor of django.urls.
from django.core.urlresolvers import reverse
/home/climu/osr/venv/lib/python3.5/site-packages/wagtailmenus/models/menuitems.py:173: RemovedInDjango20Warning: on_delete will be a required arg for ParentalKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.11/ref/models/fields/#django.db.models.ForeignKey.on_delete
menu = ParentalKey('wagtailmenus.MainMenu', related_name="menu_items")
/home/climu/osr/venv/lib/python3.5/site-packages/wagtailmenus/models/menuitems.py:178: RemovedInDjango20Warning: on_delete will be a required arg for ParentalKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to mainta
climu@openstudyroom:~$ journalctl -xeu osr-bot
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal' can see all messages.
Pass -q to turn off this notice.
Oct 03 22:31:54 openstudyroom.org python[11344]: File "/home/climu/osr_bot/venv/lib/python3.5/site-packages/websockets/protocol.py", line 591, in read_data_frame
Oct 03 22:31:54 openstudyroom.org python[11344]: frame = yield from self.read_frame(max_size)
Oct 03 22:31:54 openstudyroom.org python[11344]: File "/home/climu/osr_bot/venv/lib/python3.5/site-packages/websockets/protocol.py", line 632, in read_frame
Oct 03 22:31:54 openstudyroom.org python[11344]: extensions=self.extensions,
Oct 03 22:31:54 openstudyroom.org python[11344]: File "/home/climu/osr_bot/venv/lib/python3.5/site-packages/websockets/framing.py", line 100, in read
Oct 03 22:31:54 openstudyroom.org python[11344]: data = yield from reader(2)