Skip to content

Instantly share code, notes, and snippets.

View zsim0n's full-sized avatar

Zoltan Simon zsim0n

View GitHub Profile
{
"$schemaTransformation" : "http://buzzword.org.uk/2008/jCard/transformation.js" ,
"id" : "jCard" ,
"version" : "0.1.0" ,
"title" : "jCard" ,
"description" : "This document defines the jCard data format for representing and exchanging a variety of information about an individual (e.g., formatted and structured name and delivery addresses, email address, multiple telephone numbers, photograph, logo, audio clips, etc.)." ,
"type" : "object" ,
"seeAlso" :
[
"http://microformats.org/wiki/jcard" ,
@imjasonh
imjasonh / markdown.css
Last active January 3, 2025 20:15
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@psugihara
psugihara / OLHelpPageViewController.swift
Created November 13, 2014 07:11
UIPageViewController in Swift using Interface Builder
//The MIT License (MIT)
//
//Copyright (c) 2014 Open Listings
//
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
@snrbrnjna
snrbrnjna / .htaccess
Last active January 15, 2025 13:20
Jekyll Auth Plugin - to manage http basic auth for jekyll generated pages and directories
#### Jekyll Layout: /_layouts/.htaccess
# Apache Configuration File
{% if ((page.auth_dir.users != empty) or (page.auth_dir.groups != empty)) %}
AuthName "Privater Bereich"
AuthType Basic
# => mehrere Require Blocks werden geodert: http://d43.me/blog/1157
AuthzUserAuthoritative Off
AuthUserFile {{ page.auth_remote_user_file }}
@Integralist
Integralist / Ruby Lambdas.md
Last active August 8, 2023 05:10
Ruby lambdas

Lambda: standard

# Creating a lambda
l = lambda { |name| "Hi #{name}!" }

# Executing the lambda
l.call("foo") # => Hi foo!
@dweinstein
dweinstein / Dockerfile
Created March 14, 2014 15:37
testProject
FROM ubuntu
MAINTAINER David Weinstein <[email protected]>
# install our dependencies and nodejs
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y install python-software-properties git build-essential
RUN add-apt-repository -y ppa:chris-lea/node.js
RUN apt-get update
RUN apt-get -y install nodejs
@lsegal
lsegal / test-with-q.js
Created March 7, 2014 20:59
Uses promises with the AWS SDK for JavaScript
var AWS = require('aws-sdk');
var s3 = new AWS.S3();
var Q = require('q');
var list = Q.nbind(s3.listBuckets.bind(s3));
list().then(function(data) {
console.log(data);
});
@kalenwatermeyer
kalenwatermeyer / JenkinsLastCommit.md
Last active July 29, 2019 03:39
Jenkins - Last commit info widget

Jenkins Last Commit - screenshot

Description

The Jenkins Last Commit widget periodically fetches SCM change information from a Jenkins instance for a specified list of jobs.

This allows you to have multiple widgets simultaneously (monitoing separate jobs for changes).

Calls are made to the Jenkins API to retrieve the changeset object in a JSON form. This JSON object contains various pieces of information about the last commit made for the Jenkins job.

@jchatard
jchatard / deploy.rb
Created February 28, 2014 09:17
Mina configuration file for Drupal deployment
require 'mina/git'
# Basic settings:
# domain - The hostname to SSH to.
# deploy_to - Path to deploy into.
# repository - Git repo to clone from. (needed by mina/git)
# branch - Branch name to deploy. (needed by mina/git)
case ENV['to']
when 'production'
set :domain, 'www.foo.bar'
@namuol
namuol / INSTALL.md
Last active December 11, 2024 12:21
rage-quit support for bash

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.