In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py
)
Save and open the script in your editor of choice.
# Used on Ubuntu 18.04 and 20.04 | |
# Find instructions for other OSes here: https://certbot.eff.org/instructions | |
# Install Certbot via Snaps | |
sudo snap install core; sudo snap refresh core | |
sudo snap install --classic certbot | |
sudo ln -s /snap/bin/certbot /usr/bin/certbot | |
# Install DNS CloudFlare plugin | |
sudo snap set certbot trust-plugin-with-root=ok |
BindingScoped.kt | |
@Scope | |
@Retention(AnnotationRetention.BINARY) | |
annotation class BindingScoped | |
------------------------------------------------------- | |
CustomBindingComponent.kt |
# Disable the Gradle daemon for Continuous Integration servers as correctness | |
# is usually a priority over speed in CI environments. Using a fresh | |
# runtime for each build is more reliable since the runtime is completely | |
# isolated from any previous builds. | |
variables: | |
GRADLE_OPTS: "-Dorg.gradle.daemon=false" | |
DOCKER_TLS_CERTDIR: "" | |
before_script: | |
- export GRADLE_USER_HOME=`pwd`/.gradle |
package com.jivimberg.sqs.published | |
import kotlinx.coroutines.CancellationException | |
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.isActive | |
import kotlinx.coroutines.yield | |
import java.lang.Thread.currentThread | |
suspend fun CoroutineScope.repeatUntilCancelled(block: suspend () -> Unit) { | |
while (isActive) { |
version: "3" | |
services: | |
postgress: | |
.... | |
healthcheck: | |
test: ["CMD-SHELL", "pg_isready -U postgres"] | |
interval: 10s | |
timeout: 5s | |
retries: 5 | |
app: |
package idcardocr | |
import ( | |
"bytes" | |
"crypto/cipher" | |
"crypto/des" | |
) | |
// 3DES加密 |
Source: https://community.online.net/t/reset-root-password-via-console/1724/3
I solved this problem, found a hint here: https://github.com/scaleway/initrd/tree/master/Linux 184.
Here is what I did:
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:DeleteObject" |
Name | Version | Size (uncompressed) | Size (minified) | Size (gzipped) | URL | |
---|---|---|---|---|---|---|
Bootstrap | v3.3.7 | 143 KB | 117 KB | 20 KB | http://getbootstrap.com/css/ | |
Bootstrap | v4.0.0 | 187 KB | 147 KB | 20 KB | https://v4-alpha.getbootstrap.com/ | |
Materialize | v3.0 | 114 KB | 90 KB | 18 KB | http://materializecss.com/ | |
Material Design Lite | v1.3.0 | 350 KB | 137 KB | 21 KB | https://getmdl.io/ | |
mini.css | v2.1 | 47 KB | 36 KB | 7 KB | https://chalarangelo.github.io/mini.css/ | |
Semantic UI | v2.2.6 | 730 KB | 550 KB | 95 KB | https://semantic-ui.com/ | |
Foundation | v3.0 | 90 KB | 64 KB | 12 KB | http://foundation.zurb.com/ | |
Pure CSS | v0.6.2 | 80 KB | 17 KB | 3.8 KB | https://purecss.io/ | |
Picnic CSS | v6.3.2 | 55 KB | 38 KB | 7 KB | https://picnicss.com |