Skip to content

Instantly share code, notes, and snippets.

View buggtb's full-sized avatar
🎯
Urgh..Why can't I set all my statuses in one place?

Tom Barber buggtb

🎯
Urgh..Why can't I set all my statuses in one place?
View GitHub Profile
@buggtb
buggtb / spacemacs-cheatsheet.md
Last active December 14, 2022 22:30 — forked from heroheman/spacemacs-cheatsheet.md
Spacemacs Cheatsheet - A cheat sheet for my most common shortcuts in Spacemacs

General

Shortcut Description
SPC f e d Open Configuration
SPC f e R Reload Configuration
SPC SPC Search Emacs
SPC h SPC Search Spacemacs Layer
SPC f s Save Buffer
SPC q q Quit Emacs w/ Prompt
SPC q Q Quit Emacs w/o Prompt
#!/bin/bash
STATUS=$(ssacli ctrl slot=0 pd all show status)
#echo "${STATUS}"
readarray -t arr <<<"$STATUS"
echo $HOSTNAME
for i in "${!arr[@]}"; do
[ -n "${arr[$i]}" ] || unset "arr[$i]"
Run UI on Node.js proxy
In order to run it locally you'll need a basic server setup.
Install NodeJS, if you don't have it yet.
Install local dependencies:
npm install
You can simply test and run the UI on a NodeJS proxy server called server.js, that will utilize a remote backend as source.
Feb 11 12:52:03 ubuntu kube-proxy.daemon[12420]: cat: /var/snap/kube-proxy/722/args: No such file or directory
Feb 11 12:52:03 ubuntu kube-proxy.daemon[12420]: W0211 12:52:03.493741 12420 server.go:194] WARNING: all flags other than --config, --write-config-to, and --cleanup are deprecated. Please begin using a config file ASAP.
Feb 11 12:52:03 ubuntu kube-proxy.daemon[12420]: I0211 12:52:03.500258 12420 server.go:429] Neither kubeconfig file nor master URL was specified. Falling back to in-cluster config.
Feb 11 12:52:03 ubuntu kube-proxy.daemon[12420]: F0211 12:52:03.500271 12420 server.go:377] unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined
kc.init({ onLoad: 'login-required', token, refreshToken })
.success(authenticated => {
if (authenticated) {
axios.get('https://..../Home')
.then(function (response) {
// handle success
console.log(response);
axios.get('https://..../api/repo/files/:public:OTV/tree?showHidden=false&filter=*.wcdf|FILES_FOLDERS', { headers: { 'content-type': 'application/json',
'Authorization': `Bearer `+kc.token} })
.then(function (response) {
``` line ```
``` line ```
@when('superset.installed')
@when_not('superset.started')
def start_superset():
check_call(['./scripts/launch_superset', '&'], shell=True)
set_flag('superset.started')
status_set('active','Superset running')
ubuntu@openstack:~$ openstack image list
+--------------------------------------+------------+--------+
| ID | Name | Status |
+--------------------------------------+------------+--------+
| 11c307a2-33d1-4dca-858f-b842f3df10e4 | bionic | active |
| e4fcd6ed-0746-4b88-87d0-449bcb4012bc | trusty-lxd | active |
| a90f04b3-9024-4e14-8916-daa2c68196ab | xenial | active |
| b4242947-275c-495f-8aff-2c543a8e87e2 | xenial-lxd | active |
+--------------------------------------+------------+--------+
ubuntu@openstack:~$ juju status
Model Controller Cloud/Region Version SLA Timestamp
conjure-openstack-novalx-edd conjure-up-localhost-f31 localhost/localhost 2.4.0 unsupported 21:51:58Z
App Version Status Scale Charm Store Rev OS Notes
ceph-mon 12.2.4 active 3 ceph-mon jujucharms 23 ubuntu
ceph-osd 12.2.4 active 3 ceph-osd jujucharms 257 ubuntu
ceph-radosgw 12.2.4 active 1 ceph-radosgw jujucharms 256 ubuntu
cinder 12.0.3 active 1 cinder jujucharms 268 ubuntu
cinder-ceph 12.0.3 active 1 cinder-ceph jujucharms 231 ubuntu
{
"apiVersion": "1.0",
"dataSourceName": "test",
"tables": [{
"id": "id_table_3471",
"name": "accounts",
"sourceTable": "accounts",
"keyColumn": "USER",
"linkTarget": "",
"linkTargetColumn": "",