Skip to content

Instantly share code, notes, and snippets.

View sidneyspe's full-sized avatar
🎯
Focusing

Sidney Pimentel sidneyspe

🎯
Focusing
  • Campina Grande - PB, Brasil
  • 03:02 (UTC -03:00)
  • LinkedIn in/sidneyspe
View GitHub Profile
@sidneyspe
sidneyspe / remove-old-snaps.sh
Created May 17, 2021 11:35
Script for remove old versions of installed snaps
#!/bin/bash
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
snap remove "$snapname" --revision="$revision"
done

Docker Stop All

docker ps -a -q | xargs -n 1 -P 8 -I {} docker stop {}

Docker Remove All

docker ps -a -q | xargs -n 1 -P 8 -I {} docker rm {}

Docker System Prune

docker system prune -a && docker system prune -a --volumes

@sidneyspe
sidneyspe / omni.conf
Created February 10, 2021 17:06
Omni theme for kitty terminal
foreground #e1e1e6
background #191622
selection_foreground #44475a
selection_background #f8f8f2
url_color #ffb86c
# black
color0 #000000
color8 #4d4d4d
@sidneyspe
sidneyspe / kitty.config
Last active May 12, 2022 13:06
Kitty configuration
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family Fira Code
# bold_font auto
@sidneyspe
sidneyspe / git-config-credential.sh
Created November 20, 2020 22:36
Salvar as credenciais no git
git config credential.helper store
@sidneyspe
sidneyspe / .zshrc
Last active September 29, 2023 18:44
.zshrc for Linux
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/home/sidneyspe/.oh-my-zsh"
@sidneyspe
sidneyspe / .hyper.js
Last active July 16, 2023 14:39
Hyper JS config for Linux
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@sidneyspe
sidneyspe / visualizador_de_fotos_antigo_windows.reg
Created September 23, 2020 17:59
Visualizador de fotos antigo do windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations]
".tif"="PhotoViewer.FileAssoc.Tiff"
".tiff"="PhotoViewer.FileAssoc.Tiff"
".bmp"="PhotoViewer.FileAssoc.Tiff"
".gif"="PhotoViewer.FileAssoc.Tiff"
".jpeg"="PhotoViewer.FileAssoc.Tiff"
".jpg"="PhotoViewer.FileAssoc.Tiff"
".png"="PhotoViewer.FileAssoc.Tiff"
@sidneyspe
sidneyspe / open_cmder_here.reg
Last active September 23, 2020 18:00
Open Cmder here
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@="Open Cmder Here"
"Icon"="\"%CMDER_ROOT%\\icons\\cmder.ico\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder\command]
@="\"%CMDER_ROOT%\\Cmder.exe\" /START \"%v\""
@sidneyspe
sidneyspe / cmder_dracula_theme_custom.xml
Last active May 12, 2022 13:17
Cmder Dracula Theme Custom
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2021-10-04 11:30:41" build="210912">
<value name="Language" type="string" data="en"/>
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{git bash}"/>
<value name="StartFarFolders" type="hex" data="00"/>