Skip to content

Instantly share code, notes, and snippets.

View elaOnMars's full-sized avatar

eom elaOnMars

  • Student
  • Germany
View GitHub Profile
## View NixOS builds:
ls -l /nix/var/nix/profiles/
<snip>
lrwxrwxrwx 1 root root 14 25. Apr 01:29 default -> default-1-link
lrwxrwxrwx 1 root root 60 25. Apr 01:29 default-1-link -> /nix/store/1ny6g20kvqq5xq0vrby49k6alpa76xhn-user-environment
drwxrwxrwt 6 root root 4096 25. Apr 18:21 per-user
lrwxrwxrwx 1 root root 13 25. Apr 16:49 system -> system-9-link
lrwxrwxrwx 1 root root 88 24. Apr 15:49 system-1-link -> /nix/store/jvl660mg3xhh5mq5hrnwjc3qmvr2i3j-nixos-system-me-18.03.131807.489a14add9a
lrwxrwxrwx 1 root root 88 24. Apr 16:25 system-2-link -> /nix/store/61q3125mq5hrnwkaml9hr18vyz1i6kh1-nixos-system-me-18.03.131807.489a14add9a
@dannguyen
dannguyen / xlrd-xls-to-csv--treer.py
Last active August 3, 2018 20:51
example of using Python's xlrd library to do a batch process of opening a Excel workbook, extract the content from the first sheet as txt, and then save as CSV
"""
Same as the other script, but attempts to preserve the same folder
structure in `csv` as it exists in `xlsx`
"""
from csv import writer
from glob import glob
from os.path import basename, dirname, join
from os import makedirs
from xlrd import open_workbook
@elaOnMars
elaOnMars / find-https-debian-archives.py
Created October 9, 2015 13:03 — forked from eighthave/find-https-debian-archives.py
Script to find official Debian mirrors that support HTTPS
#!/usr/bin/python
import urllib2
import re
import ssl
import sys
# # find generic mirrors
mirrors = urllib2.urlopen('http://www.debian.org/mirror/list')
https = []
@elaOnMars
elaOnMars / jupyter_shortcuts.md
Last active September 12, 2015 11:18 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Toc

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

MacOS modifier keys:

  • ⌘ : Command
@kidpixo
kidpixo / jupyter_shortcuts.md
Last active October 5, 2025 16:50
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Warning This is SEVERELY outdated, the current jupyter version is > 6.X, please refer to your current jupyter notebook installation!

Disclaimer : I just copied those shortcuts from Jupyter Menú > Help > Keyboard Shortcuts, I didn't wrote them myself.

Check your current shortcuts in your Help, shortcuts coule have been modified by extensions or your past self.

Toc

Keyboard shortcuts

@brentertz
brentertz / rvm2rbenv.txt
Created November 21, 2011 23:00
Switch from RVM to RBENV
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################
module Jekyll
class Pagination < Generator
# This generator is safe from arbitrary code execution.
safe true
# Generate paginated pages if necessary.
#
# site - The Site.
#