-
Head over to firebase. Sign in and create a project.
-
Copy your project settings under Firebase SDK snippet into your local project (ie your project's
api key
,auth domain
,databaseURL
, etc) -
Create a file (firebase.js or config.js Any name that suits you is fine)
View details here: https://gist.github.com/xynova/87beae35688476efb2ee290d3926f5bb
References:
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
. .env | |
# Used from .env | |
# PASSWD: The postgres password | |
# Set up Guacd | |
echo Creating guacd container... | |
docker run -d \ | |
--name guacd \ | |
guacamole/guacd |
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
""" | |
Train a neural network to implement the discrete Fourier transform | |
""" | |
from tensorflow.keras.models import Sequential | |
from tensorflow.keras.layers import Dense | |
import numpy as np | |
import matplotlib.pyplot as plt | |
N = 32 | |
batch = 10000 |
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
version: '2' | |
services: | |
guacd: | |
image: guacamole/guacd | |
guac-serve: | |
image: guacamole/guacamole | |
links: | |
- guacd:guacd | |
- mysql:mysql | |
ports: |
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
<html><body> | |
<style> | |
html, body { | |
background: rgb(245, 245, 245); | |
margin: 0; | |
padding: 0; | |
} | |
div { | |
position: relative; | |
overflow: hidden; |
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
/* | |
In JavaScript, objects can be used to serve various purposes. | |
To maximise our usage of the type system, we should assign different types to our objects depending | |
on the desired purpose. | |
In this blog post I will clarify two common purposes for objects known as records and dictionaries | |
(aka maps), and how they can both be used with regards to the type system. |
https://github.com/aancel/admin/wiki/VirtualGL-on-Ubuntu
https://virtualgl.org/About/Introduction
When you use ssh with X forwarding, you might have noticed that you cannot execute programs that require 3D acceleration. That's where VirtualGL comes into play.
- In
/etc/ssh/sshd_conf
, setUsePrivilegeSeparation
tono
- In
/etc/ssh/sshd_conf
, temporarily enable plaintext passwords - In
/etc/ssh/sshd_conf
, change port (e.g. to 23) to avoid confusion with Windows SSH server sudo service ssh restart
- Add alternative port as a new rule to Windows firewall
- On the client:
ssh-copy-id user@server
- In
/etc/ssh/sshd_conf
, re-disable plaintext passwords
To fix Could not load host key ...
error:
sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
NewerOlder