In this example, the gitignored contents of .env
are:
FOO=secret
BAR=alsosecret
You can encrypt it with openssl running the next command:
'use strict' | |
function isUndefined (value) { | |
return value === undefined | |
} | |
function isObject (value) { | |
return value === Object(value) | |
} |
require "dry/monads/result" | |
class ApplicationForm | |
include Dry::Monads::Result::Mixin | |
include ActiveModel::Model | |
def self.attribute(name, options = {}) | |
self.send(:attr_accessor, name) | |
_attributes << Attribute.new(name, options) | |
end |
# How to install the latests version of ruby | |
# 1. clone ruby/ruby | |
# 2. autoconf | |
# 3. ./configure | |
# 4. cd ext/openssl && ruby extconf.rb --with-openssl-dir=<openssl_root>; make; make install | |
# 5. cd ../../ | |
# 6. make | |
# 7. make install-nodoc | |
# You should be ready ti run this script!!!! |
defmodule Solution do | |
#Enter your code here. Read input from STDIN. Print output to STDOUT | |
def read do | |
case IO.read(:stdio, :line) do | |
:eof -> :ok | |
{:error, reason} -> IO.puts "Error: #{reason}" | |
data -> | |
IO.write(:stdio, "Hello, World. \n") | |
IO.write(:stdio, data) | |
read() |
import Config | |
# https://hexdocs.pm/plug_cowboy/Plug.Cowboy.html | |
# https://stackoverflow.com/questions/41885427/use-so-reuseport-with-phoenix | |
sol_socket = 1 | |
so_reuseport = 15 | |
so_reuseport_opts = | |
case :os.type() do | |
{:unix, :linux} -> {:raw, sol_socket, so_reuseport, <<1::32-native>>} |
[ | |
{ | |
"command": "projectManager.listGitProjects#sideBarGit", | |
"key": "cmd+o" | |
}, | |
{ | |
"command": "expand_region", | |
"key": "ctrl+=", | |
"when": "editorTextFocus" | |
}, |