Create file /etc/systemd/system/docker-compose@.service
[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service| #! /bin/bash | |
| # This is for Mac OSX only. | |
| # ============================================= | |
| # explanation of arguments used with 'tcpdump': | |
| # ============================================= | |
| # -y IEEE802_11_RADIO => makes it capture __WIFI__ packets, turns resultant file | |
| # into a dump which can be read by aircrack-ng, etc. | |
| # | |
| # -I => puts interface into monitor mode (required to capture packets) |
| #!/bin/bash | |
| while true; do | |
| /usr/bin/open -F -a "/Applications/Firefox.app" 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' | |
| sleep 50 | |
| /usr/bin/open -a "/Applications/Firefox.app" 'https://google.ca' | |
| sleep 5 | |
| /usr/bin/open -a "/Applications/Firefox.app" 'https://zu.com' |
| #!/bin/bash | |
| # A bash script to create a time machine disk image suitable for | |
| # backups with OS X 10.6 (Snow Leopard) | |
| # This script probably only works for me, so try it at your own peril! | |
| # Use, distribute, and modify as you see fit but leave this header intact. | |
| # (R) sunkid - September 5, 2009 | |
| # | |
| # This will create a time machine ready disk image named with your | |
| # computer's name with a maximum size of 600GB and copy it to | |
| # /Volumes/backup. The image "file" (it's a directory, really) will |
| # From: https://apple.stackexchange.com/a/40244 | |
| ioreg -c IOPlatformExpertDevice -d 2 |awk '/IOPlatformSerialNumber/ {print $3}' |sed s/\"//g |
| import os,pandas | |
| for file in os.listdir('./'): | |
| if file.endswith('.json'): | |
| print'Processing: ', os.path.join('./', file) | |
| newfilename = str(file) + ".csv" | |
| pandas.read_json(file).to_csv(newfilename, encoding = 'utf-8 |