Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
ship it

Mark Janssen praseodym

:shipit:
ship it
View GitHub Profile
@praseodym
praseodym / gist:0b0cab838649fa655248
Created February 18, 2015 14:08
strongswan ciphers
View gist:0b0cab838649fa655248
[2.2-RELEASE][root@fw-01.chnet]/var/etc/ipsec: ipsec listall
List of X.509 CA Certificates:
subject: "C=NL, ST=Zuid-Holland, L=Delft, O=WISVCH, E=beheer@ch.tudelft.nl, CN=internal-ca"
issuer: "C=NL, ST=Zuid-Holland, L=Delft, O=WISVCH, E=beheer@ch.tudelft.nl, CN=internal-ca"
serial: 00
validity: not before Jan 09 02:06:45 2015, ok
not after Jan 06 02:06:45 2025, ok
pubkey: RSA 2048 bits
View consoleblank.yml
---
- name: configure kbd
template: src=kbd-config.j2 dest=/etc/kbd/config mode=644 owner=root group=root
notify:
- reload kbd
- name: update grub to disable console blanking
lineinfile: dest=/etc/default/grub state=present regexp="^GRUB_CMDLINE_LINUX_DEFAULT=.*$" line="GRUB_CMDLINE_LINUX_DEFAULT=\"consoleblank=0\""
notify:
View psql.diff
2c2
< -- Tables for OIDC Server functionality, HSQL
---
> -- Tables for OIDC Server functionality, PostgreSQL
6c6
< id BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) PRIMARY KEY,
---
> id SERIAL PRIMARY KEY,
23c23
< id BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) PRIMARY KEY,
@praseodym
praseodym / graphviz.md
Last active August 29, 2015 14:22
Graphviz template
View graphviz.md

Compile with Graphviz.

Command line: dot -Tpdf template.gv -o template.pdf

@praseodym
praseodym / zshrc
Created August 31, 2015 07:37
old zshrc without external dependencies
View zshrc
setopt NOHUP
# setopt AUTO_LIST # these two should be turned off
# setopt AUTO_REMOVE_SLASH # When the last character resulting from a completion is a slash and the next character typed is a word delimiter, remove the slash.
setopt HIST_ALLOW_CLOBBER
setopt HIST_REDUCE_BLANKS
setopt INC_APPEND_HISTORY SHARE_HISTORY
setopt ALL_EXPORT
setopt AUTO_CD # cd if no matching command
setopt EXTENDED_HISTORY # saves timestamps on history
@praseodym
praseodym / trace.log
Created September 19, 2015 15:56
SSL error with OpenSAML 2.6.4
View trace.log
Sep 19 17:45:32 hendrik java[20881]: INFO : org.apache.commons.httpclient.HttpMethodDirector - I/O exception (javax.net.ssl.SSLPeerUnverifiedException) caught when processing request: SSL peer failed hostname validation for name: 130.161.129.121
Sep 19 17:45:32 hendrik java[20881]: INFO : org.apache.commons.httpclient.HttpMethodDirector - Retrying request
Sep 19 17:45:32 hendrik java[20881]: INFO : org.apache.commons.httpclient.HttpMethodDirector - I/O exception (javax.net.ssl.SSLPeerUnverifiedException) caught when processing request: SSL peer failed hostname validation for name: 130.161.129.121
Sep 19 17:45:32 hendrik java[20881]: INFO : org.apache.commons.httpclient.HttpMethodDirector - Retrying request
Sep 19 17:45:32 hendrik java[20881]: INFO : org.apache.commons.httpclient.HttpMethodDirector - I/O exception (javax.net.ssl.SSLPeerUnverifiedException) caught when processing request: SSL peer failed hostname validation for name: 130.161.129.121
Sep 19 17:45:32 hendrik java[20881]: INFO : org.apache.commons
View testserver6.vmx
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "11"
nvram = "testserver6.nvram"
pciBridge0.present = "TRUE"
svga.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
@praseodym
praseodym / quickAndDirtyNewsArticle
Created November 2, 2011 15:37 — forked from SpacyRicochet/quickAndDirtyNewsArticle.html
Quick and dirty html template for news articles in iPad app.
View quickAndDirtyNewsArticle
<!DOCTYPE html>
<style type="text/css">
p.clear {
clear:both;
}
</style>
<div style="float: left;">
<img class="newsPhoto" src="http://www.iphoneplatform.nl/upload/1238413896apple-logo-black-xsan.jpg" width="250" height="100">
<br>
<img src="http://www.iphoneplatform.nl/upload/1238413896apple-logo-black-xsan.jpg" width="60" height="60">
View JavaDay.java
import java.util.Calendar;
public class JavaDay {
public static void main(String[] args) {
Calendar date = Calendar.getInstance();
date.set(2012, 6, 28);
System.out.println(date.getTime() + " is Java Day, a day where everybody speaks in Java.");
System.out.println("Why? Just because we can.\n");
@praseodym
praseodym / collegerama.py
Created June 21, 2012 09:26
Collegerama rip to mp4
View collegerama.py
#!/usr/bin/env python
# By Mark Janssen,
# Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License
from xml.dom import minidom
from math import ceil
from collections import deque
from subprocess import call
from tempfile import mkdtemp