Chrome install - drag + drop onto extensions window at chrome://extensions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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);})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/AllenDang/w32" | |
"io" | |
"os" | |
"unsafe" | |
"errors" | |
"fmt" | |
"syscall" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"syscall" | |
"unsafe" | |
) | |
type Process uintptr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go test ./... | |
? github.com/shirou/gopsutil [no test files] | |
--- FAIL: TestCPUPercentIntervalZeroPerCPU (1.69s) | |
cpu_test.go:124: CPUPercent value is invalid: 1100.000000 | |
FAIL | |
FAIL github.com/shirou/gopsutil/cpu 5.957s | |
--- FAIL: TestDisk_partitions (0.01s) | |
disk_test.go:26: error Accès refusé. | |
FAIL | |
FAIL github.com/shirou/gopsutil/disk 1.039s |
OlderNewer