This way a Python daemon can be installed on Rasbian, Ubuntu or similar systems using systemd.
Installing:
sudo cp hello.service /lib/systemd/system/hello.service
sudo systemctl daemon-reload
sudo systemctl enable hello.service
# what we want: | |
# client -> OpenVPN -> Tor -> Internet | |
# Install & configure OpenVPN | |
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04 | |
# assumed OpenVPN configuration | |
# 10.8.0.1/24-Subnet | |
# tun0-Interface |
# How to uninstall Razer Synapse 2 ( https://www.razerzone.com/synapse-2 ) | |
# on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra) | |
# without using Razer's official uninstall tool. | |
# Tested on OS X 10.11.5 in July 2016. | |
# Edited with additional steps for later OS X versions, | |
# contributed by commenters on this gist. | |
# Step 1: In your terminal: stop and remove launch agents | |
launchctl remove com.razer.rzupdater |
# set the base image to Debian | |
# https://hub.docker.com/_/debian/ | |
FROM debian:latest | |
# replace shell with bash so we can source files | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
# update the repository sources list | |
# and install dependencies | |
RUN apt-get update \ |
secmalloc.o: secmalloc.c | |
gcc -c -fPIC secmalloc.c -o secmalloc.o | |
secmalloc.so: secmalloc.o | |
gcc -shared -Wl,-soname,secmalloc.so -o secmalloc.so secmalloc.o |
Creating an OAuth2 server is not a task that should be taken lightly. There are many security loopholes that could be exploited, and regular examinations are critical to handle possible vulnerabilities.
Auth is an authentication microservice based on the OAuth2 identity delegation protocol.
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
.controller('DashCtrl', function($scope, $ionicPlatform, $cordovaGeolocation) { | |
var watch; | |
var watchOptions = { | |
timeout : 5000, | |
maximumAge: 3000, | |
enableHighAccuracy: true // may cause errors if true | |
}; | |
var pollCurrentLocation = function() { | |
$cordovaGeolocation.getCurrentPosition(watchOptions) |
local function getOS() | |
local raw_os_name, raw_arch_name = '', '' | |
-- LuaJIT shortcut | |
if jit and jit.os and jit.arch then | |
raw_os_name = jit.os | |
raw_arch_name = jit.arch | |
else | |
-- is popen supported? | |
local popen_status, popen_result = pcall(io.popen, "") |