https://dl.razer.com/drivers/BladeC1/Razer%20Blade%2015%20%282018%29%20BIOS%20update%20v1.05.pdf
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/bash | |
| echo "Raspberry Pi Alpha Setup tool:" | |
| echo | |
| echo "Installing Screen..." | |
| sudo apt-get install screen | |
| echo | |
| read -rp "Enter your Device ID: " deviceID | |
| echo "$deviceID" > device_id.txt |
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
| Verifying that "nrobinson2000.id" is my Blockstack ID. https://onename.com/nrobinson2000 |
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
| var token = "YOUR_PARTICLE_ACCESS_TOKEN"; | |
| var device = "YOUR_PARTICLE_DEVICEID"; | |
| function httpPost(url, params) | |
| { | |
| var xhr = new XMLHttpRequest(); | |
| xhr.open("POST", url, true); | |
| //Send the proper header information along with the request | |
| xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); |
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
| { | |
| "eventName": "slack-bot", | |
| "url": " https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYY/ZZZZZZZZZZZZZZZZZZZZZZZZ", | |
| "requestType": "POST", | |
| "json": { | |
| "text": "{{PARTICLE_EVENT_VALUE}}", | |
| "username": "particle-bot", | |
| "icon_emoji": ":level_slider:" | |
| }, | |
| "mydevices": true |
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
| export GPG_TTY=$(tty) | |
| export PS1="\[$(tput setaf 6)\]\[$(tput bold)\]\u\[$(tput sgr0)\]\[$(tput setaf 5)\]\[$(tput bold)\]@\[$(tput setaf 7)\]\[$(tput bold)\]\h:\[$(tput sgr0)\]\[$(tput setaf 4)\]\[$(tput bold)\]\w $ \[$(tput sgr0)\]" | |
| export EDITOR="nano" | |
| export PARTICLE_DEVELOP=1 | |
| alias spark="particle" | |
| alias ls="ls -G" | |
| alias la="ls -la" | |
| alias lh="ls -lah" | |
| alias l="ls" | |
| alias update="~/auto-git.sh" |
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 httpGetJSON(url) // Get JSON object from an API | |
| { | |
| var xhr = new XMLHttpRequest(); | |
| xhr.open("GET", url, false); // false for synchronous request | |
| xhr.send( null ); | |
| return JSON.parse(xhr.responseText); | |
| } | |
| // Example from https://api.github.com/ | |
| // Get current_user_url |
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/bash | |
| getLibURL() | |
| { | |
| TOKEN="$(cat ~/.particle/particle.config.json | grep 'token' | grep -oE '([0-Z])\w+')" | |
| DATA=$(curl -sLH "Authorization: Bearer $TOKEN" "https://api.particle.io/v1/libraries/$1" | json_pp) | |
| LIBURL=$(echo "$DATA" | grep "url" | grep -oE '"((?:\\.|[^"\\])*)"' | grep "http" | tr -d '"') | |
| } | |
| getLibURL "$1" |
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 | |
| # Basic setup script for devices | |
| # Works on OSX + should also work for Unix. | |
| # Users of Windows 10 (or higher) can likely use the builtin Ubuntu install. | |
| # | |
| # We need to do the following: | |
| # 1. Query the computer for the relevant USB port | |
| # 2. Set the device to listening mode (if required) | |
| # 3. Query the device for the deviceID |
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
| # Conky configuration | |
| background no | |
| use_xft yes | |
| xftfont Monospace:size=9 | |
| xftalpha 0 | |
| out_to_console no | |
| update_interval 1 | |
| total_run_times 0 | |
| own_window yes | |
| own_window_type desktop |