Skip to content

Instantly share code, notes, and snippets.

View ornicar's full-sized avatar
💭
⏚⏚⏚⏚

Thibault Duplessis ornicar

💭
⏚⏚⏚⏚
View GitHub Profile
"lines": {
"7l": {
"mu": {
"lk": {
"ut": {
"cl": true
}
},
"ld": {
"um": {
ns29899(mongod-2.4.8) lichess> db.puzzle_attempt.aggregate({$group:{_id:'$u', nb:{$sum:1}}},{$sort:{nb:-1}},{$limit:10})
{
"result": [
{
"_id": "u235",
"nb": 813
},
{
"_id": "aakarsh01",
"nb": 449
OSX:
- download refind-bin
- cd refind-bin
- ./install.sh
- edit /EFI/refind/refind.conf to enable scan_all_dirs (maybe not required)
Arch chroot:
- install grub
- install efibootmgr
- mount /dev/{esp} /boot/efi
ns29899(mongod-2.4.8) lichess> db.puzzle_attempt.aggregate({$group:{_id:'$u', nb:{$sum:1}}},{$sort:{nb:-1}},{$limit:10})
{
"result": [
{
"_id": "u235",
"nb": 1107
},
{
"_id": "rzenaikrzys",
"nb": 1077
@ornicar
ornicar / puzzle.yaml
Created February 13, 2014 09:21
puzzle.yaml
id: 345794
authors:
- Witztum, Menachem
source: 22nd TT Spišská Borovička
date: 2010-10-21
distinction: 3rd Comm.
algebraic:
white: [Kh7, Bh3, Sd3, Sc4, Pe6, Pc3]
black: [Kd5, Qg2, Rb4, Be3, Pe5, Pc5, Pb6]
stipulation: "h#2"
[Event "yacpdb id 4"]
[Site "?"]
[Date "2010.01.01"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "*"]
[Setup "1"]
[FEN "7n/3NR3/1P3p2/1p1kbN1B/1p6/1K6/6b1/1Q6 w - - 0 1"]
{
"result": [
{
"_id": "smok",
"nb": 2953
},
{
"_id": "u235",
"nb": 2000
},
ns29899(mongod-2.4.8) lichess> db.pref.aggregate({$group:{_id:'$theme',nb:{$sum:1}}})
{
"result": [
{
"_id": "canvas",
"nb": 1163
},
{
"_id": "green",
"nb": 1333
2014-02-25 07:21:13,474 fail2ban.actions: WARNING [ssh] Ban 95.242.58.141
2014-02-25 07:31:14,060 fail2ban.actions: WARNING [ssh] Unban 95.242.58.141
2014-02-25 07:56:58,544 fail2ban.actions: WARNING [ssh] Ban 95.211.216.150
2014-02-25 08:06:59,118 fail2ban.actions: WARNING [ssh] Unban 95.211.216.150
2014-02-25 10:12:44,260 fail2ban.actions: WARNING [ssh] Ban 95.242.58.141
2014-02-25 10:22:44,850 fail2ban.actions: WARNING [ssh] Unban 95.242.58.141
{
"_id": "Dc27lWx4",
"bm": 1,
"c": BinData(0, "AQEADkIABkgAAAAAAA=="),
"ca": ISODate("2014-02-21T13:24:53.536Z"),
"cl": BinData(0, "BAAABFw="),
"is": "6gkDLhy5",
"mt": BinData(0, "A0MlMURiFDMiI2OkISOFNJZiNgKCJTECAiJD"),
"p0": {
"d": -3,