Skip to content

Instantly share code, notes, and snippets.

View saily's full-sized avatar

Daniel Widerin saily

View GitHub Profile
@danieleggert
danieleggert / GPG and git on macOS.md
Last active May 3, 2024 12:26
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@josy1024
josy1024 / airmonitor_setup.sh
Last active May 1, 2020 14:02
rehau usb airsensor monitoring raspberry pi
# Voltcraft-CO-20
# rehau raumluftsensor USB
# dmesg:
# hid-generic 0003:03EB:2013.0001: hiddev0,hidraw0: USB HID v1.11 Device [AppliedSensor iAQ Stick] on usb-20980000.usb-1.3.7/input0
# source: https://code.google.com/archive/p/usb-sensors-linux/wikis/Install_AirSensor_Linux.wiki
sudo apt-get install libusb-dev
sudo apt-get install build-essential
wget https://raw.githubusercontent.com/jschanz/usb-sensors-linux/master/airsensor/airsensor.c
@warmfusion
warmfusion / README.md
Last active May 21, 2018 15:00
Cloud Init script for building a coreos cluster at home on XenServer using Cloud-Init and ETCD2

This Cloud-init script can be used to bootstrap a Xen based CoreOS server through Xen orchestra.

Features;

  1. Workaround for the lack of /etc/environment on 'unsupported' hypervisors
  2. Static IP allocation to deal with dhcp causing problems (On my network at least)
  3. etcd2 bootstrap discovery using public service and discovery tokens
    1. Manual reconfiguration to allow for membership changes after cluster is operational

Usage

@jensens
jensens / configure.zcml
Created May 7, 2014 12:54
disable set login time every time a a user logs in
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:monkey="http://namespaces.plone.org/monkey">
<include package="collective.monkeypatcher" file="meta.zcml" />
<monkey:patch
description="Patch setLoginTimes to disable that feature."
class="Products.PlonePAS.tools.membership.MembershipTool"
original="setLoginTimes"
replacement=".patches.setLoginTimes"
@regebro
regebro / sanetizing_plone_views.rst
Last active December 15, 2015 21:29
Overview over ways to create views in Zope, and some opinions on their future.

Sanetizing Plone Views

(Pun intended)

There are too many ways of createing views in Plone. This needs fixing. It's a job that is too much for any one person, so we need a plan. This is an attempt to look at the situation and asses things so that we can make a plan, which can then be made into a PLIP and worked on.

@gourneau
gourneau / python-pil-image-sprite.py
Created April 24, 2011 02:45
Make sprites of images using Python and PIL
#!/usr/bin/python
# This work is licensed under the Creative Commons Attribution 3.0 United
# States License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by/3.0/us/ or send a letter to Creative
# Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
# from http://oranlooney.com/make-css-sprites-python-image-library/
# Orignial Author Oran Looney <olooney@gmail.com>