# install rbenv
# install ruby
# install rails
# install debuger
$ gem install ruby-debug-ide debase
This file contains hidden or 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
| // Chi-like syntactic sugar layer on top of stdlib http.ServeMux. | |
| package main | |
| import ( | |
| "net/http" | |
| "slices" | |
| ) | |
| type ( | |
| middleware func(http.Handler) http.Handler |
This file contains hidden or 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
| [ | |
| { | |
| "name": "ayu" | |
| }, | |
| { | |
| "name": "ElixirSyntax" | |
| }, | |
| { | |
| "name": "LSP-elixir" | |
| }, |
# Generate pirvate key and csr
openssl req -newkey rsa:2048 -nodes -keyout server.key -out server.csr
# Generate CSA from existing private key
openssl req -key server.key -new -out server.csr
# Generate CSR from existing certificate and private key
This file contains hidden or 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
| image: docker:19.03.5 | |
| services: | |
| - docker:19.03.5-dind | |
| before_script: | |
| - docker info | |
| - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY | |
| stages: |
curl https://raw.githubusercontent.com/wklken/vim-for-server/master/vimrc > ~/.vimrc
apt-get install nfs-common
# install netsharetouch /etc/nginx/site-availables/jenkins.example.com
# Update jenkins.example.com with content in gist
ln -s /etc/nginx/site-availables/jenkins.example.com /etc/nginx/site-enables/jenkins.example.com
nginx -t
systemctl restart nginx
# Config SSL with Let's encrypt & certbot
certbot --nginx -d jenkins.example.com -d www.jenkins.example.com
This file contains hidden or 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
| Server { | |
| Port = 8080 | |
| SourceRoot = /var/www/foobar/public/ | |
| } | |
| VirtualHost { | |
| * { | |
| Pattern = .* | |
| RewriteRules { | |
| * { |
This file contains hidden or 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
| #!/bin/bash | |
| declare -i ID | |
| ID=`xinput list | grep -Eo 'Touchpad\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'` | |
| xinput set-prop $ID "Device Enabled" 0 | |
| echo "Touchpad has been disabled." |
NewerOlder