Skip to content

Instantly share code, notes, and snippets.

View izikeros's full-sized avatar

Krystian Safjan izikeros

View GitHub Profile
@izikeros
izikeros / tmux-cheatsheet.markdown
Created June 18, 2019 13:56 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@izikeros
izikeros / notebook_mem_usage.py
Last active July 17, 2024 22:36 — forked from aiguofer/README.md
[notebook memory usage] Find out how much memory each of the jupyter notebooks running on a server is using. Helpful for knowing which ones to shut down. Original code from http://stackoverflow.com/questions/34685825/jupyter-notebook-memory-usage-for-each-notebook
import os
import pwd
import psutil
import re
import string
import requests
import socket
import argparse
import tabulate
import pandas as pd
@izikeros
izikeros / useful_pandas_snippets.md
Last active March 15, 2024 19:53 — forked from bsweger/useful_pandas_snippets.md
[pandas snippets (fork)] Useful Pandas Snippets #pandas #snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)