Skip to content

Instantly share code, notes, and snippets.

@Lomanic
Lomanic / Github ES6-Promises Polyfill.user.js
Last active March 26, 2016 20:00
Userscript to fix the "ReferenceError: Promise is not defined" error on old browsers on Github
// ==UserScript==
// @name Github ES6-Promises Polyfill
// @namespace Lomanic
// @description Fix the "ReferenceError: Promise is not defined" error
// @include https://github.com/*
// @include https://gist.github.com/*
// @require https://raw.githubusercontent.com/jakearchibald/es6-promise/master/dist/es6-promise.min.js
// @run-at document-start
// @version 1.1
// @grant none
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Transilien.com Bookmarks generator</title>
<style type="text/css"> /* Style based off bettermotherfuckingwebsite */
body{margin:40px auto;
max-width:650px;
line-height:1.6;
@Lomanic
Lomanic / README.md
Last active May 5, 2016 13:03 — forked from nikcub/README.md
Twitter refined Greasemonkey / user script

Chrome install - drag + drop onto extensions window at chrome://extensions

@Lomanic
Lomanic / URL to QR Bookmarklet
Last active July 16, 2016 14:05
URL to QR Bookmarklet - jQuery
javascript:(function(){var newDiv=document.createElement("div");newDiv.setAttribute('id','qrcodeonfly');newDiv.innerHTML='<div style="position:fixed;top:50%;left:50%;z-index:99999;width:550px;height:550px;margin-top:-275px;margin-left:-275px;background-color:#fff;padding:49px;border:1px%20solid #ccc;box-shadow:0 0 20px rgba(0,0,0,0.3);"><img src="http://chart.apis.google.com/chart?cht=qr&chs=545x545&choe=UTF-8&chld=H&chl='+window.location+'"/><a href="javascript:(function(){document.body.removeChild(document.getElementById(\'qrcodeonfly\'));})()" style="display:block;position:absolute;top:-7px;right:-7px;color:#eee;font-family:verdana;font-size:18px;width:14px;height:14px;line-height:10px;text-align:center;cursor:pointer;font-weight:bold;background:#000;padding:3px;text-decoration:none;border:solid 3px white;border-radius:50%;box-shadow:0 0 5px rgba(0,0,0,0.5);">x</a></div>';document.body.appendChild(newDiv);})()
@Lomanic
Lomanic / Google_Lucky_Button_Fix.user.js
Last active November 17, 2016 10:00 — forked from stcruy/Google_Lucky_Button_Fix.user.js
Google Lucky Button Fix - Greasemonkey script
// ==UserScript==
// @name Google Lucky Button Fix
// @namespace -
// @version 2
// @description On Google search result pages that have "&btnI" in the url, automatically redirect to the first hit.
// @include /^https?:\/\/(?:encrypted|www)\.google\.[^/]+\/(?:$|[#?]|search|webhp).*&btnI.*/
// @grant none
// ==/UserScript==
var firstLink = document.querySelector("#search .rc a").href;
window.location.replace(firstLink);

Keybase proof

I hereby claim:

  • I am Lomanic on github.
  • I am lomanic (https://keybase.io/lomanic) on keybase.
  • I have a public key whose fingerprint is 8472 D58D FD20 EF39 84AF 89E4 EC4C 6224 6EE1 2371

To claim this, I am signing this object:

@echo off
net session >nul 2>&1
if %ERRORLEVEL% NEQ 0 ( echo Run this script with administrator privileges & exit /B 1 )
:: https://gist.github.com/Albirew/613cbf63595647ff26b269d5271871a0
echo +------------------------------------------------------------------+
echo ^| SMBv1 patch against malwares like WannaCry ou notPetya / Petwrap ^|
echo +------------------------------------------------------------------+
echo.
:: deactivate SMBv1 on SMB server
reg add "HKLM\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters" /v SMB1 /t REG_DWORD /d 0 /f
@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

package main
import (
"github.com/AllenDang/w32"
"io"
"os"
"unsafe"
"errors"
"fmt"
"syscall"
@Lomanic
Lomanic / open_process.go
Created November 12, 2017 16:46 — forked from castaneai/open_process.go
WinAPI OpenProcess in Golang
package main
import (
"fmt"
"syscall"
"unsafe"
)
type Process uintptr