Skip to content

Instantly share code, notes, and snippets.

@danepowell
danepowell / gist:7f60e15aa9ec4befd30702768b953562
Last active May 25, 2021 14:33
UCSF conversa covid screening bot
function waitForElementToDisplay(selector) {
var startTimeInMs = Date.now();
(function loopSearch() {
if (document.querySelector(selector) != null) {
document.querySelector(selector).click();
return;
}
else {
setTimeout(function () {
if (Date.now() - startTimeInMs > 60000)
@danepowell
danepowell / gist:a1da3940cc07f0fe0bc4404519edb2a2
Last active May 24, 2021 14:48
PD controller for andrey-leshenko/ISSDockingBotGame
// Thrust types
NEGATIVE_LARGE = -2;
NEGATIVE_SMALL = -1;
NONE = 0;
POSITIVE_SMALL = 1;
POSITIVE_LARGE = 2;
//
// This function is called on each simulation step.
//
lando logs -s database
Attaching to dt524_database_1
database_1 | chmod: changing permissions of '/helpers/add-cert.sh': Operation not permitted
database_1 | chmod: changing permissions of '/helpers/auth.sh': Operation not permitted
database_1 | chmod: changing permissions of '/helpers/binding.sh': Operation not permitted
database_1 | chmod: changing permissions of '/helpers/generate-key.sh': Operation not permitted
database_1 | chmod: changing permissions of '/helpers/get-remote-url.sh': Operation not permitted
database_1 | chmod: changing permissions of '/helpers/lando-entrypoint.sh': Operation not permitted
database_1 | chmod: changing permissions of '/helpers/load-keys.sh': Operation not permitted
database_1 | chmod: changing permissions of '/helpers/mounter.sh': Operation not permitted
@danepowell
danepowell / gist:03740407299108df89dc1c750ad586d4
Created March 19, 2019 01:32
composer install --prefer-source with Robo 1.4.6
- Installing consolidation/robo (1.4.6):
Cloning to cache at '/home/dane/.cache/composer/vcs/https---github.com-consolidation-Robo.git/'
Executing command (CWD): git clone --mirror 'https://github.com/consolidation/Robo.git' '/home/dane/.cache/composer/vcs/https---github.com-consolidation-Robo.git/'
Cloning d4805a1abbc730e9a6d64ede2eba56f91a2b4eb3 from cache
Executing command (CWD): git clone --no-checkout '/home/dane/.cache/composer/vcs/https---github.com-consolidation-Robo.git/' '/home/dane/packages/blt/vendor/consolidation/robo' --dissociate --reference '/home/dane/.cache/composer/vcs/https---github.com-consolidation-Robo.git/' && cd '/home/dane/packages/blt/vendor/consolidation/robo' && git remote set-url origin 'https://github.com/consolidation/Robo.git' && git remote add composer 'https://github.com/consolidation/Robo.git'
Executing command (/home/dane/packages/blt/vendor/consolidation/robo): git remote set-url --push origin 'git@github.com:consolidation/Robo.git'
Executing command (/home/dane/pa
@danepowell
danepowell / gist:536439e21eb0387e140b8ebca903f3ad
Created December 3, 2018 22:46
DrupalVM vagrant warnings
vagrant up
Bringing machine 'foo' up with 'virtualbox' provider...
==> foo: Cloning VM...
==> foo: Matching MAC address for NAT networking...
==> foo: Checking if box 'geerlingguy/ubuntu1604' is up to date...
==> foo: Setting the name of the VM: local.foo.com
==> foo: Vagrant has detected a configuration issue which exposes a
==> foo: vulnerability with the installed version of VirtualBox. The
==> foo: current guest is configured to use an E1000 NIC type for a
==> foo: network adapter which is vulnerable in this version of VirtualBox.
### Keybase proof
I hereby claim:
* I am danepowell on github.
* I am danepowell (https://keybase.io/danepowell) on keybase.
* I have a public key whose fingerprint is 77DC 6DB3 8938 3409 71A8 C075 E1D8 BFA6 C041 94AC
To claim this, I am signing this object: