- C# (.net core only)
- Language itself is absolute favorite, has fixed nullability problem in recent versions of c# (8.0+).
- Open source ecosystem is a bit immature (only recently open sourced), could be very good in another 5 years.
- Real unrestricted multithreading
- Kotlin
- Basically Java++
- Second best to C#, but has some strange design decisions like removal of static methods.
- Generate key with
ssh-keygen
, as path enter the same as suggested with a different filename of 'git' - run
sudo nano ~/.ssh/config
and add contents like
# add bitbucket deployment key to identity file
Host bitbucket.org
User git
IdentityFile ~/.ssh/git
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
<?php | |
class MessageOnRejectionSubscriber implements EventSubscriberInterface { | |
public function onMessageFailed(WorkerMessageFailedEvent $event) { | |
// return early if there is still more retrying to do | |
if ($event->willRetry()) { | |
return; | |
} | |
$envelope = $event->getEnvelope(); |
https://star-history.t9t.io/#caprover/caprover&flynn/flynn&dokku/dokku
https://github.com/caprover/caprover
- Expressjs based, not very standardised, may have maintainability problems in short/medium term.
- Single active maintainer, only person to touch most files
- Low system requirements
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
#include <stdio.h> | |
#include <string.h> | |
#include <math.h> | |
#include <unistd.h> // for sleep function | |
#include <libserialport.h> // cross platform serial port lib | |
const char* desired_port = "COM8"; |
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
phpmyadmin: | |
image: bitnami/phpmyadmin | |
container_name: phpmyadmin | |
environment: | |
- PHPMYADMIN_ALLOW_ARBITRARY_SERVER=yes | |
- DATABASE_ENABLE_SSL=yes | |
restart: always | |
ports: | |
- 443:8443 |
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
# last tested with tensorflow 2.1.0 | |
import tensorflow as tf | |
LOG_DIR = 'logs' # The path where you want to save tensorboard events | |
tf.compat.v1.disable_eager_execution() | |
with tf.compat.v1.Session() as sess: | |
model_filename = 'frozen_inference_graph.pb' # your model path | |
with tf.compat.v1.gfile.FastGFile(model_filename, 'rb') as f: |
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/env php | |
<?php | |
/*** | |
* Dumps routes from silex route registation to yaml file for use with symfony | |
run with php silex_to_symfony_routes_migrate.php > ../app/routes.php | |
*/ | |
use Silex\Application; | |
use Symfony\Component\Routing\Route; | |
use Symfony\Component\Routing\RouteCompiler; | |
use Symfony\Component\Yaml\Yaml; |
This is a tutorial that describes how to set up a private git (github) server for a smallish development team.
- Download GOGS binary Zip File
- Unzip to folder
- Run: sudo apt-get install sqlite3
- Run GOGS: ./gogs web
- Goto install page: http://hostname:3000/install
- Set to use sqlite3 as the database backend
- Set USER to run as, preferrably not root if it will be internet facing.
- Set Database file location (Make sure database file location is set to a folder where that same user has write permissions)
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
echo "Downloading update" | |
curl -s -L https://github.com/gogits/gogs/releases/latest | egrep -o '/gogits/gogs/releases/download/[v][0-9\.]*\/raspi2_armv6.zip' | wget --base=http://github.com/ -i - -O gogs-latest.zip | |
echo "Stopping gogs service" | |
sudo service gogs stop | |
echo "Starting backup" | |
today=`date +%Y-%m-%d.%H:%M:%S` | |
zip -r gogs-backup-$today.zip gogs gogs-data | |
echo "Moving config to tmp directory" | |
cp -r gogs/custom gogs-custom-tmp | |
echo "Deleting original gogs folder" |
NewerOlder