Skip to content

Instantly share code, notes, and snippets.

View szymonlopaciuk's full-sized avatar

Szymon Łopaciuk szymonlopaciuk

View GitHub Profile

interaction

Interaction Schema

type

object

@szymonlopaciuk
szymonlopaciuk / vol_resize.sh
Created March 7, 2018 07:52
LVM: shrink one volume for another
# Unmount /home
umount /home
# Shrink the /home filesystem
fsck -f /dev/mapper/fedora-hmoe
resize2fs /dev/mapper/fedora-home 100G
# Shrink the /home logical volume
@szymonlopaciuk
szymonlopaciuk / get_marcxml.py
Last active March 27, 2018 09:42
Bulk ORCID Validate
#!/usr/bin/env python
""""
Bulk download records from legacy, usage: `get_marcxml.py [number_of_records] > [output_marcxml]`
To migrate: `inspirehep migrator populate -f [path_to_marcxml]`
"""
from lxml.etree import fromstring, tostring
import requests
import sys

Chicken Tikka Masala

Ingredients

  • 4 tbsp oil
  • 4 onions
  • 2 peppers
  • 8 chicken breasts
  • 800 g chopped tomatoes
  • 4 tbsp tomato purée