Skip to content

Instantly share code, notes, and snippets.

View jriverac's full-sized avatar
🏠
Working from home

José Rivera jriverac

🏠
Working from home
View GitHub Profile
format = """
$os\
[](fg:#000000 bg:#333333)\
$shell\
[](fg:#000000 bg:#ffffff)\
$username\
[](bg:#aaaaFF fg:#ffffff)\
$directory\
[](fg:#aaaaff bg:#ffffaa)\
$git_branch\
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
@jriverac
jriverac / Portainer Templates.json
Created October 22, 2022 18:23
Just a bunch of Portainer templates
{
"version": "2",
"templates": [
{
"type": 1,
"title": "Registry",
"description": "Docker image registry",
"categories": ["docker"],
"platform": "linux",
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/registry.png",
@jriverac
jriverac / ssh-agent.sh
Created October 3, 2022 18:13
A few times in the past I have faced Sourcetree telling me that it can’t authenticate to Github. This is a very annoying and inconvenient issue raised by the Authentication Client not providing credentials. I still can perform most of my git tasks by memory but it annoys me since I rather have an UI for Git work. This line of code fixes the issue:
ssh-add <key_file>
graph TD
D(AMPIL)-->A
E(PCIS)-->A
subgraph Tillamook
A(SignUp Page)-->B[Tag Origin]
C(SignUp Anywhere)-->B
end
subgraph SignUp Processor
{
// Utilizar IntelliSense para aprender acerca de los posibles atributos.
// Mantenga el puntero para ver las descripciones de los existentes atributos
// Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"debugServer": 4711,
"configurations": [
{
"name": "Debug Local File",
[
{ "keys": ["ctrl+h"], "command": "dash_doc"},
{
"command": "reveal_in_side_bar",
"keys": [
"ctrl+shift+r"
]
},
{
"command": "dash_doc",
@jriverac
jriverac / Preferences.sublime-settings.json
Last active October 11, 2018 20:54
Sublime Text 3 User Preferences #sublime #sublime_text
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 3,
"caret_style": "phase",
"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme",
"draw_indent_guides": true,
"fade_fold_buttons": false,
@jriverac
jriverac / SearchInProject.sublime-settings.json
Last active October 11, 2018 20:55
Search In Project User Preferences #sublime #sublime_text #pt
{
"search_in_project_ThePlatinumSearcher_mandatory_options": "--column --nogroup --nocolor",
"search_in_project_ThePlatinumSearcher_path_to_executable": "pt",
"search_in_project_engine": "the_platinum_searcher"
}
@jriverac
jriverac / Hide all files.sh
Last active October 10, 2018 17:25
After executing this, restart he finder by alt-right-clicking on it.
defaults write com.apple.finder AppleShowAllFiles NO