A common and reliable pattern in service unit files is thus:
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
| const path = require('path'); | |
| const fs = require('fs/promises'); | |
| // ---------------------------------------- CONFIG ---------------------------------------- // | |
| /** | |
| * Add the fonts to copy here. | |
| * Make sure you've installed the Fontsource package for the font! | |
| * Uses the same font family format as the Google Font API. |
| Ansible playbook to setup HTTPS using Let's encrypt on nginx. | |
| The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS. | |
| The server pass A rating on [SSL Labs](https://www.ssllabs.com/). | |
| To use: | |
| 1. Install [Ansible](https://www.ansible.com/) | |
| 2. Setup an Ubuntu 16.04 server accessible over ssh | |
| 3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain | |
| 4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder) |
| ## within current branch, squashes all commits that are ahead of master down into one | |
| ## useful if you merged with upstream in the middle of your commits (rebase could get very ugly if this is the case) | |
| ## commit any working changes on branch "mybranchname", then... | |
| git checkout master | |
| git checkout -b mybranchname_temp | |
| git merge --squash mybranchname | |
| git commit -am "Message describing all squashed commits" | |
| git branch -m mybranchname mybranchname_unsquashed | |
| git branch -m mybranchname |
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var del = require('del'); | |
| var uglify = require('gulp-uglify'); | |
| var gulpif = require('gulp-if'); | |
| var exec = require('child_process').exec; | |
| var notify = require('gulp-notify'); |
| -- luajit simple_jit.lua | |
| ffi = require 'ffi' | |
| simple = ffi.load('simple') | |
| ffi.cdef[[ | |
| typedef struct Simple Simple; | |
| Simple *Simple_Simple(int); | |
| void Simple__gc(Simple *); |
| // g++ simple.cpp -shared -o libsimple.dylib | |
| #include <stdio.h> | |
| class Simple { | |
| int id_; | |
| public: | |
| Simple(int id); | |
| ~Simple(); |