I made this with the help from a tutorial from codecademy :)
Forked from Ophélie Champagne's Pen Solar system.
| #Install WinGet | |
| #Based on this gist: https://gist.github.com/crutkas/6c2096eae387e544bd05cde246f23901 | |
| $hasPackageManager = Get-AppPackage -name 'Microsoft.DesktopAppInstaller' | |
| if (!$hasPackageManager -or [version]$hasPackageManager.Version -lt [version]"1.10.0.0") { | |
| "Installing winget Dependencies" | |
| Add-AppxPackage -Path 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx' | |
| $releases_url = 'https://api.github.com/repos/microsoft/winget-cli/releases/latest' | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 |
| using System; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net.Http.Headers; | |
| using System.Threading.Tasks; | |
| using Microsoft.Graph; | |
| using Microsoft.IdentityModel.Clients.ActiveDirectory; | |
| using Newtonsoft.Json.Linq; |
| -- Retrieve descendants | |
| -- ==================== | |
| -- retrieve descendants of #4 | |
| SELECT c.* | |
| FROM Comments AS c | |
| JOIN TreePaths AS t ON c.comment_id = t.descendant | |
| WHERE t.ancestor = 4; | |
| -- Retrieve ancestors |
| # | |
| # Install boxstarter: | |
| # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
| # | |
| # You might need to set: Set-ExecutionPolicy RemoteSigned | |
| # | |
| # Run this boxstarter by calling the following from an **elevated** command-prompt: | |
| # start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST> | |
| # OR | |
| # Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots |
| -- FlashAir Lua script | |
| -- Copy to 'Lua' folder on your SD card | |
| -- Set as RUN_SCRIPT/SD_EVENT in your SD_WLAN/CONFIG file: | |
| -- LUA_RUN_SCRIPT=/Lua/upload.lua | |
| -- LUA_SD_EVENT=/Lua/upload.lua | |
| local httpendpoint = 'http://192.168.1.13:3333/upload' | |
| local folder = '/DCIM' | |
| -- Recursively iterate through directories |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>True Trello Printer</title> | |
| <link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> | |
| <style> | |
| body{margin:15%;} | |
| .panel-body{ |
| import sys | |
| import csv | |
| import httplib, urllib, base64 | |
| def main(): | |
| # set the name of your repository, username and password | |
| username = "test" | |
| password = "test" | |
| repo = "test" | |
I made this with the help from a tutorial from codecademy :)
Forked from Ophélie Champagne's Pen Solar system.