brew install nano
alias nano='/usr/local/bin/nano'
source ./zshrc
name: 'Dependency Review' | |
on: [pull_request] | |
permissions: | |
contents: read | |
jobs: | |
dependency-review: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout Repository' | |
uses: actions/checkout@v3 |
# /etc/nginx/nginx.conf | |
rtmp { | |
server { | |
listen 1935; | |
chunk_size 4096; | |
buflen 2s; | |
application live { | |
live on; |
// When chan chan usefull in Go | |
package main | |
import "fmt" | |
import "time" | |
func main() { | |
request := make(chan chan string) |
// RabbitMQ: consumer + producer (in one file, yes) | |
// docker run --detach --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management | |
// TODO: docker-compose.yml | |
package main | |
import ( | |
"fmt" |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
func main() { | |
var data = map[string]map[string]string{ | |
"public_key": map[string]string{}, |
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
package acronym | |
import ( | |
"strings" | |
"unicode" | |
) | |
// Abbreviate e.g. Ruby on Rails as ROR | |
// http://exercism.io/submissions/04669e67e3c041a398a198db0bc503df |
There are two modes when you don't want Certbot to edit your configuration:
Webroot is better because it doesn't need to replace Nginx (to bind to port 80) to renew certificates.
In the following, we're setting up mydomain.com
to be served from /var/www/mydomain
, and challenges will be served from /var/www/letsencrypt
.
SSH into Root
$ ssh [email protected]
Change Root Password