Skip to content

Instantly share code, notes, and snippets.

View palesz's full-sized avatar

Andras Palinkas palesz

  • Toronto, Canada
View GitHub Profile
# activity window
setw -g monitor-activity on
setw -g window-status-activity-bg red
setw -g window-status-activity-fg yellow
#turn off automatic rename
set-option -g allow-rename off
@palesz
palesz / feedly.opml
Created April 20, 2014 02:21
palesz's opml - what do I read
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>palesz's subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="news-hun" title="news-hun">
<outline type="rss" text="Index - Belföld" title="Index - Belföld" xmlUrl="http://index.hu/belfold/rss/default/" htmlUrl="http://index.hu/belfold/"/>
<outline type="rss" text="!!444!!!" title="!!444!!!" xmlUrl="http://444.hu/feed/" htmlUrl="http://444.hu"/>
@palesz
palesz / diffmerge_diff.sh
Created August 23, 2012 16:19
Git configuration to be able to use SourceGear DiffMerge
"C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe" /title1="Old" "$1" /title2="New" "$2"
@palesz
palesz / .gitconfig
Last active December 17, 2015 03:59
gitconfig
[alias]
lg = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
fo = fetch origin
co = commit
po = push origin
pfo = push --force origin
@palesz
palesz / dashboard-looper.html
Created January 20, 2016 04:01
Dashboard looper
<html>
<head>
<title>Dashboard Looper</title>
<script type="text/javascript">
var dashboards = [
{
"title": "Palesz.org",
"url": "http://palesz.org",
"delay": "5"
},
@palesz
palesz / workflow-kanban.user.js
Last active March 24, 2016 16:06
A simple Kanban view on top of workflowy (implemented as a Greasemonkey/Tampermonkey user script)
// ==UserScript==
// @name workflowy-kanban
// @namespace http://palesz.org/
// @include https://workflowy.com/*
// @version 1
// @grant none
// ==/UserScript==
function escapeRegExp(str) {
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
@palesz
palesz / cljify.clj
Created October 6, 2016 00:11
Convert any arbitrary Java object hierarchy to Clojure map of maps
(ns cljify)
(require 'clojure.string)
(require 'clojure.walk)
(defn cljify1 [o]
(when (not (nil? o))
(let [cname (.getName (class o))
s (partial clojure.string/starts-with? cname)]
(cond
@palesz
palesz / kwmrc
Created November 3, 2016 22:54
Kwm configuration for Mac OS
/*
This is a sample config for Kwm
The following statements can be used to set Kwms internal directory structure.
This is the root folder for Kwms files, the only thing this actually
specifies is the location of the 'init' script which Kwm runs upon startup.
Defaults to $HOME/.kwm
kwm_home /path/to/.kwm
#!/bin/sh
# run this script using the
# wget -O - "https://gist.github.com/palesz/4a1d11df096a1bcd852878dc5e13b9ef/raw" | sh
# command
# change scale factor
dconf write /com/ubuntu/user-interface/scale-factor "{'eDP1': 13}"
# enable multiverse
sudo apt-add-repository multiverse && sudo apt-get update
@palesz
palesz / init.el
Last active December 16, 2016 15:20
Emacs package list
;; Package list I'm depending on and needs to make sure that it's installed
(setq my-package-list '(use-package
magit
org
cider
clj-refactor
parinfer
auto-complete
evil