Skip to content

Instantly share code, notes, and snippets.

View adamaiken89's full-sized avatar
๐Ÿ˜€
happy

Adam Aiken adamaiken89

๐Ÿ˜€
happy
  • Hong Kong
  • 06:27 (UTC +08:00)
  • LinkedIn in/adamhk
View GitHub Profile
@startmindmap
* Primitive Types
**[#Pink] Numbers
***[#Orange] e.g. 1, 0xFF, 3.14, 1.0e3-2
**[#Pink] Atoms
***[#Orange] e.g. atom
ARG NGROK_TOKEN
FROM ubuntu:22.04
RUN ACCEPT_EULA=Y apt-get update \
&& ACCEPT_EULA=Y apt-get upgrade \
&& apt-get install --yes software-properties-common build-essential libopenblas-dev ninja-build pkg-config cmake-data clang \
&& apt-get install --yes git git-lfs curl wget zip unzip \
&& git lfs install \
&& apt-get install --yes python3 python3-pip python-is-python3
@adamaiken89
adamaiken89 / index.ts
Created August 12, 2022 23:15
Tree Transversal
interface TreeNode {
left: TreeNode | null;
right: TreeNode | null;
val: number;
};
function main(node: TreeNode) {
const list: string[] = [];
transversal('', node);
#! /bin/sh
sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/script.deb.sh | sudo bash
sudo apt-get update
sudo apt-get install curl openssh-server ca-certificates apt-transport-https
curl https://packages.gitlab.com/gpg.key | sudo apt-key add -
sudo apt-get install -y postfix
sudo apt-get install gitlab-ce
#! /bin/sh
sshpass -p 'raspberry' ssh [email protected] -o StrictHostKeychecking=no
#!/bin/bash
touch ssh
cat <<EOF > wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=hk
network={
ssid="<Name of your wireless LAN>"
psk="<Password for your wireless LAN>"