[asari@asari nvim]$ sed -e "s/p3hp_placeholder/$roco/g" mock.lua
sed: -e expressão #1, caractere 21: opção desconhecida para o comando `s' (s///?)
[asari@asari nvim]$
[asari@asari nvim]$
[asari@asari nvim]$
[asari@asari nvim]$ sed -e "s@p3hp_placeholder@$roco@g" mock.lua
require("user.remap")
require("tools")
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
vim.opt.laststatus = 2 | |
vim.opt.statusline = sl_values | |
-- local sl_values | |
-- statusline functions | |
local function StatuslineMode() | |
local mode = vim.fn.mode() | |
if mode == 'n' then |
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
#!/usr/bin/bash | |
# cut 30 rows from the height at the bottom of the video | |
ffmpeg -i ./input.data -vf crop=iw:ih-30:0:10 -c:a copy ./output.mp4 |
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 gcr.io/datamechanics/spark:3.0.2-hadoop-3.2.0-java-8-scala-2.12-python-3.8-dm13 | |
ARG R_VERSION="4.0.4" | |
ARG LIBARROW_BINARY="true" | |
ARG RSPM_CHECKPOINT=2696074 | |
ARG CRAN="https://packagemanager.rstudio.com/all/__linux__/focal/${RSPM_CHECKPOINT}" | |
USER root |
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
import sys | |
from threading import Thread | |
import time | |
#def only_a_second_chance(): | |
def second_chance(page_requests, mem_size, page_faults, m, thread_name): | |
#mem_size = int(sys.argv[1]) # N, physical memory | |
mem_size = mem_size |
tags: nodejs, express
Temos algumas alternativas para rodar páginas web escritas dentro do ambiente Termux. Uma delas é utilizando o nodejs, que é o escopo desse tutorial.
- Instale nodejs caso ainda não tenha feito isso
; pkg install nodejs
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
#Vectorized code for monte carlo dart simulation | |
throws = 100 | |
landed = 0 #landed in circle | |
#throws=100 | |
x = runif(n=throws, min=-1, max=1) | |
y = runif(n=throws, min=-1, max=1) | |
soma_quadrados <- (x^2) + (y^2) |
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
/* | |
* John Conway's Game of Life. | |
* | |
* This is written for POSIX, using Curses. Resizing of the terminal is not | |
* supported. | |
* | |
* By convention in this program, x is the horizontal coordinate and y is | |
* vertical. There correspond to the width and height respectively. | |
* The current generation number is illustrated when show_generation is set. | |
* |
Setting up keyboard to br-abnt2:
[asari@asari ~]$ setxkbmap -print -verbose 10
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules: evdev