Skip to content

Instantly share code, notes, and snippets.

View cjk's full-sized avatar
💭
I may be slow to respond.

Claus Klingberg cjk

💭
I may be slow to respond.
View GitHub Profile
@cjk
cjk / .cVimrc
Last active October 14, 2015 12:39
" Settings
set noautofocus
set cncpcompletion
set nosmoothscroll
set nohud
set autohidecursor
set typelinkhints
let scrollduration = 10
@cjk
cjk / cors-nginx.conf
Last active December 23, 2015 19:59 — forked from michiel/cors-nginx.conf
nginx.conf with wide open CORS-settings and using a API-management-proxy
## nginx.conf with wide open CORS-config using an API-management-proxy
## version 0.9 07.10.2013 Claus Klingberg <cjk@pobox.com>
#user html;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
@cjk
cjk / lang_mapping.rb
Created November 15, 2011 09:02
Sprachmapping @Daimler
# How to map different language-codes from different systems @daimler.com
MAP = {
:bg => {:desc_de => "Bulgarisch", :desc_en => "Bulgarian", :daimler_code => "BGR_XXX", :daimler_numcode => "107", :arctis_code => "027", :iso639_2 => "bul", :asra_lng_code => "27"},
:cs => {:desc_de => "Tschechisch", :desc_en => "Czech", :daimler_code => "CSY_XXX", :daimler_numcode => "114", :arctis_code => "024", :iso639_2 => "ces", :asra_lng_code => "24"},
:da => {:desc_de => "Dänisch", :desc_en => "Danish", :daimler_code => "DAN_XXX", :daimler_numcode => "115", :arctis_code => "008", :iso639_2 => "dan", :asra_lng_code => "08"},
:de => {:desc_de => "Deutsch", :desc_en => "German", :daimler_code => "DEU_XXX", :daimler_numcode => "133", :arctis_code => "000", :iso639_2 => "deu", :asra_lng_code => "00"},
:el => {:desc_de => "Griechisch", :desc_en => "Greek", :daimler_code => "ELL_XXX", :daimler_numcode => "137", :arctis_code => "012", :iso639_2 => "ell", :asra_lng_code => "12"},
# @PENDING: Mappings fo
@cjk
cjk / zsh_hosts_compl.sh
Created December 2, 2010 13:07
ZSH hosts completion
hosts=(`hostname` myhost.domain.com c00100014181.corpintra.net)
[[ -f ~/.ssh/known_hosts ]] && hosts=($hosts `awk '{print $1}' ~/.ssh/known_hosts | tr ',' '\n' `)
[[ -f ~/.ssh/config ]] && hosts=($hosts `grep "^Host" ~/.ssh/config | sed s/Host\ // | egrep -v '^\*$'`)
zstyle ':completion:*:hosts' hosts $hosts
<option selected='selected' value=''>-</option><option value='10001'>NFZ</option><option value='10000'>PKW</option>
<option selected='selected' value=''>-</option><option value='00'>00</option><option value='01'>01</option><option value='02'>02</option><option value='03'>03</option><option value='04'>04</option><option value='05'>05</option><option value='06'>06</option><option value='07'>07</option><option value='08'>08</option><option value='09'>09</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='18'>18</option><option value='20'>20</option><option value='22'>22</option><option value='23'>23</option><option value='25'>25</option><option value='26'>26</option><option value='27'>27</option><option value='28'>28</option><option value='29'>29</option><option value='30'>30</option><option value='31'>31</option><option value='32'>32</option><option value='33'>33</option><option value='35'>35</option><option value='40'>40</option><option value='41'>4
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Form-Test</title>
<script type="text/javascript" src="file://public/javascripts/right-min.js"></script>
<script type="text/javascript">
document.onReady(function() {
var myform = "<form method='get' id='globalSearchForm' class='searchform' action='/globalsearch/search'><fieldset><div class='form_row'><span id='modeltype_selector_container'><input type='radio' value='all' name='search[modeltype]' id='search_modeltype_all' class='obj_type_select compact' checked=''>Alle<input type='radio' value='operations' name='search[modeltype]' id='search_modeltype_operations' class='obj_type_select compact' >Arbeitspositionen<input type='radio' value='record_titles' name='search[modeltype]' id='search_modeltype_record_titles' class='obj_type_select compact' >Ordnungstitel<input type='radio' value='damage_parts' name='search[modeltype]' id='search_modeltype_ssl' class='obj_type_select compact' >FO</span><label for='search_division_id'>Sp
@cjk
cjk / box.ovf
Created July 5, 2010 13:49
VirtualBox 3.2.6 vm-descr. file exported with Vagrant
<?xml version="1.0"?>
<Envelope ovf:version="1.0" xml:lang="en-US" xmlns="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vbox="http://www.virtualbox.org/ovf/machine">
<References>
<File ovf:href="vagrantbase.vmdk" ovf:id="file1" ovf:size="1487145472"/>
</References>
<DiskSection>
<Info>List of the virtual disks used in the package</Info>
<Disk ovf:capacity="21474836480" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" vbox:uuid="8a98efa4-597c-480c-807e-f3a09e8b3fbc"/>
</DiskSection>
<NetworkSection>