Go code to render static HTML files from mysqldump of NucleusCMS.
Note that it requires you to use --complete-insert
arg with mysqldump
.
Go code to render static HTML files from mysqldump of NucleusCMS.
Note that it requires you to use --complete-insert
arg with mysqldump
.
This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:2a8384b0a5cd23d17a320ad176b9ad06fb94c016]
/** | |
* Switch Auto Off. | |
* | |
* Copyright 2019 Yuxuan Wang | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
/** | |
* Presence and Garage Door | |
* | |
* Copyright 2016 Yuxuan Wang | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
/** | |
* MyQ Garage Door | |
* | |
* Copyright 2018 Yuxuan Wang | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
package main_test | |
import ( | |
"bytes" | |
"fmt" | |
"math/rand" | |
"os" | |
"reflect" | |
"testing" | |
"time" |
import sys | |
last_line = '' | |
for line in sys.stdin.xreadlines(): | |
length = len(last_line.rstrip()) | |
if length != len(line.rstrip()) or length == 0: | |
sys.stdout.write(last_line) | |
last_line = line | |
continue | |
if line.count("=") == length: |
Gerrit Code Review - /changes/ REST API | |
======================================= | |
This page describes the change related REST endpoints. | |
Please also take note of the general information on the | |
link:rest-api.html[REST API]. | |
[[change-endpoints]] | |
Change Endpoints | |
---------------- |
#!/bin/sh | |
TMPFILE=deadbeef`openssl rand -hex 14` | |
touch /Applications/${TMPFILE} | |
sleep 1 | |
rm /Applications/${TMPFILE} |