Please copy to user template folder:
~/Library/Application Support/org.inkscape.Inkscape/config/inkscape/templates/
Modified to US Letter Size from: https://logosbynick.com/inkscape-default-template/
#/usr/bin/env python | |
from pandas import np | |
from pandas.io.data import DataReader | |
def historical_volatility(sym, days): | |
"Return the annualized stddev of daily log returns of `sym`." | |
try: | |
quotes = DataReader(sym, 'yahoo')['Adj Close'][-days:] |
on open this_item | |
tell application "iTerm" | |
activate | |
set iPyNbViewer to (make new terminal) | |
tell iPyNbViewer | |
activate current session | |
launch session "Default Session" | |
tell the last session | |
set name to "IPython Notebook" |
#!/usr/bin/env bash | |
# Source: https://guides.wp-bullet.com | |
# Author: Mike | |
#define local path for backups | |
BACKUPPATH="/srv/users/serverpilot/bak/tmp" | |
#define remote backup path | |
BACKUPPATHREM="gBackup" |
index | name | ctID | lastUpdate | |
---|---|---|---|---|
0 | DV281 | NCT03326752 | November 1, 2017 | |
1 | SD101 | NCT02521870 | December 7, 2017 | |
2 | AZD1419 | NCT02898662 | December 21, 2017 | |
3 | SD101+MK1966 | NCT02731742 | December 11, 2017 |
on run {input, parameters} | |
#!/usr/bin/osascript | |
-- Run ipython on a new iTerm (OS X version) | |
-- See http://www.iterm2.com/#/section/documentation/scripting | |
tell application "iTerm" | |
activate | |
set ipy to (make new terminal) |
on open this_item | |
tell application "Finder" | |
set pathList to (quoted form of POSIX path of (folder of the front window as alias)) | |
set command to "clear; cd " & pathList | |
end tell | |
tell application "System Events" | |
-- some versions might identify as "iTerm2" instead of "iTerm" | |
set isRunning to (exists (processes where name is "iTerm")) or (exists (processes where name is "iTerm2")) |
#sudo certbot certonly --webroot -w /srv/users/serverpilot/apps/pkubio/public -d pkubio.org -d www.pkubio.org -d shalongla.com -d www.shalongla.com -d lishengshi.com -d www.lishengshi.com | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name example.com www.example.com subsite.com www.subsite.com another.com www.another.com; | |
return 301 https://$host$request_uri; | |
} | |
server { |
import logging | |
from StringIO import StringIO as StringBuffer | |
logger = logging.getLogger('basic_logger') | |
logger.setLevel(logging.DEBUG) | |
### Setup the console handler with a StringIO object | |
log_capture_string = StringBuffer() | |
# log_capture_string.encoding = 'cp1251' | |
ch = logging.StreamHandler(log_capture_string) |
#!/bin/bash | |
# Help / usage info. | |
USAGE=$'WordPress Helper script, adapted from Phil Banks (emirpprime@github) EasyEngine script for Serverpilot .\nWithout any args it will search /srv/users/serverpilot/apps for WordPress sites, loop over them in alphabetical order and check for core and plugin updates.\nAlso accepts:\n\t--sites=[space seperated list of site paths relative to /srv/users/serverpilot/apps]\n\t--update=[plugins|wp|all].' | |
# Die function for exiting on errors. | |
die () { | |
echo "${1}, exitting..." >&2 ; echo ; exit 1 | |
} |
Please copy to user template folder:
~/Library/Application Support/org.inkscape.Inkscape/config/inkscape/templates/
Modified to US Letter Size from: https://logosbynick.com/inkscape-default-template/