Skip to content

Instantly share code, notes, and snippets.

View slashbinslashnoname's full-sized avatar

Slashbin slashbinslashnoname

View GitHub Profile
@slashbinslashnoname
slashbinslashnoname / http_to_https_apache_httpd_configuration.vhost
Last active August 26, 2016 15:22
HTTP vers HTTPS - ledroideenchaine.com
<VirtualHost *:80>
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/mondomaine.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mondomaine.com/privkey.pem
SSLCACertificateFile /etc/letsencrypt/live/mondomaine.com/fullchain.pem
@slashbinslashnoname
slashbinslashnoname / tracking.sol
Last active August 28, 2016 00:13
Tracking item in solidity
/* Cette solution simple de traçabilité repose sur un contrat principal (Traceability)
et un contrat ad hoc par objet à tracer (Tracking).
Le contrat principal se comporte comme une liste blanche associant les identifiants
des objets et les contrats de traçabilité.
Une version plus avancée intègrera le déploiement du contrat Tracking à l'intérieur
de Traceability
An Idea of Jerôme De Tychey, implemented in solc by Romain Lafforgue
"numéro de série: 0001; date de fabrication: 09082016;Lieu de fabrication: 75017PARIS"
contract prout{
struct Member {
string sName;
address aAddressMember;
}
Member[] public sMembers;
function getMembers() internal constant returns (Member[]);
@slashbinslashnoname
slashbinslashnoname / index.html
Last active November 21, 2018 18:51
Event listener MouseDown: which button has clicked ?
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Which button has clicked ?</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello world!</h1>
<button>Click me any way you want</button>
@slashbinslashnoname
slashbinslashnoname / Use fuck.md
Last active November 21, 2018 18:42
Use Fuck

Tired of Type errors in your terminal ?

image

Use ➜ fuck

➜ sdo apt)-get install vim
➜ fuck
➜ sudo apt-get install vim [enter/↑/↓/ctrl+c]
@slashbinslashnoname
slashbinslashnoname / Readme.md
Last active November 21, 2018 19:10
Milligram

chmod +x install ./install

array.sort((item, nextItem) =>
item.label.localeCompare(nextItem.label, "fr", {
sensitivity: "base",
numeric: "true"
})
);

Keybase proof

I hereby claim:

  • I am slashbinslashnoname on github.
  • I am slashbin (https://keybase.io/slashbin) on keybase.
  • I have a public key ASDmZdnObvvAafdxugnPiNmMxCY_NTsIS99j9EYTMAa6ego

To claim this, I am signing this object:

magnet:?xt=urn:btih:6ac5b6b98c6ddb6cb3cb51dc3bc09d35c0169aae&dn=%5b%20OxTorrent.com%20%5d%20Homeland.S03.FRENCH.LD.HDTV.XviD-MiND&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2f9.rarbg.me%3a2710%2fannounce&tr=udp%3a%2f%2f9.rarbg.to%3a2740%2fannounce&tr=udp%3a%2f%2f9.rarbg.com%3a2770%2fannounce&tr=udp%3a%2f%2fexplodie.org%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.internetwarriors.net%3a1337%2fannounce&tr=udp%3a%2f%2fipv4.tracker.harry.lu%3a80%2fannounce&tr=udp%3a%2f%2ftracker.tiny-vps.com%3a6969%2fannounce&tr=http%3a%2f%2fservandroidkino.ru%2fannounce&tr=http%3a%2f%2f1337.abcvg.info%2fannounce&tr=udp%3a%2f%2fopen.stealth.si%3a80%2fannounce&tr=http%3a%2f%2ftracker.bittor.pw%3a1337%2fannounce&tr=http%3a%2f%2ftracker3.itzmx.com%3a8080%2fannounce&tr=http%3a%2f%2fopen.acgnxtracker.com%2fannounce&tr=http%3a%2f%2fshare.camoe.cn%3a8080%2fannounce&tr=udp%3a%2f%2fbt.xxx-tracker.com%3a2710%2fannounce&tr=udp%3a%2f%2fexodus.desync.com%3a6969%2fannounce&tr=udp%3a%2f%2fopen.demonii.si%3a1337%2fannounce
@slashbinslashnoname
slashbinslashnoname / api-server.py
Created April 26, 2020 10:30 — forked from Novex/api-server.py
Sony fdr-x3000 ustream mitm setup
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from http.server import HTTPServer
from http.server import BaseHTTPRequestHandler
import json
class MyHandler(BaseHTTPRequestHandler):
def do_GET(self):