Skip to content

Instantly share code, notes, and snippets.

@icedevil2001
icedevil2001 / multiple_ssh_setting.md
Created August 22, 2019 14:20 — 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 "[email protected]"
@icedevil2001
icedevil2001 / git-summary.sh
Created June 18, 2019 21:28 — forked from gimbo/git-summary.sh
git-summary.sh - summarise git repos in some folder
#!/bin/bash
# git-summary - summarise git repos at some path
#
# Adapted from https://gist.github.com/lmj0011/1a8dd1e376234ac7bf0fba2748ecdd0f
#
# Andy Gimblett, March 2017
usage() {
References: https://gist.github.com/noelboss/3fe13927025b89757f8fb12e9066f2fa
More info: https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks
https://www.youtube.com/watch?v=6mYtJu0E47U
[misc commands deluser newuser]
The following steps is for Developers to push their code from their local machine, to their server with git, and let git auto
pull the update to your remote folder. How it works:
- From your local machine, you do your normal coding. When done, you push your new code to git
- Git then updates your local machine, and push it to your server's git
- Git on your server gets the new update, and push it to your server's working folder
@icedevil2001
icedevil2001 / chrom_vis.py
Created August 17, 2017 13:42 — forked from parashardhapola/chrom_vis.py
A class for creating annotated chromosome maps (akin to ideograms sans bands) in pure python. Not fully tested but works for me.
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import pandas as pd # Not used here but will be required for creating dataframe
import re
import seaborn.apionly as sns
"""
MIT License
@icedevil2001
icedevil2001 / chrom_vis.py
Created August 17, 2017 13:42 — forked from parashardhapola/chrom_vis.py
A class for creating annotated chromosome maps (akin to ideograms sans bands) in pure python. Not fully tested but works for me.
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import pandas as pd # Not used here but will be required for creating dataframe
import re
import seaborn.apionly as sns
"""
MIT License
@icedevil2001
icedevil2001 / GeneImage.py
Created August 17, 2017 13:41 — forked from parashardhapola/GeneImage.py
A pure python code to draw gene diagrams with introns and exons and draw markers ('lollipops') at random positions on the gene
import matplotlib.pyplot as plt
"""
MIT License
Copyright (c) [2016] [Parashar Dhapola]
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