This file contains hidden or 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
| # | |
| # Ubuntu 18.04 (Bionic Beaver) | |
| # | |
| # Basic packages i usually install. | |
| # | |
| # Author: Julius Beckmann <[email protected]> | |
| # | |
| # Upgraded Script from 17.04: https://gist.github.com/h4cc/09b7fe843bb737c8039ac62d831f244e | |
| # Upgraded Script from 16.04: https://gist.github.com/h4cc/fe48ed9d85bfff3008704919062f5c9b |
This file contains hidden or 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
| # This example script requires the MicroPython changes in the following branches: | |
| # | |
| # https://github.com/ccooper21/micropython/tree/websocket-client-support | |
| # https://github.com/ccooper21/micropython-lib/tree/umqtt.simple-websocket-support | |
| import usocket as socket | |
| import utime as time | |
| from websocket import websocket | |
| from umqtt.simple import MQTTClient |
This file contains hidden or 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
| function Get-WebFile { | |
| param( | |
| [Parameter(Mandatory=$true)] | |
| $Uri, | |
| [string] $OutFile, | |
| [string] $Hash, | |
| [string] $HashAlgorithm = 'SHA256' | |
| ) | |
| if (-not $OutFile) { |
This file contains hidden or 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
| # Pull the SDD1306 lib from here https://github.com/adafruit/micropython-adafruit-ssd1306/blob/master/ssd1306.py | |
| from time import sleep_ms | |
| from machine import Pin, I2C | |
| from ssd1306 import SSD1306_I2C | |
| buf = "wubba lubba dub dub " | |
| i2c = I2C(-1, Pin(4),Pin(5),freq=40000) # Bitbanged I2C bus | |
| assert 60 in i2c.scan(), "No OLED display detected!" |
This file contains hidden or 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
| Function BrowseForFolder() | |
| '@description: Browse for folder dialog. | |
| '@author: Jeremy England (SimplyCoded) | |
| Dim oFolder | |
| Set oFolder = CreateObject("Shell.Application").BrowseForFolder(0,"Select a Folder",0,0) | |
| If (oFolder Is Nothing) Then | |
| BrowseForFolder = Empty | |
| Else | |
| BrowseForFolder = oFolder.Self.Path | |
| End If |
This file contains hidden or 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
| javascript: (function() { | |
| var results = []; | |
| var totalTrips = 0; | |
| var cancelledTrips = 0; | |
| var nbTripsShared = 0; | |
| var finishedParsing = false; | |
| var totalNbPeopleSharedWith = 0; | |
| var urlCalculated = []; | |
| function parsePage(page) { |
This file contains hidden or 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
| 4564 123456 | |
| 4315 password | |
| 3543 admin | |
| 2964 1234 | |
| 2620 12345 | |
| 2090 ubnt | |
| 2038 root | |
| 1802 111111 | |
| 1392 000000 | |
| 1346 support |
This file contains hidden or 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
| # https://vt4help.service-now.com/kb_view_customer.do?sysparm_article=KB0010740#linux | |
| wget https://secure.nis.vt.edu/resources/downloads/pulse-8.2R5.i386.deb | |
| sudo dpkg –i pulse-8.2R5.i386.deb | |
| /usr/local/pulse/PulseClient.sh install_dependency_packages |
This file contains hidden or 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/sh | |
| # Userland mode (~$USER/), (~/). | |
| # ~/.fonts is now deprecated and that | |
| #FONT_HOME=~/.fonts | |
| # ~/.local/share/fonts should be used instead | |
| FONT_HOME=~/.local/share/fonts | |
| echo "installing fonts at $PWD to $FONT_HOME" | |
| mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro" |
This file contains hidden or 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
| ''' | |
| Get Bitcoin Value | |
| http://api.coindesk.com/v1/bpi/currentprice.json | |
| ''' | |
| import urllib.request, json, time | |
| def obter_valor(): | |
| try: | |
| url = "http://api.coindesk.com/v1/bpi/currentprice.json" |