Skip to content

Instantly share code, notes, and snippets.

@Lomanic
Lomanic / README.md
Last active April 28, 2023 19:10
redbean.dev + tiddlywiki

This is an adptation of this article describing a redbean-based tiddlywiki server (with persistence) shared on lobste.rs and hacker news. Unfortunately, the code provided in the article doesn't work out-of-the-box, so here it is for an easy copy-paste.

if [ ! -f redbean.com ]; then
    curl https://redbean.dev/redbean-latest.com -o redbean.com
    chmod +x redbean.com
fi
cp -a redbean.com wiki.com
31683AD77BFC47A1D1A4F30959FDDE26|0001 - Electroplankton (Japan).nds
4E24E5D333A91F948265A177B2FF9DB2|0001 - Electroplankton (Japan) (1).nds
283631768B2213227FBBEE91154C688F|0002 - Need for Speed - Underground 2 (USA) (En,Fr,De,Es,It).nds
C7B2F7A5861F7D4BC94FF050D0B4FBD0|0002 - Need for Speed - Underground 2 (USA) (En,Fr,De,Es,It) (1).nds
D57CB3335F228F3DB869003766D10970|0002 - Need for Speed - Underground 2 (USA) (En,Fr,De,Es,It) (2).nds
C8065C4B4A21337C2928A14973218D26|0003 - Yoshi Touch & Go (USA).nds
827CBAB11FB04D1C87389077CB5809BE|0003 - Yoshi Touch & Go (USA) (1).nds
90C6F561CAFB5EDE611398E2F5CA88BD|0003 - Yoshi Touch & Go (USA) (2).nds
6796156F49B5ED663EF986B379FFD4EA|0003 - Yoshi Touch & Go (USA) (3).nds
FD920DBC37C332D392B547B1D7D5839D|0004 - Feel the Magic - XY-XX (USA) (En,Ja).nds
@Lomanic
Lomanic / blogpost.md
Last active March 29, 2022 19:54
Hola Proxy - List of Proxy Servers used by Hola

The truth behind Hola Unblocker!

Hola is a free browser extension and a Windows program that has 10 million users. It was created in 2012 and I did a review of it (that post has been taken down after I learned the dark truth). Initially I liked it, because I could watch Hulu and CBS online for free and legally (well, mostly legally anyways).

However, quickly the extension became bad. It started injecting ads into pages and that was when I disabled it. I was considering starting a similar paid service, a "startup" as some would call it, and was very curious about how it worked.

I reverse engineered their code and have gotten a list of proxies and the username and password that I have published HERE for all the people to see, use and abuse.

Now the dirty secret: Hola Networks Limited, that created Hola.org, runs a company called Luminati, that charges $20/GB for their premium VPN service. Okay, that’s not that bad, a little bit greedy but nothing sinister, you’re thinking? Well, it gets w

@Lomanic
Lomanic / connect.md
Last active March 21, 2022 18:24
Easily connect to _SNCF_WIFI_INOUI hotspots

This is as simple as curl -X POST https://wifi.sncf/router/api/connection/activate/auto.

No need to give your ticket number.

Not using a Unix-like OS (say, on mobile)? Just head over to the "chatbot" at https://wifi.sncf/fr/internet/bot and accept the EULA (French: CGU) and tell the bot that you have a foreign ticket.

@Lomanic
Lomanic / sutom_downloader.rb
Created March 21, 2022 18:21
Download previous words from sutom.nocle.fr
require 'base64'
require 'date'
require 'open-uri'
# https://github.com/pil0u/sutom-tob/commit/263e26ec15019f1f41582dc3480b54c2d23266af
def uri_mot_sutom(jour)
origine = Date.new(2022, 1, 7)
aujourdhui = origine + jour
s = "34ccc522-c264-4e51-b293-fd5bd60ef7aa-#{aujourdhui}"
@Lomanic
Lomanic / flip_dot_clock.ino
Created February 9, 2021 09:51 — forked from iizukak/flip_dot_clock.ino
Flip Dot Clock
// 0x80 beginning
//___________________
// 0x81 - 112 bytes / no refresh / C+3E
// 0x82 - refresh
// 0x83 - 28 bytes of data / refresh / 2C
// 0x84 - 28 bytes of data / no refresh / 2C
// 0x85 - 56 bytes of data / refresh / C+E
// 0x86 - 56 bytes of data / no refresh / C+E
// ---------------------------------------
// address or 0xFF for all
@Lomanic
Lomanic / Readme.md
Created February 4, 2020 19:58 — forked from fracz/Readme.md
Restore intentionally deleted commits in Git

Restore intentionally deleted commits in Git (remote)

Situation

  1. You own a Git repository server and the developers do not have access to it (i.e. they can only read & write to the repo, but not gc it).
  2. You had a developer that wrote a project for you.
  3. He got angry for whatever reason and deleted all branches from the remote repo. He also push -fed the master branch leaving only one silly commit there.
  4. He escaped from the country leaving you without any code at all (at least this is what he believe in).
  5. You have never cloned the repo to other machine. There were only two copies of it: the developer's one and the server's one.
@Lomanic
Lomanic / sonoff_s20_blinky_led.ino
Created September 21, 2019 19:31
Make Sonoff S20 internal LED blink
#define RELAY_PIN 12
#define LED_PIN 13
void setup() {
Serial.begin(115200);
Serial.println("START");
pinMode(LED_PIN, OUTPUT);
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
//for LED status
#include <Ticker.h>
Ticker ticker;
@Lomanic
Lomanic / send-magic-packet.sh
Last active June 21, 2019 17:18 — forked from SteveMarshall/send-magic-packet.sh
Wake-On-Lan Magic Packet using netcat in bash
#!/usr/bin/env bash
mac_address=$1
# Strip colons from the MAC address
mac_address=$(echo $mac_address | sed 's/://g')
broadcast=$2
port=4343
# Magic packets consist of 12*`f` followed by 16 repetitions of the MAC address