This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @name Download file / upload file | |
* | |
* @desc Find an image by class selector, downloads the image, saves it to disk and read it again. Use this together with a .fileUpload() method. | |
* | |
*/ | |
const puppeteer = require('puppeteer') | |
const fs = require('fs') | |
const path = require('path') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
udo apt-get update | |
sudo apt-get clean | |
sudo apt-get autoremove | |
sudo apt-get update && sudo apt-get upgrade | |
sudo dpkg --configure -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
func main() { | |
b := []byte(`{"key":"value"}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
cd /d/workspace/provisioning/vagrantfile/development | |
#more commands here | |
vagrant ssh -- -t 'cd /myworkspace; /bin/bash' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install watchman | |
#install sshpass | |
#rsync1.sh | |
cd /Users/myuser | |
watchman-make --root ./myfolder -p='*' --run /Users/myuser/rsync2.sh | |
########################## | |
#rsync2.sh | |
sshpass -p "myPassword" rsync --recursive --delete --progress partial -avz /Users/myuser/myfolder remoteuser@remoteip:/remotefolder1/remotefolder2 |