File | Purpose |
---|---|
/etc/compose/docker-compose.yml |
Compose file describing what to deploy |
/etc/systemd/system/docker-compose.service |
Service unit to start and manage docker compose |
/etc/systemd/system/docker-compose-reload.service |
Executing unit to trigger reload on docker-compose.service |
/etc/systemd/system/docker-compose-reload.timer |
Timer unit to plan the reloads |
This file contains hidden or 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
// The following data should be run in the console while viewing the page https://read.amazon.com/ | |
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension | |
var db = openDatabase('K4W', '2', 'thedatabase', 1024 * 1024); | |
getAmazonCsv = function() { | |
// Set header for CSV export line - change this if you change the fields used | |
var csvData = "ASIN,Title,Authors,PurchaseDate\n"; | |
db.transaction(function(tx) { |
This file contains hidden or 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
Thank you for reaching out to Autonomous! I am sorry to hear that you are having some trouble with your SmartDesk but I will be glad to assist. It sounds like your system needs a "hard reset" can I please have you follow these steps thoroughly. | |
Reset Steps: | |
Unplug the desk for 20 seconds. Plug it back in. Wait a full 20 seconds. | |
Press the up and down buttons until the desk lowers all the way and beeps or 20 seconds pass. | |
Release both buttons. | |
Press the down buttons until the desk beeps one more time or 20 seconds pass. | |
Then you are good to go! |
This file contains hidden or 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
to create a new environment | |
conda create -n mynewenviron package1 package2 etc | |
conda create -n newenv --clone ~anaconda | |
to remove an environment | |
conda remove -n myenvirontoremove --all | |
always start with |
This file contains hidden or 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
# Assuming this your tests/CMakeLists.txt (and your libs are setup in a root config) | |
# Just make sure to include(CTest) in your *root* cmake config. | |
# 3.9 adds support for "GoogleTest" which enumerates the tests inside | |
# of the code and adds them to ctest. | |
cmake_minimum_required(VERSION 3.9) | |
# Configure google-test as a downloadable library. | |
include(External_GTest.cmake) |
This file contains hidden or 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 math import cos, sin, pi | |
def point_on_circle(theta): | |
return (cos(theta), sin(theta)) |
This file contains hidden or 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
DELIMITER | | |
CREATE FUNCTION uuid_from_bin(b BINARY(16)) | |
RETURNS CHAR(36) DETERMINISTIC | |
BEGIN | |
DECLARE hex CHAR(32); | |
SET hex = HEX(b); | |
RETURN CONCAT(LEFT(hex, 8), '-', MID(hex, 9,4), '-', MID(hex, 13,4), '-', MID(hex, 17,4), '-', RIGHT(hex, 12)); | |
END | |
| |
Demonstrates some simple zmq communication
Similar to this example but usable more generally.
Quoting http://zeromq.org/area:faq:
Can I subscribe to messages using regex or wildcards?
This file contains hidden or 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
# https://chris.beams.io/posts/git-commit/ | |
# https://robots.thoughtbot.com/better-commit-messages-with-a-gitmessage-template | |
[commit] | |
template = ~/.gitmessage | |
# ... other configs |