I hereby claim:
- I am sillysachin on github.
- I am sachinsr (https://keybase.io/sachinsr) on keybase.
- I have a public key ASD58ybluGuoIjj9n23c_mFzFRraCasAwEmRNRQyQeg0NAo
To claim this, I am signing this object:
| minikube stop; minikube delete && | |
| docker stop $(docker ps -aq) && | |
| rm -rf ~/.kube ~/.minikube && | |
| sudo rm -rf /usr/local/bin/localkube /usr/local/bin/minikube && | |
| launchctl stop '*kubelet*.mount' && | |
| launchctl stop localkube.service && | |
| launchctl disable localkube.service && | |
| sudo rm -rf /etc/kubernetes/ && | |
| docker system prune -af --volumes |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # node-reinstall | |
| # credit: http://stackoverflow.com/a/11178106/2083544 | |
| ## program version | |
| VERSION="0.0.13" | |
| ## path prefix | |
| PREFIX="${PREFIX:-/usr/local}" |
| package main | |
| import ( | |
| "encoding/csv" | |
| "fmt" | |
| "net/http" | |
| ) | |
| func readCSVFromUrl(url string) ([][]string, error) { | |
| resp, err := http.Get(url) |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "net/http/cookiejar" | |
| "net/url" |
If you're trying to do this, you came to the right place!
Watch this code work in real time: https://twitter.com/CodingDoug/status/940022568089554944
See also this gist for copying in the other direction: https://gist.github.com/CodingDoug/44ad12f4836e79ca9fa11ba5af6955f7
| // Copyright 2017 Google LLC. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // https://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| #!/usr/bin/env bash | |
| # https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
| # https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
| # http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
| # http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
| # http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
| # http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
| # Remove existing downloads and binaries so we can start from scratch. | |
| rm ~/google-chrome-stable_current_amd64.deb |
| const CDP = require('chrome-remote-interface'); | |
| const argv = require('minimist')(process.argv.slice(2)); | |
| const file = require('fs'); | |
| // CLI Args | |
| const url = argv.url || 'https://www.google.com'; | |
| const format = argv.format === 'jpeg' ? 'jpeg' : 'png'; | |
| const viewportWidth = argv.viewportWidth || 1440; | |
| const viewportHeight = argv.viewportHeight || 900; | |
| const delay = argv.delay || 0; |
| # Install Google Chrome | |
| # https://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line | |
| sudo apt-get install libxss1 libappindicator1 libindicator7 | |
| wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
| sudo dpkg -i google-chrome*.deb # Might show "errors", fixed by next line | |
| sudo apt-get install -f | |
| # Install Node Stable (v7) | |
| curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - | |
| sudo apt-get install -y nodejs |