Download the windows image you want.
AWS vmimport supported versions: Microsoft Windows 10 (Professional, Enterprise, Education) (US English) (64-bit only)
So Home wont work.
| # Obs: Work only in Firefox 66.x or prior, because the function "driver.switch_to.alert.send_keys" not work in new versions. | |
| # tested in selenium-webdriver (3.142.7), webdrivers (4.6.0) and firefox (66.0.5) | |
| # Download firefox to folder | |
| # config/initializers/selenium.rb | |
| Selenium::WebDriver::Firefox::Binary.path = 'path/to/firefox/66.x' | |
| # ----------------------------------------------------------------------------------------------------- | |
| # Code |
| ## template: jinja | |
| #cloud-config | |
| {% if v1.distro_release == 'focal' %} | |
| users: | |
| - name: berkant | |
| shell: /usr/bin/bash | |
| ssh_import_id: gh:berkant | |
| sudo: ALL=(ALL:ALL) NOPASSWD:ALL |
| #!/bin/sh | |
| # Sends command 'ATI' to modem #3 | |
| # Get a list of modems by running `mmcli -L` | |
| # Timeout is (probably) 2 seconds | |
| # Also see https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Modem.html#gdbus-method-org-freedesktop-ModemManager1-Modem.Command | |
| dbus-send --system --dest=org.freedesktop.ModemManager1 --print-reply /org/freedesktop/ModemManager1/Modem/3 org.freedesktop.ModemManager1.Modem.Command string:'ATI' uint32:2000 |
| # Use this script to test that your Telegram bot works. | |
| # | |
| # Install the dependency | |
| # | |
| # $ gem install telegram_bot | |
| # | |
| # Run the bot | |
| # | |
| # $ ruby bot.rb | |
| # |
| // junkterm is a quick and dirty serial terminal. | |
| package main | |
| import ( | |
| "io" | |
| "log" | |
| "os" | |
| "github.com/pkg/term" | |
| "github.com/spf13/cobra" |
| package main | |
| import ( | |
| "code.google.com/p/go.net/websocket" | |
| ) | |
| type connection struct { | |
| // The websocket connection. | |
| ws *websocket.Conn |
| # Demo http://ascii.io/a/3019 | |
| # build | |
| gdbb () { | |
| # build with debug flags | |
| go build -gcflags "-N -l" -o out | |
| # make sure the build didn't fail | |
| if [ $? != 0 ]; then return; fi |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| // The timeout handler. | |
| func ontimeout(t time.Time) { | |
| fmt.Println("[timeout] ", t) |
| /* ivan(a.t)mysqlab.net */ | |
| package main | |
| import ( | |
| "syscall" | |
| "os" | |
| "log" | |
| ) | |
| func daemon(nochdir, noclose int) int { |