Skip to content

Instantly share code, notes, and snippets.

View SkyzohKey's full-sized avatar

SkyzohKey SkyzohKey

View GitHub Profile
@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]

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 / 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.
@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 / gtk+3-reset.css
Created July 5, 2016 10:18
@import this colorsheet to get the default values for every property on a Gtk+3 Widget.
/* @import this colorsheet to get the default values for every property.
* This is useful when writing special CSS tests that should not be
* inluenced by themes - not even the default ones.
* Keep in mind that the output will be very ugly and not look like
* anything GTK.
* Also, when adding new style properties, please add them here.
*/
* {
color: inherit;
@SkyzohKey
SkyzohKey / jfreegman-is-a-kid.log
Last active June 22, 2016 16:38
Here is the reason of why i decided to stop working on Tox related softwares, cuz some members are toxics for the project. Especially Jfreegman who is a fucking cancer.
<SkyzohKey> >toxcore is dead, it hasn't had any serious changes in the past two years
<SkyzohKey> +
<SkyzohKey> +1*
<Jfreegman> SkyzohKey: you haven't even been around for 2 years broseph
<SkyzohKey> lel
<Jfreegman> tox got a brand new API a little over a year ago
<Jfreegman> followed by a new AV API
<SkyzohKey> I was here, not on irc ofc, but i was already using tox
<SkyzohKey> and the nex av api was crap
<SkyzohKey> new*
@SkyzohKey
SkyzohKey / accel.vala
Last active June 14, 2016 04:08
This sample code permits to make application-wide keyboard shortcuts using AccelGroup and Action Signals in Vala.
[Signal (action = true)]
private signal void change_chat_up ();
[Signal (action = true)]
private signal void change_chat_down ();
public MainWindow () {
this.init_keyboard_shortcuts ();
}
private void init_keyboard_shortcuts () {
@SkyzohKey
SkyzohKey / rename.sh
Created June 10, 2016 08:23
Rename a git branch locally and remotly (don't do this for branch that have pull-request or that are worked on by multiple peoples)
git branch -m old-branch new-branch # Delete and recreate with the new name.
git push origin :old-branch # Delete the branch on origin remote.
git push origin new-branch # Push the renamed branch on origin remote.
@SkyzohKey
SkyzohKey / PKGBUILD
Created May 10, 2016 15:15
Ricin new pkgbuild with waf
# Maintainer: Yuexuan Gu <lastavengers@outlook.com>
pkgname=ricin-git
_pkgname=Ricin
_submodule=tox-vapi
pkgver=0.652.786de97
pkgrel=1
pkgdesc="A dead-simple but powerful Tox client."
url="https://github.com/RicinApp/Ricin"
arch=('i686' 'x86_64')
@SkyzohKey
SkyzohKey / README.md
Last active March 24, 2016 00:36
PandaLogger - A simple PandaJS plugin that brings basic logger features into the game scope.

PandaLogger

PandaLogger is a plugin for Panda.js that brings basic logger features into the game scope. To learn more about this plugin, read the following samples.

Installation

In order to install PandaLogger, simply copy this file into your <project_root>/src/plugins folder. That's all ! You'll then have to require it whenever you want to use it in your code. (see samples)

Mini-doc

LogType's allowed with PandaLogger