sudo pacman -R postgresql postgresql-libs
sudo rm -rfv /var/lib/postgres
#!/bin/sh | |
git clone https://github.com/openssl/openssl.git --branch OpenSSL_1_0_2-stable | |
cd openssl | |
./config --prefix=$HOME/.openssl-1.0 shared -fPIC | |
make depend && make && make install | |
mkdir -p $HOME/.openssl-1.0 | |
cd $HOME/.openssl-1.0 | |
ln -sf /usr/lib/openssl-1.0 lib | |
ln -sf /usr/include/openssl-1.0 include |
defmodule Salt.Debugger do | |
@moduledoc false | |
def debugger(code, _options, caller, device) do | |
quote do | |
# calculating the result | |
result = unquote(code) | |
module = unquote(caller.module) | |
{fun_name, arity} = unquote(caller.function) | |
line_number = unquote(caller.line) | |
file = unquote(caller.file) |
$ cd /usr/lib/firmware/rtl_bt | |
$ sudo ln -s rtl8761b_fw.bin rtl8761bu_fw.bin |
# IEx.configure colors: [enabled: true] | |
# IEx.configure colors: [ eval_result: [ :cyan, :bright ] ] | |
IO.puts IO.ANSI.red_background() <> IO.ANSI.white() <> " ❄❄❄ Good Luck with Elixir ❄❄❄ " <> IO.ANSI.reset | |
Application.put_env(:elixir, :ansi_enabled, true) | |
IEx.configure( | |
colors: [ | |
eval_result: [:green, :bright] , | |
eval_error: [[:red,:bright,"Bug Bug ..!!"]], | |
eval_info: [:yellow, :bright ], | |
], |
I hereby claim:
To claim this, I am signing this object:
defmodule ExecutionTime do | |
def time_of(function, args) do | |
{time, result} = :timer.tc(function, args) | |
IO.puts "Time: #{time}ms" | |
IO.puts "Result: #{result}" | |
end | |
end |
for _ <- 0..1_000_000 do | |
p_count = Process.list() |> Enum.count() | |
IO.puts "Creating Process: #{p_count}" | |
spawn(Process, :sleep, [:infinity]) | |
rescue | |
end |
<hr> | |
<h2> The Line Graph on Revenues & Years </h2> | |
<hr> | |
<div> | |
<canvas id="lineChart" width="100%" height="100%"></canvas> | |
</div> | |
<script type="text/javascript"> | |
window.chart_data = <%= raw(Jason.encode!(fetch_chart_data @revenues)) %> |