Skip to content

Instantly share code, notes, and snippets.

@Tyderion
Tyderion / Things.md
Created September 12, 2014 08:58
Android Useful Libs
@Tyderion
Tyderion / CreateAppointment.vba
Created May 21, 2014 11:30
Create appointment from mail (Outlook 2013)
Sub CreateAppointmentFromMail()
Const mailItem_c As String = "MailItem"
Dim OE As Outlook.Explorer
Dim MI As Outlook.MailItem
Dim AI As Outlook.AppointmentItem
Dim TI As Outlook.TaskItem
Set OE = Application.ActiveExplorer
'Abort sub if no item selected:
@Tyderion
Tyderion / gist:11289897
Created April 25, 2014 13:39
Sample Application which shows wrong padding when using Custom Preference with default layout
asdf
@Tyderion
Tyderion / DropboxConnectorPreference.java
Last active August 29, 2015 14:00
Preferences wrong default padding
package ch.isageek.tyderion.habittracker.settings;
import android.content.Context;
import android.preference.TwoStatePreference;
import android.util.AttributeSet;
import ch.isageek.tyderion.habittracker.R;
/**
* Created by tzhnaga1 on 24/04/14.
@Tyderion
Tyderion / pact.recipe.py
Created April 5, 2014 18:24
create books from pact webserial: http://pactwebserial.wordpress.com/
import time
import re
from calibre.web.feeds.recipes import BasicNewsRecipe
from calibre.web.feeds import Feed
from calibre.constants import config_dir, CONFIG_DIR_MODE
import os, os.path, urllib
from hashlib import md5
class PactRecipe(BasicNewsRecipe):
@Tyderion
Tyderion / init-mounts.sh
Last active December 22, 2015 22:38
Mount disks and then mount the folders for the nfs shares and remount them readonly. Checks if target nfs folder is mounted already.
#!/bin/bash
### BEGIN INIT INFO
# Provides: archiemount
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Should-Start:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Mount my partitions in /var/nfs/ for use in nfs sharing
for i=5,0,-1 do
print("waiting to start... " .. i)
sleep(1)
end
shell.run("order")
@Tyderion
Tyderion / order.lua
Last active December 21, 2015 11:19
rednet.open("back")
local master = 0
term.clear()
local commandkeys = {
keys.leftCtrl,
keys.rightControl,
keys.leftShift,
keys.rightShift,
keys.leftAlt,
keys.rightAlt
local modemside = "right"
local dirt = "dirt"
local registered = false
local master = 0
function checkModem()
if (not rednet.isOpen(modemside)) then rednet.open(modemside) end
end