- Create crontab string via crontab.guru
- Create a bash script to run your unittests
E.g.
#!/bin/bash
# Not certain this is necessary...
def gather_input(prompt,empty_ok=False): | |
user_input = None | |
while user_input is None: | |
print(prompt) | |
user_input = input('?') |
Install Python[https://www.python.org/downloads/windows/]
Create a directory to contain your scripts.
Add your created directory to your path.
Start Menu
Type in "environment" and select "Edit Environment variables for your account".
In the upper group titled "User variables for [YOUR NAME]" click the "New…" button.
Enter your desired variable name (standard is to be in all caps, use underscores instead of spaces, and only letters. E.g. WILLS_PYTHON_SCRIPTS)
Enter the path to your script dir as the Variable Value. Click the "OK" button.
A very basic wizard for creating a python class file.
NOTE: These instructions were written for Linux.
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.math.BigDecimal; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
This was suprisingly difficult for me, so I'm making this quick guide so I have it handy in the future.
Instructions for creating a shared folder via VirtualBox using a Windows host machine and an Ubuntu 16.04 Headless Server guest.
From StackOverflow question Why can't I access a shared folder from within my Virtualbox machine?, specifically the first half of Louis Matthijssen's answer.
package main; | |
import javafx.application.Application; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.layout.StackPane; | |
import javafx.stage.Stage; |
word = word.replaceAll("\\p{Punct}+", ""); |
Source: http://webcache.googleusercontent.com/search?q=cache:https://notepad-plus-plus.org/community/topic/11466/eliminate-duplicate-rows-show-unique-rows-only | |
(Cached with Google in case it ever goes down.) | |
1) Open notepad++ and paste in data you want duplicate lines removed from. | |
2) Edit -> Line Operations -> Sort Lines Lexicographically Ascending | |
3) Ctrl + F | |
4) Search for: ^(.+?)\R(\1\R?)+ | |
5) Replace with: \1\r\n |