Skip to content

Instantly share code, notes, and snippets.

View lysandroc's full-sized avatar
⌨️
coding

Lysandro Carioca lysandroc

⌨️
coding
View GitHub Profile
@lysandroc
lysandroc / gist:afb0219ecfc12e0634a1ce7722ed3a6a
Last active September 19, 2021 17:18
script to fix patterns name in the onedrive sync app
//remove - or _
zmv '(**/)(*)' '$1${2//[^A-Za-z0-9.]}'
//substitute - and _ for blank space
zmv '(**/)(*)' '${1${2//[^A-Za-z0-9.]}//_/ }'
ensinando aba de network do browser
@lysandroc
lysandroc / docker-compose.yml
Created July 23, 2021 18:40 — forked from ricardopadua/docker-compose.yml
Architecture Distributed Environment
version: '3.4'
services:
cache-redis:
image: 'redis:6-alpine'
container_name: cache-redis
environment:
REDIS_HOST: ${REDIS_HOST}
REDIS_DEFAULT_USER: ${REDIS_DEFAULT_USER}
REDIS_DEFAULT_PASS: ${REDIS_DEFAULT_PASS}
ports:
@lysandroc
lysandroc / ubuntu-start.bat
Created February 16, 2021 12:48
script to run at shell:startup
bcdedit /set hypervisorlaunchtype off
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm ubuntu --type headless
@lysandroc
lysandroc / test
Created February 15, 2021 14:14
gist text template
test
@lysandroc
lysandroc / settings.json
Created February 11, 2021 13:04
Gruvbox Windows Terminal Settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bb}",
"copyOnSelect": false,
"copyFormatting": false,
"profiles": {
"defaults": {},
"list": [
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bb}",
@lysandroc
lysandroc / settings.json
Last active November 30, 2022 08:16
gruvbox scheme for windows terminal - gruvbox theme for windows terminal
// Define gruvbox colors
"schemes": [
{
"name" : "Gruvbox for windows terminal",
"cursorColor": "#FFFFFF",
"selectionBackground": "#FFFFFF",
"background" : "#1d2021",
"foreground" : "#ebdbb2",
@lysandroc
lysandroc / commands.zsh
Last active September 5, 2020 21:23
useful commands
- compare two files using vim(neovim)
nvim -O -d $(rg --files | fzf) $(rg --files | fzf)
docker container restart $(docker container ps | grep couchdb | awk '{print $1}')
@lysandroc
lysandroc / dockerfile.Dockerfile
Created June 7, 2019 22:40
dockerfile for react app
FROM node:8.11.1-alpine
# Provides cached layer for node_modules
ADD package.json /tmp/package.json
RUN cd /tmp && npm install
RUN mkdir -p /app && cp -a /tmp/node_modules /app/node_modules
# Define working directory
WORKDIR /app