Skip to content

Instantly share code, notes, and snippets.

View nerdoc's full-sized avatar

Christian González nerdoc

View GitHub Profile
@nerdoc
nerdoc / rotajakiro-detect
Last active May 19, 2021 09:33
simple detect script for RotaJakiro
#!/bin/bash
# you can run this script (if you dare...) using
# wget -qO- https://gist.githubusercontent.com/nerdoc/f058ac5a26abfe91b9f0bdfe862dc5ab/raw/c87455cfbfde19ce4877367a7f4f8785ca8a2cc8/rotajakiro-detect | sh
# The hash is not the current, this is technically not possible, because while I change save the above line,
# knowing the hash, it changes it. Greetings from Werner Heisenberg.
files="bin/systemd/systemd-daemon /usr/lib/systemd/systemd-daemon /home/*/.dbus/sessions/session-dbus /home/*/.gvfsd/.profile/gvfsd-helper"
for i in "${files}"; do
if [ -f "$i" ];
@harvimt
harvimt / alchemical_model.py
Created February 2, 2013 20:41
SQLAlchemy to/from PyQt Adapters
#!/usr/bin/env python2
#-*- coding=utf-8 -*-
# © 2013 Mark Harviston, BSD License
from __future__ import absolute_import, unicode_literals, print_function
"""
Qt data models that bind to SQLAlchemy queries
"""
from PyQt4 import QtGui
from PyQt4.QtCore import QAbstractTableModel, QVariant, Qt
import logging # noqa
@bjornharrtell
bjornharrtell / Coffeescript ctags
Created June 9, 2012 17:14 — forked from yury/Coffeescript ctags
ctags definitions for coffeescript. Detects classes, static/class methods, fields, static fields, plain functions, variables.
--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/(^|=[ \t])*class ([A-Za-z]+\.)*([A-Za-z]+)( extends [A-Za-z.]+)?$/\3/c,class/
--regex-coffee=/^[ \t]*(module\.)?(exports\.)?@?([A-Za-z.]+):.*[-=]>.*$/\3/m,method/
--regex-coffee=/^[ \t]*(module\.)?(exports\.)?([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\3/f,function/
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/
--regex-coffee=/^[ \t]*@([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/f,field/
--regex-coffee=/^[ \t]*@([A-Za-z.]+):[^->\n]*$/\1/f,static field/
--regex-coffee=/^[ \t]*([A-Za-z.]+):[^->\n]*$/\1/f,field/
--regex-coffee=/(constructor: \()@([A-Za-z.]+)/\2/f,field/