sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Send toast notifications in Windows 10, using Windows Runtime, | |
// without any language projection, in PLAIN C | |
// Copyright (c) 2021 Valentin - Gabriel Radu | |
// | |
// MIT License | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this softwareand associated documentation files(the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and /or sell | |
// copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference | |
// | |
{ | |
"editor.tabSize": 2, | |
"editor.tabCompletion": "on", | |
"editor.insertSpaces": true, | |
"editor.trimAutoWhitespace": true, | |
"editor.letterSpacing": 0, | |
"editor.autoIndent": "advanced", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx:alpine AS builder | |
# nginx:alpine contains NGINX_VERSION environment variable, like so: | |
# ENV NGINX_VERSION 1.15.0 | |
# Our NCHAN version | |
ENV NCHAN_VERSION 1.1.15 | |
# Download sources | |
RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG PHP_VERSION=7.2-fpm-stretch | |
ARG COMPOSER_VERSION=latest | |
# builder stage | |
FROM php:$PHP_VERSION AS builder | |
ARG AMQP_VERSION=1.9.3 | |
ARG PHPREDIS_VERSION=4.1.1 | |
RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/base64" | |
"net/http" | |
"strings" | |
) | |
type handler func(w http.ResponseWriter, r *http.Request) |