Skip to content

Instantly share code, notes, and snippets.

View vik407's full-sized avatar
👋
Hello there

Víctor Hugo Hernández vik407

👋
Hello there
View GitHub Profile
@joeizang
joeizang / README.md
Last active February 3, 2024 01:37 — forked from leosuncin/README.md
Install Powerline on Ubuntu 20.04
  1. Install powerline sudo apt install powerline source /usr/share/powerline/bindings/bash/powerline.sh

  2. Download and install fonts git clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.sh

  3. Add this lines to .bashrc file if bash is what you use. You could add to other files like .zshrc etc. I use bash so there. This ensures that this switch is automatic when you start bash

.bashrc > if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then

@sarahbohr
sarahbohr / git-deploy-to-sftp-guide.md
Last active January 31, 2023 16:01 — forked from jasenmichael/git-deploy-to-sftp-guide.md
use git to deploy via sftp

use git to deploy via sftp

this method can be used to push your project to a service like GoDaddy, HostGator, or BlueHost that is running git.

  • create a remote repository on your server

    • ssh into the server

    • cd into the directory

@wizioo
wizioo / gitignore_per_git_branch.md
Last active October 10, 2025 18:54
HowTo have specific .gitignore for each git branch

How to have specific .gitignore for each git branch

Objective

My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.

Solution

My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion. I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.