Skip to content

Instantly share code, notes, and snippets.

View federicojd's full-sized avatar
🏠
Working at home

Federico J. Digiorgio federicojd

🏠
Working at home
View GitHub Profile
@federicojd
federicojd / terminal-prompt-git-branch-zsh.md
Created February 21, 2025 01:41 — forked from reinvanoyen/terminal-prompt-git-branch-zsh.md
Add Git Branch Name to Terminal Prompt (MacOS zsh)

Add Git Branch Name to Terminal Prompt (zsh)

Updated for MacOS with zsh

  • Catalina
  • Big Sur
  • Monterey
  • Ventura
  • Sonoma

screenshot

@federicojd
federicojd / DocumentPicker.swift
Created December 29, 2022 16:21 — forked from scriptpapi/DocumentPicker.swift
Document Picker for SwiftUI
import Foundation
import SwiftUI
import UIKit
struct DocumentPicker: UIViewControllerRepresentable {
@Binding var filePath: URL?
func makeCoordinator() -> DocumentPicker.Coordinator {
return DocumentPicker.Coordinator(parent1: self)
@federicojd
federicojd / cert.sh
Created July 22, 2022 15:15 — forked from BretFisher/cert.sh
docker compose with traefik and certs
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
DOMAIN_NAME=$1
openssl req \
-newkey rsa:2048 \
-x509 \
-nodes \
@federicojd
federicojd / html5.html
Created April 4, 2020 15:57
HTML5 Blank Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link href="style.css" rel="stylesheet" />
</head>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
@federicojd
federicojd / firstNotRepeated.md
Created January 9, 2020 00:07
Write a code that given an input string, returns the first non - repeating character
// Write a code that given an input string, returns the first non - repeating character

//Example input: "godisgood"
//Output: "i"
// Write a code that given an input string, returns the first non - repeating character

//Example input: "godisgood"
//Output: "i"
@federicojd
federicojd / repository.md
Created November 25, 2019 14:47
repository

…or create a new repository on the command line echo "# rb-website" >> README.md git init git add README.md git commit -m "first commit" git remote add origin [email protected]:federicojd/rb-website.git git push -u origin master …or push an existing repository from the command line git remote add origin [email protected]:federicojd/rb-website.git git push -u origin master

@federicojd
federicojd / docker-help.md
Created January 15, 2019 21:17 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@federicojd
federicojd / multiple_ssh_setting.md
Created July 21, 2018 17:22 — forked from rb-machine-user/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@federicojd
federicojd / multiple_ssh_setting.md
Created July 21, 2018 17:22 — forked from rb-machine-user/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@federicojd
federicojd / Gemfile
Created July 5, 2017 19:34 — forked from Joseph-N/Gemfile
File upload using dropzone.js, paperclip in rails. Tutorial link http://josephndungu.com/tutorials/ajax-file-upload-with-dropezonejs-and-paperclip-rails
source 'https://rubygems.org'
# default gems here
#---------------------------
# add paperclip and bootstrap
gem "paperclip", "~> 4.1"
gem 'bootstrap-sass', '~> 3.1.1'