pip install -U $(pip list --outdated | awk 'NR>2 {print $1}')
pip list --outdated
awk
- prints out the first columns of the pip oudated command using
NR>2
to filter the first 2 rows.
# Assumes you're in the docker group | |
# if not, run `sudo usermod -aG docker $USER` | |
# Column $3 is the image IDs | |
docker images | for i in `awk 'NR>1{print $3}'`; do docker rmi $i; done |
# https://gist.github.com/althonos/6914b896789d3f2078d1e6237642c35c | |
[metadata] | |
name = {name} | |
version = file: {name}/_version.txt | |
author = Martin Larralde | |
author_email = [email protected] | |
url = https://github.com/althonos/{name} | |
description = {description} | |
long_description = file: README.md |
#!/usr/bin/env python3 | |
''' | |
IMPORTANT: Please delete the following from the tweet.js file before using this: | |
---> window.YTD.tweet.part0 = <---- | |
Whilst that remains you cant parse it easily with json.load | |
''' | |
import pandas as pd | |
import json | |
from pandas.io.json import json_normalize |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.nuntium.fetchnews.agent</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/python3</string> | |
<string>nuntium.py</string> |