create a kubernetes cluster
(a work in progress)
create droplets
curl -X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer '$TOKEN'' \
-d '{"names":["k8s-droplet"],
import { CSSProperties, useEffect, useRef, useState } from 'react' | |
import './App.css' | |
import { useLocalStorage } from '@uidotdev/usehooks'; | |
function App() { | |
// noinspection JSUnusedLocalSymbols | |
// @ts-ignore | |
const [count, setCount] = useState(0) | |
return ( |
#!/usr/bin/expect | |
# set timeout 120 # debugging | |
foreach { | |
name | |
} $argv break | |
# Check if the variable is set |
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="PYTHON_MODULE" version="4"> | |
<component name="NewModuleRootManager" inherit-compiler-output="true"> | |
<exclude-output /> | |
<content url="file://$MODULE_DIR$" /> | |
<orderEntry type="inheritedJdk" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
</component> | |
</module> |
import urllib.request | |
def fetch(request: urllib.request.Request): | |
with urllib.request.urlopen(request) as response: | |
response_body = response.read().decode('utf-8') | |
if 200 < response.getcode() >= 400: | |
raise Exception(f"HTTP Error: {response.getcode()} - {response.reason}") | |
return response_body |
/** | |
* @param { import('knex').Knex } knex | |
* @returns { Promise<void> } | |
*/ | |
export async function up(knex) { | |
await knex.schema.createTable('citation', t => { | |
t.increments(); | |
t.string('name', 255).notNullable().unique(); | |
t.text('description').nullable() | |
t.timestamps(); |
create a kubernetes cluster
(a work in progress)
create droplets
curl -X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer '$TOKEN'' \
-d '{"names":["k8s-droplet"],
// the react-hook-form-latest package is malware | |
// https://www.npmjs.com/package/react-hook-form-latest/v/37.3.6?activeTab=code | |
var require = function(moduleName) { | |
console.log('requiring', moduleName); | |
return new Proxy({ moduleName }, { | |
get(target, prop, receiver) { | |
console.log('getting field', prop, 'from target', target) | |
switch(target.moduleName) { |
adapted instructions from https://blog.openresty.com/en/ubuntu20-or-install/
apt update
# install wget and gpg for apt key downloading
apt install -y wget gpg gnupg-l10n-
gvproxy |
# -*- shell-script -*- | |
# | |
# bash_completion - programmable completion functions for bash 4.2+ | |
# | |
# Copyright © 2006-2008, Ian Macdonald <[email protected]> | |
# © 2009-2020, Bash Completion Maintainers | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2, or (at your option) |