Skip to content

Instantly share code, notes, and snippets.

View Obiwarn's full-sized avatar

Sebastian Obentheuer Obiwarn

  • Berlin, Germany
View GitHub Profile
@gullyn
gullyn / flappy.html
Last active May 4, 2024 15:35
Flappy bird in 205 bytes (improved!)
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c>
@ajmcmiddlin
ajmcmiddlin / unlock-dell-u2711.md
Created October 11, 2017 21:37
Unlocking the Dell U2711

The Dell U2711 on screen display (OSD) can be locked - I think by holding the button immediately above the power button (referred to as button 5 in some places). In my case I locked it totally by accident, and without realising what I'd done.

Unlocking the OSD proved quite the production. I found a [forum post] that contained most of the answer. I'll repeat the useful bit below:

  • Switch the monitor off
  • Disconnect all monitor cabling from the PC (VGA, DVI, HDMI, DP, USB, etc.)
  • Disconnect the monitor power cord from the rear of the monitor
  • Press and hold the monitor power button in for 5 seconds

Minimum Viable Async with Node 6

With the release of Node 6.0.0, the surface of code that needs transpilation to use ES6 features has been reduced very dramatically.

This is what my current workflow looks like to set up a minimalistic and fast microservice using micro and async + await.

The promise

@thiloplanz
thiloplanz / Zero_knowledge_db.md
Last active March 15, 2024 21:49
Zero-knowledge databases

Zero knowledge databases

The idea

The idea is to provide a database as a service to end users in such a way that no one except the user herself can access the data, not even the hosting provider or the database administrator.

Advantages

  • A privacy- and/or security-conscious user will have more trust in such a setup.
  • The service provider cannot be coerced to release the data they were trusted with, and he cannot be held responsible for the content he is storing.