An introduction to curl using GitHub's API
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
/* | |
A simple and elegant function to synchronize multiple functions that expect callback as their last parameter. | |
example: | |
sync(func1, [parms], func2, func3, func4, [parms], callback); | |
Public domain!! | |
please leave me a comment if you like it! | |
*/ |
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
/*=====================================*\ | |
build tasks | |
\*=====================================*/ | |
/** | |
* This gulpfile is optimised for developing | |
* React.js apps in ES6 through Babel, and is | |
* designed to live-inject CSS, HTML and even JavaScript | |
* changes so maintaining state in an application when | |
* editing code is super easy. |
In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
query
mutation
Reference implementation also adds the third type: subscription
. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
First of all, we are going to store all the data in a Docker shared volume, called openvpn_data
.
To initialise the OpenVPN configuration and CA:
$ docker run -v openvpn_data:/etc/openvpn --rm evolvedm/openvpn-rpi ovpn_genconfig -u udp://your-vpn.address.com
$ docker run -v openvpn_data:/etc/openvpn --rm -it evolvedm/openvpn-rpi ovpn_initpki
To start daemon (and auto-restart it):
I will be moving from FreeNAS jails to ubuntu with docker, docker compose, and portainer. FreeNAS support and updates are lacking. There are many advantages to making the switch and with ZFS on linux I think FreeNAS may be a thing of the past. Stay tuned for a new guide of my latest setup. Check out my other gists for progress on the switch. https://gist.github.com/mow4cash/626275e095f7f90898944a85d66b3be6
WARNING READ THIS: This page contains incomplete and possibly incorrect info. The page is constantly being edited and worked on. Many of these should work but some may be broken. Read the code carefully to understand what you are doing, stuff may be need to be changed for your own use. This includes but not limited too JAIL AND ROUTER IPs, YOUR FREENAS MAIN VOLUME,THE MOST RECENT RELEASE OF DOWNLOADED FILES Use at your own risk.There may be helpful info in the comments.
Find me in the FreeNAS forums
const express = require('express'); | |
const forum = express(); | |
forum | |
.get('/healthz', (req, res, next) => { | |
res.send({ name: 'forum', status: 'healthy' }); | |
next(); | |
}) | |
.get('/d/:id', (req, res, next) => { |
0x00004e1e movw r2, #0xc977 | |
0x00004e26 movw r1, #0xc977 | |
0x00004e3e movw r2, #0xc977 | |
0x00004e46 movw r1, #0xc977 | |
0x00004e5c movw r3, #0xc977 |