- a/o 2016-05-21 *
--
- Restart with Cmd-R or Cmd-D
- Erase drive / 3x if second-hand
- Reinstall MacOS
| """ | |
| Author: Eric J. Ma | |
| Purpose: To merge PDFs together in an automated fashion. | |
| """ | |
| import os | |
| from PyPDF2 import PdfFileReader, PdfFileMerger |
| #!/usr/bin/ruby | |
| # encoding: utf-8 | |
| # | |
| # Updated 2017-10-25: | |
| # - Defaults to large size (512) | |
| # - If ImageMagick is installed: | |
| # - rounds the corners (copped from @bradjasper, https://github.com/bradjasper/Download-iTunes-Icon/blob/master/itunesicon.rb) | |
| # - replace original with rounded version, converting to png if necessary | |
| # | |
| # Retrieve an iOS app icon at the highest available resolution |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Description: Sync Plex playlists to shared users. | |
| # Author: /u/SwiftPanda16 | |
| # Requires: plexapi, requests, xmltodict | |
| import requests | |
| import xmltodict |
| # This script adds a "Webclip" shortcut to your homescreen. | |
| # The shortcut can be used to open a web page in full-screen mode, | |
| # or to launch a custom URL (e.g. a third-party app). | |
| # You'll be asked for a title, a URL, and an icon (from your camera roll) | |
| import plistlib | |
| import BaseHTTPServer | |
| import webbrowser | |
| import uuid | |
| from io import BytesIO |
| app=$HOME/apps/nzbget-loop | |
| cat > $app << EOF | |
| #!/usr/bin/env bash | |
| export TERM="xterm" | |
| until ~/apps/nzbget/nzbget -s; do | |
| echo "NZBGet crashed. Respawning.." >&2 | |
| sleep 1 | |
| done | |
| EOF | |
| chmod +x $app |
| Public Function getRowNum(worksheetName, rowName, headerColumnNum) As Integer | |
| Set worksheet = Worksheets(worksheetName) | |
| rowNum = 0 | |
| lastRowNum = worksheet.Cells(worksheet.Rows.Count, headerColumnNum).End(xlup).Row | |
| For rowLoopNum = 1 To lastRowNum | |
| If worksheet.Cells(rowLoopNum, headerColumnNum).Value = rowName Then | |
| rowNum = rowLoopNum | |
| End If | |
| Next rowLoopNum | |
| getRowNum = rowNum |
| # sync-repo | |
| # Dependencies: | |
| # rsync (https://rsync.samba.org) | |
| ############################## BEGIN APP CONFIG ############################### | |
| # You should only have to modify this section | |
| # All paths are relative to your home | |
| # Name of project to sync (used for notifications) |
| """ | |
| This module provides a simple WSGI profiler middleware for finding | |
| bottlenecks in web application. It uses the profile or cProfile | |
| module to do the profiling and writes the stats to the stream provided | |
| To use, run `flask_profiler.py` instead of `app.py` | |
| see: http://werkzeug.pocoo.org/docs/0.9/contrib/profiler/ | |
| and: http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xvi-debugging-testing-and-profiling | |
| """ |