Skip to content

Instantly share code, notes, and snippets.

View SkyzohKey's full-sized avatar

SkyzohKey SkyzohKey

View GitHub Profile
@SkyzohKey
SkyzohKey / tox-clients.json
Last active September 3, 2016 00:53
A list of Tox clients with description, website, source code link, maintainer and download links for every supported platform. Don't hesitate to directly parse the RAW version of this gist, I'll try to keep it updated the more I can, and if it hasn't been updated since long, just fork ! :)
{
"clients": {
"qTox": {
"description": "A Qt graphical user interface for Tox.",
"website": "https://qtox.github.io/",
"source": "https://github.com/tux3/qTox/",
"maintainer": "Tux3",
"downloadLinks": {
"linux": {
"packages-obs": "https://software.opensuse.org/download.html?project=home%3Aantonbatenev%3Atox&package=qtox"
@SkyzohKey
SkyzohKey / stop-alias.sh
Created September 18, 2016 00:22
This alias permits to add a stop command to your shell. Add it at the end of your `.bashrc/.zshrc/.fishrc/whatever` then `$ source $HOME/.zshrc` and enjoy the `stop` command!
###
# stop - Permits to stop an app with a single command.
# @usage: stop {process-name}
# @exemple: stop firefox
###
function alias_stop() {
APP=$1
PID=$(pidof $@)
# If no app(s) name is/are given, exit.

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.

@SkyzohKey
SkyzohKey / EventSocket.js
Last active April 17, 2017 21:28
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;
@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]

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 / 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

@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 / 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>