next.js, nginx, reverse-proxy, ssl
$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt
// | |
// main.c | |
// testQJS | |
// | |
// Created by menangen on 15/08/2019. | |
// Copyright © 2019 menangen. All rights reserved. | |
// | |
#include "quickjs.h" | |
#include "quickjs-libc.h" |
curl --header 'Authorization: token INSERTACCESSTOKENHERE' \ | |
--header 'Accept: application/vnd.github.v3.raw' \ | |
--remote-name \ | |
--location https://api.github.com/repos/owner/repo/contents/path | |
# Example... | |
TOKEN="INSERTACCESSTOKENHERE" | |
OWNER="BBC-News" | |
REPO="responsive-news" |
#!/usr/bin/env bash | |
# Must be run on an Amazon Linux AMI that matches AWS Lambda's runtime which can be found at: | |
# https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html | |
# | |
# As of May 21, 2019, this is: | |
# Amazon Linux AMI 2018.03.0 (ami-0756fbca465a59a30) | |
# | |
# You need to prepend PATH with the folder containing these binaries in your Lambda function | |
# to ensure these newer binaries are used. |
## Personal note: Muslims are not terrorists and I humbly request my engineering community to help end racism. | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls | |
# http://wiki.nginx.org/QuickStart | |
# http://wiki.nginx.org/Configuration | |
# | |
# Generally, you will want to move this file somewhere, and start with a clean | |
# file but keep this around for reference. Or just disable in sites-enabled. | |
# |
I was poking around trying to figure out all the packages I have access to publish and got curious. So I write this little script to determine the download stats for all the packages I have publish access to.
Feel free to try it yourself. Just change the username passed to getUserDownloadStats
.
By default, the stats are sorted by their average daily downloads (descending). That should give you an idea of the most "popular" package of a given user relative to how long that package has been around.
You can use it with npx
like so:
This gist assumes:
www-data
(may be apache
on other systems)ame: CMake Build Matrix | |
on: [push, pull_request] | |
env: | |
CMAKE_VERSION: 3.16.2 | |
NINJA_VERSION: 1.9.0 | |
BUILD_TYPE: Release | |
CCACHE_VERSION: 3.7.7 |
# This is a basic workflow to help you get started with Actions | |
# workflow - цепочка действий | |
# Имя процесса Билдится на всех типах 📦 🐍 | |
name: CMake Build Matrix | |
# Controls when the action will run. Triggers the workflow on push | |
on: | |
push: | |
pull_request: | |
release: |
#ifndef _GET_SYMBOL_FROM_CURRENT_PROCESS_H | |
#define _GET_SYMBOL_FROM_CURRENT_PROCESS_H | |
#include <assert.h> | |
#ifdef _WIN32 | |
#include <windows.h> | |
#else | |
#include <dlfcn.h> | |
#endif |