###Simply edit this file:
/System/Library/LaunchDaemons/ssh.plist
and add this to it:
<key>Listeners2</key>
<dict>
<key>SockServiceName</key>
22022
| #include <SPI.h> | |
| #include <Ethernet.h> | |
| // For ethernet shield | |
| byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };// MAC Address | |
| char server[] = "arduinotest.meteor.com"; // Server to connect to | |
| // IP Address in case we don't get one from DCHP | |
| IPAddress ip(192,168,0,177); | |
| EthernetClient client; |
| Projects = new Meteor.Collection("projects"); | |
| Sensors = new Meteor.Collection("sensors"); | |
| Readings = new Meteor.Collection("readings"); | |
| // THE LINE BELOW SHOULD BE COMMENTED OUT! | |
| //SimpleSchema.debug = true; | |
| Schemas = {}; | |
| Schemas.project = new SimpleSchema({ |
| Projects = new Meteor.Collection("projects"); | |
| Sensors = new Meteor.Collection("sensors"); | |
| Readings = new Meteor.Collection("readings"); | |
| // THE LINE BELOW SHOULD BE COMMENTED OUT! | |
| //SimpleSchema.debug = true; | |
| Schemas = {}; | |
| Schemas.project = new SimpleSchema({ |
| # A simple script that creates two TCP sockets, one that listens | |
| # for and handles HTTP traffic on port 9000 and one that | |
| # listens for and handles vanilla TCP traffic on port 9001 | |
| # Web Server portion is set up to support Cross Origin Requests, FYI | |
| import sys # for exit() | |
| import BaseHTTPServer # for WebHandler | |
| import SocketServer # for everything | |
| import json # for json parsing |
###Simply edit this file:
/System/Library/LaunchDaemons/ssh.plist
and add this to it:
<key>Listeners2</key>
<dict>
<key>SockServiceName</key>
22022
| #/bin/bash | |
| Host_Name=host | |
| Domain=example.com | |
| Password="PASS_HASH_FROM_NAMECHEAP" | |
| IP_Address=$(curl -s icanhazip.com) | |
| url="https://dynamicdns.park-your-domain.com/update?host=$Host_Name&domain=$Domain&password=$Password" | |
| result=$(curl -s --globoff $url) |
| ########################################## | |
| # This script relies on the package "ssh-copy-id". It's on all your major package | |
| # managers. This script was written for an OSX environment, but there's no reason | |
| # why it wouldn't work on other unix-ey platforms. | |
| # | |
| # WARNING: Use this at your own risk, I'm not responsible if you break something by running it. | |
| # | |
| # The following happens when this script runs. | |
| # .5. Data is gathered. | |
| # 1. Keys are generated and named based on the short name you supply in ~/.ssh/. |
| sed -i'' 's/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' old_ios_binary | |
| ldid -s old_ios_binary |
| import requests | |
| import requests.auth | |
| import json | |
| import urllib | |
| import os | |
| #setup | |
| if not os.path.exists("liked_images"): |
| #!/bin/sh | |
| palette="/tmp/palette.png" | |
| filters="fps=15,scale=320:-1:flags=lanczos" | |
| ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
| ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |