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.
from flask import Flask | |
import Adafruit_DHT | |
app = Flask(__name__) | |
@app.route('/hello') | |
def helloWorldHandler(): | |
return 'Hello World from Flask running on the PI!' | |
# Raspberry Pi Tips & Tricks - https://raspberrytips.nl | |
import Adafruit_DHT | |
humidity, temperature = Adafruit_DHT.read_retry(Adafruit_DHT.DHT22, 4) | |
humidity = round(humidity, 2) | |
temperature = round(temperature, 2) | |
if humidity is not None and temperature is not None: |
#!/bin/bash | |
# Install OSX Mojave through App Store. After downloading, the "InstallESD" is automatically mounted, which causes this script to fail. | |
# Therefore, "/Volumes/InstallESD" should be unmounted before running this script! | |
# Summary of instructions | |
#1 Download Mojave from App Store | |
#2 open terminal and run "umount /Volumes/InstallESD" | |
#3 make script executable: "chmod +x make_mojave_iso.sh" | |
#4 Run "./make_mojave_iso.sh" |
Option Explicit | |
Dim objshell,path,DigitalID, Result | |
Set objshell = CreateObject("WScript.Shell") | |
'Set registry key path | |
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" | |
'Registry key value | |
DigitalID = objshell.RegRead(Path & "DigitalProductId") | |
Dim ProductName,ProductID,ProductKey,ProductData | |
'Get ProductName, ProductID, ProductKey |
I hereby claim:
To claim this, I am signing this object:
version: '2' | |
services: | |
nginx: | |
image: jwilder/nginx-proxy | |
container_name: nginx | |
ports: | |
- 80:80 | |
- 443:443 |
import glob | |
import os | |
import re | |
pwd = os.getcwd() | |
searchpdf = pwd+'/*/testfile.pdf' | |
files = glob.glob(searchpdf) | |
num = len(glob.glob(searchpdf)) |
- Open Automator | |
- File -> New -> Service | |
- Change "Service Receives" to "files or folders" in "Finder" | |
- Add a "Run Shell Script" action | |
- Change "Pass input" to "as arguments" | |
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*" | |
- Save it as something like "Open in Visual Studio Code" |
#!/bin/bash | |
yum update -y | |
yum install docker -y | |
yum install curl -y | |
yum install git -y | |
service docker start | |
curl -L https://github.com/docker/compose/releases/download/1.22.0-rc1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
echo 'export PATH=/usr/local/bin:$PATH' | tee -a /etc/profile – | |
groupadd docker |