The following steps facilitate remote pairing using:
- tmux which allows terminal sessions to be attached to different terminals, and
- ngrok which provides secure tunnels to your localhost
OS X: brew install tmux
#Tutorial made by Mayday Parade (xDar1D) | |
from direct.actor.Actor import Actor | |
from pandac.PandaModules import * | |
from direct.task import Task | |
import math | |
from math import pi, sin, cos | |
from direct.showbase.ShowBase import ShowBase | |
from direct.task import Task | |
from direct.interval.IntervalGlobal import Sequence | |
from pandac.PandaModules import Point3 |
// clang -cc1 -analyzer-checker-help | |
// OVERVIEW: Clang Static Analyzer Checkers List | |
// USAGE: -analyzer-checker <CHECKER or PACKAGE,...> | |
// | |
// CHECKERS: | |
// alpha.core.BoolAssignment Warn about assigning non-{0,1} values to Boolean variables | |
// alpha.core.CallAndMessageUnInitRefArg | |
// Check for logical errors for function calls and Objective-C message expressions (e.g., uninitialized arguments, null function pointers, and pointer to undefined variables) | |
// alpha.core.CastSize Check when casting a malloc'ed type T, whether the size is a multiple of the size of T | |
// alpha.core.CastToStruct Check for cast from non-struct pointer to struct pointer |
#!/usr/bin/env bash | |
REMOTE_HOST=${1-"YOUR REMOTE HOST HERE"} | |
DEFAULT_API_FILE="$HOME/.ipfs/api" | |
API_FILE="${IPFS_PATH-$DEFAULT_API_FILE}" | |
if [ -e "$API_FILE" ]; then | |
echo "IPFS API is already running" | |
exit 1 | |
fi |
""" | |
pybble.py | |
Yup, you can run Python on your Pebble too! Go thank the good folks who | |
made Transcrypt, a dead-simple way to take your Python code and translate | |
it to *very* lean Javascript. In our case, instead of browser, we run it | |
on Pebble using their equally dead-simple Online IDE and Pebble.js library. | |
Here's a working example, it runs on a real Pebble Classic. |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
// tmux.c | |
// compile using: cc -o tmux tmux.c | |
// makeit setuid executable by: chmod +s tmux | |
// also change owner to desired user: [sudo] chown {usernamehere} tmux | |
// give it to guests' shell (passwd entry): guest::9999:99:guest user:/tmp:/opt/tmux | |
// you can delete password with passwd -du {login} | |
// allow empty passwords with PermitEmptyPasswords yes in sshd_config | |
// update (18 aug 2016): added dynamic owner change, for security ofc :) |
#!/bin/sh | |
## | |
## Usage: ./ovpn-writer.sh SERVER CA_CERT CLIENT_CERT CLIENT_KEY > client.ovpn | |
## Orginial gist here https://gist.github.com/trovao/18e428b5a758df24455b | |
## | |
server=${1?"The server address is required"} | |
cacert=${2?"The path to the ca certificate file is required"} | |
client_cert=${3?"The path to the client certificate file is required"} |
import asyncio | |
import aiohttp | |
from aiohttp import web | |
class WebsocketProxy(object): | |
def __init__(self, upstream_url): | |
self.upstream_url = upstream_url |