Skip to content

Instantly share code, notes, and snippets.

View falcucci's full-sized avatar
🏔️

Alexsander Falcucci falcucci

🏔️
View GitHub Profile
@falcucci
falcucci / git-commands.mkd
Created November 23, 2017 19:52 — forked from Kerry350/git-commands.mkd
Common Git commands

A little lookup for commands I use frequently

  • Commit all edited files and add a message

git commit -a -m "My commit"

  • Add all new files

git add .

@falcucci
falcucci / Create-branch-with-Github-API.md
Created January 31, 2018 00:42 — forked from Potherca/README.md
Create a branch on Github without access to a local git repo using http://hurl.it/

Ever had the need to create a branch in a repo on Github without wanting (or being able) to access a local repo?

With the aid of [the Github API][1] and [hurl.it][2] this is a piece of cake!

Just follow these steps:

  1. Open [http://hurl.it/][2]
  2. Find the revision you want to branch from. Either on Github itself or by doing a GET request from Hurl: https://api.github.com/repos/<AUTHOR>/<REPO>/git/refs/heads
  3. Copy the revision hash
  4. Do a POST request from Hurl to https://api.github.com/repos///git/refs with the following as the POST body :
@falcucci
falcucci / Create-branch-with-Github-API.md
Created January 31, 2018 00:42 — forked from Potherca/README.md
Create a branch on Github without access to a local git repo using http://hurl.it/

Ever had the need to create a branch in a repo on Github without wanting (or being able) to access a local repo?

With the aid of [the Github API][1] and [hurl.it][2] this is a piece of cake!

Just follow these steps:

  1. Open [http://hurl.it/][2]
  2. Find the revision you want to branch from. Either on Github itself or by doing a GET request from Hurl: https://api.github.com/repos/<AUTHOR>/<REPO>/git/refs/heads
  3. Copy the revision hash
  4. Do a POST request from Hurl to https://api.github.com/repos///git/refs with the following as the POST body :
@falcucci
falcucci / readme.md
Created May 21, 2018 03:16 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser

@falcucci
falcucci / transparent.vim
Created April 18, 2023 07:26 — forked from fuadnafiz98/transparent.vim
vim transparent background
" for transparent background
function! AdaptColorscheme()
highlight clear CursorLine
highlight Normal ctermbg=none
highlight LineNr ctermbg=none
highlight Folded ctermbg=none
highlight NonText ctermbg=none
highlight SpecialKey ctermbg=none
highlight VertSplit ctermbg=none
highlight SignColumn ctermbg=none