Skip to content

Instantly share code, notes, and snippets.

View nikodemusk's full-sized avatar

Nikodemus Karlsson nikodemusk

View GitHub Profile
@johnburnmurdoch
johnburnmurdoch / .block
Last active March 25, 2023 06:13
Spirograph effect in HTML canvas
license: mit
height: 545
scrolling: no
border: no
@Myfanwy
Myfanwy / custom css for reveal.js slideshow in R
Last active August 20, 2023 16:58
Custom css for reveal.js slideshow
/**
* A simple theme for myfanwy.github.io
*
* reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
<link href='http://fonts.googleapis.com/css?family=Megrim' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:300,400,700' rel='stylesheet' type='text/css'>
/*********************************************
@awesomebytes
awesomebytes / ipython_to_file.md
Created March 16, 2016 10:38
Save iPython session to a python file as code

Save an iPython session commands/code to a file

You must use the magic method %save:

In [1]: %save?
Type:       Magic function
String Form:<bound method CodeMagics.save of <IPython.core.magics.code.CodeMagics object at 0x7fb5d25bb1d0>>
Namespace:  IPython internal
File: /usr/lib/python2.7/dist-packages/IPython/core/magics/code.py
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active May 7, 2024 12:29
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@palimadra
palimadra / stackedit-markdown-cheat-sheet
Last active March 31, 2022 23:16
Cheat Sheet for Markdown on stackedit.io
<!---
Author: Pali Madra
URL: http://palimadra.tumblr.com
Description: Cheat sheet for markdown on stackedit.io at http://www.stackedit.io
Version: 1.0
Last updated: 10/26/2014
--->
<!--- HEADING --->
# Header 1 #
@todgru
todgru / starttmux.sh
Last active April 27, 2024 18:17
Start up tmux with custom windows, panes and applications running
#!/bin/sh
#
# Setup a work space called `work` with two windows
# first window has 3 panes.
# The first pane set at 65%, split horizontally, set to api root and running vim
# pane 2 is split at 25% and running redis-server
# pane 3 is set to api root and bash prompt.
# note: `api` aliased to `cd ~/path/to/work`
#
session="work"
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 7, 2024 06:03
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: