- Create python virtual environment:
- UNIX:
python3 -m venv env
- WINDOWS:
py -m venv env
- UNIX:
- Activate Environment:
- UNIX:
source env/bin/activate
- WINDOWS:
.\env\Scripts\activate
- UNIX:
- Optional:
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
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
import requests | |
from pushover import Pushover | |
pushover = Pushover() | |
pushover.Push("Hello World") |
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
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Linq; | |
using Caliburn.Micro; | |
using Scheduler.Data; | |
namespace MyApp | |
{ | |
public class DropDownViewModel : Screen | |
{ |
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
from socket import error as socket_error | |
from fabric import Connection | |
from paramiko.ssh_exception import AuthenticationException | |
class ExampleException(Exception): # Should be your Exception | |
pass | |
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 | |
YRDIR=$(date +'%Y') | |
mkdir $YRDIR | |
cd $YRDIR | |
mkdir 01_January 02_February 03_March 04_April 05_May 06_June 07_July 08_August 09_September 10_October 11_November 12_December |
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 | |
# A script to transcode video in directory to Apple ProRes | |
# chmod + prores_trx.sh && sh prores_trx.sh | |
# The -profile:v # is for ProRes quality | |
# 0: ProRes422 (Proxy) | |
# 1: ProRes422 (LT) | |
# 2: ProRes422 (Normal) | |
# 3: ProRes422 (HQ) |
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 | |
# !IMPORTANT: Make sure this is installed already: https://github.com/andreafabrizi/Dropbox-Uploader | |
import subprocess | |
import time | |
from datetime import datetime as dt | |
import os | |
if __name__ == "__main__": |
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
import webview | |
import pywebio | |
from pywebio.platform.flask import webio_view | |
from flask import Flask, escape, request, send_from_directory, current_app, url_for | |
from pywebio import STATIC_PATH | |
from pywebio.input import * | |
from pywebio.output import * | |
from pywebio.session import * | |
import logging | |
from datetime import date, timedelta |
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.5 | |
#example usage: mp3ytclipper.py "https://www.youtube.com/watch?v=MgxK5vm6lvk" later 44.3 46.3 | |
import sys, re, subprocess, youtube_dl, os | |
if len(sys.argv) != 5: | |
print("usage: mp3ytclipper.py <youtubeurl> <outfilename> <starttime> <endtime>") | |
exit() |
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
# Specify the shell | |
SHELL := bash | |
# Site URL | |
OLD_URL = https://domain.test | |
NEW_URL = https://www.domain.com | |
# Commands to execute | |
execute: |
NewerOlder