This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Usage: ./path_to_script.py 'outlook url 1' 'outlook url 2' ... | |
# Returns: <decoded url 1> \n <decoded url 2> ... | |
# GPL v3 | |
import re | |
import base64 | |
import argparse | |
import urllib.parse | |
outlook_regex = re.compile(r'https:\/\/\w+\.safelinks\.protection\.outlook\.com\/\?url=((\.?[^&.,:\s]+)*)(&(\.?[-+a-zA-Z0-9%/=;]+)*)*', re.IGNORECASE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(xml2) | |
library(magrittr) | |
library(RCurl) | |
# This is a clean room reverse-engineered for compatibility and interoperability crude-yet-effective extractor for embedded citations created by end note in a word document. This is useful if you wish to e.g. rewrite the word document in LaTeX and import the same citations en block (via xml). | |
# EC 2009/24/EC states "The person having a right to use a copy of a computer program shall be entitled, without the authorisation of the rightholder, to observe, study or test the functioning of the program in order to determine the ideas and principles which underlie any element of the program if he does so while performing any of the acts of loading, displaying, running, transmitting or storing the program which he is entitled to do." | |
# Don't sue me! | |
# So, to extract references from a word document sent to you: | |
#docx <- yourdocx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TMS-Hax | |
// @namespace https://tms.ox.ac.uk tms.ox.ac.uk | |
// @description Quality of life hax | |
// @include https://tms.ox.ac.uk/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// ==/UserScript== | |
// This is a quality of life script for the rather unfortunately terrible site tms.ox.ac.uk | |
// Use with greasemonkey or tampermonkey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
create_iconset() { | |
mkdir -p Ghidra.iconset | |
cat << EOF > Ghidra.iconset/Contents.json | |
{ | |
"images": | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name ISMRM Video Fixer | |
// @namespace ismrm-video-fixer | |
// @version 8 | |
// @description Removes the attribute controls=false of the video tag in pathable.com for ISMRM's conference in 2021, permitting the user to do useful things, e.g. speed them up. | |
// @author [email protected] | |
// @include https://*.pathable.com/* | |
// @run-at document-idle | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Country Code | Population | Year | |
---|---|---|---|
ABW | 105366 | 2017 | |
AFG | 36296400 | 2017 | |
AGO | 29816748 | 2017 | |
ALB | 2873457 | 2017 | |
AND | 77001 | 2017 | |
ARB | 411898967 | 2017 | |
ARE | 9487203 | 2017 | |
ARG | 44044811 | 2017 | |
ARM | 2944809 | 2017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function out=read_dsv(pathname) | |
% Read a Siemens IDEA DSV folder as simulated by POET, for subsequent plotting. | |
% This just parses a pre-existing text file and plonks it into a struct. | |
% | |
% Input: a POET-simulated folder containing .dsv files (check your temp | |
% files in an IDEA VM) | |
% | |
% Output: a returned structure containing the parsed contents present. | |
% | |
% Should you wish to plot a pulse sequence diagram, you probably want to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# JJM -- parse cvi42 / cmr42 xml reports and extract relevant cardiac parameters | |
# Plonk them into a csv file for later dealings (in R) | |
# Supposedly biologist friendly. | |
import sys | |
import csv | |
from bs4 import BeautifulSoup | |
multiplyFlag = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### hostapd configuration file ############################################## | |
# Empty lines and lines starting with # are ignored | |
# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for | |
# management frames with the Host AP driver); wlan0 with many nl80211 drivers | |
# Note: This attribute can be overridden by the values supplied with the '-i' | |
# command line parameter. | |
interface=wlp3s0 | |
# In case of atheros and nl80211 driver interfaces, an additional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
#################################### | |
# iTunes Command Line Control v1.0 | |
# written by David Schlosnagle | |
# created 2001.11.08 | |
# edit 2010.06.01 rahul kumar | |
#################################### | |
showHelp () { |
NewerOlder