Skip to content

Instantly share code, notes, and snippets.

View jwlodek's full-sized avatar

Jakub Wlodek jwlodek

View GitHub Profile
#!/bin/bash
# Source the environment of your choice that has tiled + dependencies installed
source ~/.ipython/profile_collection_tst/venv/bin/activate
rm -f -r /tmp/tiled_storage
mkdir /tmp/tiled_storage
tiled catalog init sqlite+aiosqlite:////tmp/tiled_storage/catalog.db
# Generate a development key with tiled api_key create, and add it exporting env var to bashrc file
@jwlodek
jwlodek / genEnvPaths.py
Created May 6, 2020 15:17
Script for auto-generating envPaths for EPICS binary bundles
#!/usr/bin/env python3
import os
import argparse
from sys import platform
def epics_path_join(path_A, path_B):
"""Function that joins two paths.
@jwlodek
jwlodek / grab_pdfs.py
Created September 5, 2019 16:09
A simple python3 script for downloading all pdfs linked in a webpage. Useful for grabbing lectures/homeworks from course webpages
#!/usr/bin/env python3
import os
import argparse
from urllib.parse import urljoin
# Require requests and bs4
# pip install requests bs4
import requests
from bs4 import BeautifulSoup