Skip to content

Instantly share code, notes, and snippets.

View xtrm-en's full-sized avatar
💭

xtrm xtrm-en

💭
View GitHub Profile

aspe:keyoxide.org:QWHCUNZ26HF6KQBLYDLQLZ7RUY openpgp4fpr:E10E571571E763E41245024E8B06E1A7DCED2740

#!/bin/bash
cat <<EOF >/usr/share/applications/org.gnome.Terminal.desktop
[Desktop Entry]
Name=Terminyal~
Comment=Use the command line
Keywords[en_GB]=shell;prompt;command;commandline;cmd;
Keywords[fr]=shell;prompt;commande;ligne de commande;cmd;
Keywords=shell;prompt;command;commandline;cmd;
TryExec=gnome-terminal
function getByX(path) {
return document.evaluate(
path,
document,
null,
XPathResult.FIRST_ORDERED_NODE_TYPE,
null
).singleNodeValue;
}
const cardXPath =
@xtrm-en
xtrm-en / .vimrc
Last active July 28, 2022 14:50
42 .vimrc
"" Install vim-plug
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
"" Auto-update plugins
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | source $MYVIMRC

Keybase proof

I hereby claim:

  • I am xtrm-en on github.
  • I am xtrm_ (https://keybase.io/xtrm_) on keybase.
  • I have a public key ASDP6ES2O6720o5ZY5oBmq0MFXs7CqU5KhUwD_4Fmx9rzAo

To claim this, I am signing this object:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Permission Parser v1.0.1
Contains various utilities to parse Discord's permissions.
"""
# Default Discord permissions values
# From https://github.com/discord/discord-api-docs/blob/master/docs/topics/Permissions.md
package me.xtrm.E_xTrM.ui.tabgui;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import org.lwjgl.input.Keyboard;
import me.xtrm.E_xTrM.E_xTrM;
import me.xtrm.E_xTrM.module.Module;