Skip to content

Instantly share code, notes, and snippets.

@jetztgradnet
jetztgradnet / MajugVerlosungen.md
Created August 24, 2015 06:11
Majug Verlosungen

== Majug Verlosungen ==

Alle Eintraege werden mit einer Nummer versehen (erste Nummer: 0) in eine Datei geschrieben und diese unter verlosung/-<title>.txt gepusht nach majug/resources gepusht. Die letzten beiden Stellen des Commit-Hashes werden verwendet, um den Gewinner zu ermitteln:

// 0x37 steht hier für die letzten beiden Stellen eines Commit-Hashes wie z.B. 2bd55893dce4eb2fb26a56c1dadcb3dabfa73037 // (https://github.com/majug/resources/commit/2bd55893dce4eb2fb26a56c1dadcb3dabfa73037) groovy -e 'println "the winner is in line " + (0x37 % 8) '

Script to extract iCloud calendar URLs

This script can be used to extract iCloud calendar URLs. As a prerequisite the calendars must be visible in your local Calendar.app or iCloud preference pane.

The calendar configuration is stored in ~/Library/Calendars with sub folders for individual calendars.

Example output:

> icloud-calendars
/Users/myuser/Library/Calendars/XXXXXXXX-YYYY-ZZZZ-AAAA-BBBBBBBBBBBB.caldav/Info.plist
@jetztgradnet
jetztgradnet / _Events.groovy
Created February 10, 2011 00:16
Grails OSGi plugin: _Events.groovy modified for Grails 1.3.6
import grails.util.BuildSettingsHolder
// TODO move all of this into _Osgi.groovy
def optional="resolution:=optional"
def osgiImportSpecs = "version=\"[1.5.0, 5.0.0)\""
def servletImportSpecs = "version=\"[2.4.0, 2.6.0)\""
def jspImportSpecs = "version=\"[2.1.0, 2.3.0)\";$optional"
def jstlImportSpecs = "version=\"[1.1.0, 2.0.0)\";$optional"
@jetztgradnet
jetztgradnet / gist:808972
Created February 3, 2011 03:05
Elastic Beanstalk configuration options (long version)
"Options":[
{
"ChangeSeverity":"NoInterruption",
"DefaultValue":"",
"MaxLength":2000,
"MaxValue":null,
"MinValue":null,
"Name":"Notification Topic Name",
"Namespace":"aws:elasticbeanstalk:sns:topics",
"Regex":null,
@jetztgradnet
jetztgradnet / gist:808968
Created February 3, 2011 03:03
Elastic Beanstalk configuration options
aws:autoscaling:asg Availability Zones
aws:autoscaling:asg Cooldown
aws:autoscaling:asg Custom Availability Zones
aws:autoscaling:asg MaxSize
aws:autoscaling:asg MinSize
aws:autoscaling:launchconfiguration EC2KeyName
aws:autoscaling:launchconfiguration ImageId
aws:autoscaling:launchconfiguration InstanceType
aws:autoscaling:launchconfiguration MonitoringInterval
aws:autoscaling:launchconfiguration SecurityGroups
@jetztgradnet
jetztgradnet / eb-list-options.sh
Created February 3, 2011 02:58
Script to list available Elastic Beanstalk options
elastic-beanstalk-describe-configuration-settings -j | # get available options
jazor | # pretty print json
grep Name | # grep for Name and Namespace
# join Namespace and Name
awk '-F"' 'BEGIN { name=""; namespace=""; } /"Name"/ { name=$4 } /"Namespace"/ { namespace=$4; printf "%-50s\t%s\n", namespace, name }' |
sort # sort results by namespace
@jetztgradnet
jetztgradnet / gist:808950
Created February 3, 2011 02:46
Usage of script to start an Amazon ElasticBeanstalk application with configuration parameters
usage: eb-create-app.sh <options> -a appname {-e envname|-T template}
eb-create-app.sh <options> -a appname -e envname
create and start an application
eb-create-app.sh <options> -a appname -T template
create an application and a configuration template
-a appname application name (required)
-e environment Name of environment to create
-T template Name of configuration template to create
-d desciption application description
@jetztgradnet
jetztgradnet / eb-create-app.sh
Created February 3, 2011 02:43
Script to start an Amazon ElasticBeanstalk application with configuration parameters
#!/bin/sh
########################################################
# history
########################################################
#
# 0.3 (2011-02-08)
# - create/update configuration template 'InitialConfig' instead
# of 'Default', which is not editable
#
@jetztgradnet
jetztgradnet / beanstalk-ami-readme.txt
Created January 22, 2011 14:00
Readme of Amazon Elastic Beanstalk AMI running Amazon Linux release 2010.11.1 (beta)
Changes in Amazon Linux AMI Beta2 (v 2010.11):
Security Updates:
=================
* glibc package update
CVE-2010-3856: glibc: ld.so arbitrary DSO loading via LD_AUDIT in setuid/setgid programs
CVE-2010-3847: glibc: ld.so insecure handling of $ORIGIN in LD_AUDIT for setuid/setgid programs
* kernel package updates for
CVE-2010-3081: kernel: 64-bit Compatibility Mode Stack Pointer Underflow
CVE-2010-3301: kernel: IA32 System Call Entry Point Vulnerability
@jetztgradnet
jetztgradnet / beanstalk-processes.txt
Created January 22, 2011 13:57
Processes running on a Amazon Elastic Beanstalk instance
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 20:52 ? 00:00:00 init [3]
root 2 0 0 20:52 ? 00:00:00 [kthreadd]
root 3 2 0 20:52 ? 00:00:00 [migration/0]
root 4 2 0 20:52 ? 00:00:00 [ksoftirqd/0]
root 5 2 0 20:52 ? 00:00:00 [watchdog/0]
root 6 2 0 20:52 ? 00:00:00 [events/0]
root 7 2 0 20:52 ? 00:00:00 [cpuset]
root 8 2 0 20:52 ? 00:00:00 [khelper]
root 11 2 0 20:52 ? 00:00:00 [netns]