Skip to content

Instantly share code, notes, and snippets.

View SkyzohKey's full-sized avatar

SkyzohKey SkyzohKey

View GitHub Profile
@SkyzohKey
SkyzohKey / screen-spoofer.user.js
Last active June 4, 2024 10:23
~ Spoof the reported window.screen as the most common one so that it can't be used to fingerprint browser.
// ==UserScript==
// @name Spoof screen resolution & color depth
// @namespace https://skyzohlabs.be
// @version 1.0.5
// @description Spoof the reported window.screen as the most common one so that it can't be used to fingerprint browser.
// @author SkyzohKey
// @include http://*
// @include https://*
// @run-at document-end
// @grant none

Keybase proof

I hereby claim:

  • I am skyzohkey on github.
  • I am skyzohkeyz (https://keybase.io/skyzohkeyz) on keybase.
  • I have a public key ASARpR5XI4NRXKO_v7Sv_fJNtmJWxsOc-Rpsmv0hNFTPQAo

To claim this, I am signing this object:

@SkyzohKey
SkyzohKey / form-validation.js
Created February 3, 2018 11:42
A simple excersice of validating a form with vanilla JS.
/**
<form>
<input type="radio" id="type_person" name="type" value="person" checked/>
<input type="radio" id="type_company" name="type" value="company"/>
<input type="text" id="first_name" name="first_name" value="John"/>
<input type="text" id="last_name" name="last_name" value="Doe"/>
<input type="text" id="email" name="email" value="john@example.com"/>
<input type="text" id="company_name" name="company_name" value=""/>
<input type="text" id="phone" name="phone" value="234-567-890"/>
</form>
@SkyzohKey
SkyzohKey / SettingsListBox.vala
Last active February 4, 2023 04:12
A simple ListBox to display Settings in a proper way.
public class SettingsListBox: Gtk.Box {
public Gtk.Box scrolled_box;
public Gtk.ListBox listbox;
public SettingsListBox () {
this.set_orientation (Gtk.Orientation.HORIZONTAL);
Gtk.ScrolledWindow scroll = new Gtk.ScrolledWindow (null, null);
scroll.set_size_request (400, 1);
@SkyzohKey
SkyzohKey / konv-ux-whitepaper.md
Last active April 17, 2017 21:01
Konv UX Whitepaper

Konv UX whitepaper

1. Summary

Konv aims to be a modern, easy-to-use and secure Instant Messaging Skype replacement. It should provides a cool UI/UX to end-users, with a « Power user » mode to allow more skilled guys to enjoy it too.

Konv should be finely designed and simple to understand with the first time, even a grandma should be able to use it without troubles.

Konv should provides at least features others IM apps (Skype, Whatsapp, Messenger, etc) has plus extra features that'll make it unique.

2. Targeted users

Keybase proof

I hereby claim:

  • I am SkyzohKey on github.
  • I am skyzohkey (https://keybase.io/skyzohkey) on keybase.
  • I have a public key whose fingerprint is 5B17 10BF 953A 0E74 C941 3823 9BFE 57D1 BD03 D1F4

To claim this, I am signing this object:

@SkyzohKey
SkyzohKey / openpgp.txt
Created December 19, 2016 12:21
Identité reliée à OpenKeychain
Ce gist confirme l'identité reliée se trouvant dans ma clef OpenPGP et le relie à ce compte GitHub.
Jeton pour preuve :
[Verifying my OpenPGP key: openpgp4fpr:5b1710bf953a0e74c94138239bfe57d1bd03d1f4]
@SkyzohKey
SkyzohKey / openpgp.txt
Created December 19, 2016 12:21
Identité reliée à OpenKeychain
Ce gist confirme l'identité reliée se trouvant dans ma clef OpenPGP et le relie à ce compte GitHub.
Jeton pour preuve :
[Verifying my OpenPGP key: openpgp4fpr:5b1710bf953a0e74c94138239bfe57d1bd03d1f4]
@SkyzohKey
SkyzohKey / EventSocket.js
Last active May 7, 2024 07:18
EventSocket.js - A JSON event based client-side websocket wrapper.
/**
* @class EventSocket - A JSON event based client-side websocket wrapper.
* @param {String} scheme - The websocket server address scheme, can be `ws`, `wss`, `http`, `https`, whatever...
* @param {String} host - The websocket server ip address.
* @param {String} port - The websocket server port.
**/
function EventSocket (scheme, host, port) {
this.uri = [ scheme, '://', host, ':', port ].join('');
this.callbacks = {};
this.socket = null;

Tox Name Resolution proposal

Intro

Let's assume we have 3 Tox nodes in the DHT with some flag system, like:

  1. [-ID] GCQS45MRYJZ4K7XCB5TM...
  2. [-ID] JGZAM85PPHNK3E8V64GG...
  3. [-ID] CXWYHT3XAXJP4PJMNXVK...

Where [-ID] is the node flags, meaning that this node is hosting a ToxID service. Then we have it's public key, allowing an user to easily add that node.