Skip to content

Instantly share code, notes, and snippets.

@eddy-geek
eddy-geek / gist:4532911
Created January 14, 2013 20:07
kwin-script-winactivateorlaunch.js
// qdbus org.kde.plasma-desktop /MainApplication showInteractiveKWinConsole
// plasmapkg -t kwinscript -l
// ls ~/.kde/share/apps/kwin/scripts
var windowGroups = new Object();
function WindowType(classname, title) {
this.classname = classname;
this.title = title;
}
; ticker - A Simple Time Tracker
; track your time usage on a daily basis
#InstallKeybdHook
#InstallMouseHook
Menu, Tray, Icon, %A_WinDir%\system32\shell32.dll, 44
Menu, Tray, Tip, ticker - A Simple Time Tracker`nPress right control to see details
SetWorkingDir, C:\Users\%A_UserName%\Documents
SetTimer, CheckTime, 60000 ; updates every 1 minute
;
; Keyboard Layout definition for
; Portable Keyboard Layout
; http://pkl.sourceforge.net
;
[informations]
layoutname = Development
layoutcode = dev
localeid = 00000409
@eddy-geek
eddy-geek / python_custom_openssl.diff
Last active March 5, 2024 13:56
Compile python with statically linked openssl
--- a/setup.py 2014-03-17 03:31:31.000000000 +0100
+++ b/setup.py 2014-03-17 19:06:03.000000000 +0100
@@ -750,10 +750,8 @@
exts.append( Extension('_socket', ['socketmodule.c'],
depends = ['socketmodule.h']) )
# Detect SSL support for the socket module (via _ssl)
- search_for_ssl_incs_in = [
- '/usr/local/ssl/include',
- '/usr/contrib/ssl/include/'
- ]
@eddy-geek
eddy-geek / hat-trie_setup_log
Created June 23, 2014 10:03
LDFLAGS="-L/opt/Python-2.7/lib/python2.7/config/" pip install hat-trie
------------------------------------------------------------
/data2/me/python-dj-ldap/bin/pip run on Mon Jun 23 11:46:15 2014
Downloading/unpacking hat-trie
Getting page https://pypi.python.org/simple/hat-trie/
URLs to search for versions for hat-trie:
* https://pypi.python.org/simple/hat-trie/
Analyzing links from page https://pypi.python.org/simple/hat-trie/
Found link https://pypi.python.org/packages/source/h/hat-trie/hat-trie-0.1.tar.gz#md5=0bb6ca4109f141486161ce6891c673ee (from https://pypi.python.org/simple/hat-trie/), version: 0.1
Downloading hat-trie-0.1.tar.gz
[1] 27203
PY2 ___ 15:06:15 27203 INFO : serving on localhost:11166
PY2 ___ 15:06:17 27203 DEBUG : Client connected
___ PY3 15:06:17 27224 DEBUG : Writing 'b'gAJjZGF0ZXRpbWUKZGF0ZXRpbWUKcQBjX2NvZGVjcwplbmNvZGUKcQFYDAAAAAfDngcRDwYRBQrCkHECWAYAAABsYXRpbjFxA4ZxBFJxBYVxBlJxBy4=''
PY2 ___ 15:06:17 27203 DEBUG : Raw query 'gAJjZGF0ZXRpbWUKZGF0ZXRpbWUKcQBjX2NvZGVjcwplbmNvZGUKcQFYDAAAAAfDngcRDwYRBQrCkHECWAYAAABsYXRpbjFxA4ZxBFJxBYVxBlJxBy4=
'
---------------- PickleTools ---------------
0: \x80 PROTO 2
2: c GLOBAL 'datetime datetime'
21: q BINPUT 0
gsettings set org.gnome.shell.keybindings toggle-message-tray "['<Shift><Super>m']" # Free Win+V, Win+M
gsettings set org.gnome.shell.keybindings toggle-application-view "@as []" # Free Win+A
gsettings set org.gnome.shell.keybindings toggle-overview "@as []" # Free Win+S
gsettings set org.gnome.shell.keybindings focus-active-notification "@as []" # Win+N
# remvoed -- gsettings set org.gnome.shell.keybindings panel-main-menu "['<Alt>F1']" # Free Win+S
kpath=/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom
key="org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$kpath"
@eddy-geek
eddy-geek / toggle_edit.ts
Created February 16, 2017 21:45
ngx-datatable-column + toggle does not work
import { Component } from '@angular/core';
@Component({
selector: 'column-toggle-demo',
template: `
<div>
<h3>Column Toggling</h3>
<div style='float:left;width:75%'>
<ngx-datatable
class='material'
@eddy-geek
eddy-geek / README.md
Last active October 11, 2017 19:15
Demographic Statistics_By_Zip_Code - README is empty

README is empty

@eddy-geek
eddy-geek / simple_python_datasource.py
Created January 9, 2018 19:26 — forked from linar-jether/simple_python_datasource.py
Grafana python datasource - using pandas for timeseries and table data. inspired by and compatible with the simple json datasource
from flask import Flask, request, jsonify, json, abort
from flask_cors import CORS, cross_origin
import pandas as pd
app = Flask(__name__)
cors = CORS(app)
app.config['CORS_HEADERS'] = 'Content-Type'