Skip to content

Instantly share code, notes, and snippets.

View michsch's full-sized avatar

Michael Schulze michsch

View GitHub Profile
@michsch
michsch / multiple_ssh_setting.md
Created April 19, 2021 17:00 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@michsch
michsch / .gitignore
Created July 19, 2019 09:03
.gitignore default setup
# system files
*Thumbs.db
*DS_Store
# editor settings
*.sublime-workspace
/.idea
# sass
*.sass-cache
@michsch
michsch / light.css
Created January 25, 2019 14:28
JSONview Themes
body {
white-space: pre;
font-family: monospace;
}
.property {
font-weight: bold;
}
.type-null {
@michsch
michsch / deepImmutable.js
Created June 11, 2018 12:37
deepImmutable
import {List, Map} from 'immutable'
/**
* Creates a deep immutable map and/or list.
*
* @public
* @param {boolean|number|string} data
* @returns {boolean|number|string|Immutable.List|Immutable.Map}
*/
const deepImmutable = (data) => {

Keybase proof

I hereby claim:

  • I am michsch on github.
  • I am michsch (https://keybase.io/michsch) on keybase.
  • I have a public key ASDM1KMu7LqHWOEC3hO3yZyvw8kgZ1E3iNAr4TPRrXNxaQo

To claim this, I am signing this object:

@michsch
michsch / userlike.js
Last active July 28, 2017 13:02
Userlike-Integration
const userlikeUrl = '//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/d050a6fa8bdcd3986a4892b683ae79565fa04643cbec254c91b489c49806bdef.js'
window.userlikeTrackingEvent = function (event_name, global_ctx, session_ctx) {
console.log('userlikeTrackingEvent: name=%s global_ctx=%o session_ctx=%o',
event_name,
global_ctx,
session_ctx
)
}
@michsch
michsch / .hoodierc
Created June 13, 2017 15:50
hoodie authentication problem
{
"address": "127.0.0.1",
"port": 8080,
"data": ".hoodie",
"public": "public",
"dbUrl": "http://admin:admin@127.0.0.1:5984/prototype",
"adminPassword": "admin",
"dbAdapter": "pouchdb-adapter-fs",
"inMemory": false,
"loglevel": "warn",
@michsch
michsch / javascript.json
Last active October 7, 2020 13:18
Nunjucks with custom filter for number_format
"paths": {
"nunjucks": "../Vendor/nunjucks/dist/js/nunjucks"
},
"map": {
"*": {
"nunjucks": "Service/Factory/nunjucksFactory/nunjucksFactory"
},
"Service/Factory/nunjucksFactory/nunjucksFactory" : {
"nunjucks" : "nunjucks"
}
@michsch
michsch / index.html
Last active April 24, 2016 16:24
Replace no-js class in HTML element
<html class="no-js" lang="de">
<head>
<meta charset="utf-8">
<title>JS class in HTML</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
<script>
!function(s,e){'use strict';s=document.getElementsByTagName('html')[0],e=s.className.split(' '),e.indexOf('no-js')>-1&&e.splice(e.indexOf('no-js'),1),-1===e.indexOf('js')&&e.push('js'),s.className=e.join(' ')}()
@michsch
michsch / dabblet.css
Created April 3, 2016 02:32
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
html {
font-size: 100%;
}
html,
body {