This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Standard awesome library | |
local gears = require("gears") | |
local awful = require("awful") | |
awful.widget.cpu = require("awful.widget.cpu") | |
awful.widget.battery = require("awful.widget.battery") | |
require("awful.autofocus") | |
-- Widget and layout library | |
local wibox = require("wibox") | |
-- Theme handling library | |
local beautiful = require("beautiful") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
-- @author jesus <ask@jesus.now> | |
-- @copyright 0 Jesus | |
-- @release v0.0.0 | |
--------------------------------------------------------------------------- | |
local setmetatable = setmetatable | |
local os = os | |
local textbox = require("wibox.widget.textbox") | |
local capi = { timer = timer } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
# | |
# a tool to help with source control | |
# only does git, but could/should handle more (hg, svn, ..) | |
# | |
# TODO normalize output (of find) | |
# | |
# // zarac | |
COLDEF="\033[0m" # default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
FILE=$1 && shift | |
# screen with and height | |
wh=$(xrandr | grep '*' | awk '{ print $1 }') | |
w=$(echo $wh | awk -F'x' '{ print $1 }') | |
h=$(echo $wh | awk -F'x' '{ print $2 }') | |
if [ -z $FPS ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by zarac on 10/28/14. | |
*/ | |
import com.microsoft.sqlserver.jdbc.SQLServerDriver; | |
import java.sql.*; | |
public class mainz0r { | |
public static String connectionUrl = "jdbc:sqlserver://vart.nu:8887;databaseName=GRUPP18C;user=alle;password=hemligt;"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! Testicle(hi) | |
echomsg 'XXXX' | |
echomsg a:hi | |
echomsg getline(".") | |
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
favit.bookmarks(null , function(data) { | |
console.log('data', data) | |
dust.render(' | |
for (var i = 0 ; i < data.rows.length ; i++) | |
$('section.bookmark').append('<article class="bookmark"><a href="' + data.rows[i].value.url + '">' + data.rows[i].value.title + '</a></article>') } ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* A scraper for narpm.org, as described at | |
* https://www.odesk.com/o/jobs/job/_~011b56c2f6e6ad6885/ | |
* | |
* The job got cancelled and therefore this script. | |
*/ | |
/* libz */ | |
var request = require('request') | |
var $ = require('cheerio') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
up='user:password' | |
line="couchapp push app.js http://${up}@host/database" | |
echo $line | |
$line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var couchapp = require('couchapp') | |
var path = require('path') | |
var ddoc = { | |
_id : "_design/index", | |
rewrites : [ | |
{ from : '', | |
to : '_list/tags/tag' }, | |
{ from : '*', |
NewerOlder