Skip to content

Instantly share code, notes, and snippets.

View NuckChorris's full-sized avatar

Peter Lejeck NuckChorris

View GitHub Profile
filename="$(date +"%Y-%m-%d-%H:%M:%S-$RANDOM")${1:e}"
rsync "$1" balthasar.plejeck.com:"/usr/share/nginx/html/up/$filename"
echo "http://balthasar.plejeck.com/up/$filename"
typedef struct {
bool full;
bool charging;
bool discharging;
double percent;
} acpi_state;
local assault = wibox.widget.base.make_widget()
function assault.fit (assault, width, height)
local width = math.min(width, assault.size.width)
local height = math.min(height, assault.size.height)
return width, height
end
local battery_bolt_generate = function (width, height)
local surface = cairo.ImageSurface.create('A8', width, height)
local cr = cairo.Context.create(surface)
local assault = wibox.widget.base.make_widget()
function assault.fit (assault, width, height)
local width = math.min(width, assault.size.width)
local height = math.min(height, assault.size.height)
return width, height
end
local battery_bolt_generate = function (width, height)
local surface = cairo.ImageSurface.create('A8', width, height)
local cr = cairo.Context.create(surface)
@NuckChorris
NuckChorris / PKGBUILD
Last active December 22, 2015 23:09
Adds true transparency to AwesomeWM's wibox, so you can use fancy compositor features like blurs.
# $Id: PKGBUILD 97098 2013-09-12 18:19:17Z seblu $
# Maintainer: Sébastien Luttringer
# Contributor: xduugu
# Contributor: Ronald van Haren <ronald.archlinux.org>
# Contributor: Vesa Kaihlavirta
pkgname=awesome
pkgver=3.5.1
pkgrel=2
pkgdesc='Highly configurable framework window manager'
FlatterVim = {
:gui => {
:fg => "DFDFDF",
:bg => "5E4333"
},
:form => {
:fg => "FFFFFF",
:bg => "382B25"
},
:selected => {
# Makefile.in generated by automake 1.10.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
Dropship repackaging as a service
- you set us as destination address
- give us customer address & identifier for transaction
- we repackage to your specifications and send it on
Twilio for physical mail
- wrap OCR into an API, expose it similarly to HTTP forms
- use a webhook to send the results of incoming mail to the customer
<?php
/*
* Name: Image Ratings
* Author: Shish <webmaster@shishnet.org>
* Link: http://code.shishnet.org/shimmie2/
* License: GPLv2
* Description: Allow users to rate images "safe", "questionable" or "explicit"
*/
class RatingSetEvent extends Event {
<?php
/*
* Name: Image Ratings
* Author: Shish <webmaster@shishnet.org>
* Link: http://code.shishnet.org/shimmie2/
* License: GPLv2
* Description: Allow users to rate images "safe", "questionable" or "explicit"
*/
class RatingSetEvent extends Event {