Skip to content

Instantly share code, notes, and snippets.

View giggio's full-sized avatar
💭
Nada a perder.

Giovanni Bassi giggio

💭
Nada a perder.
View GitHub Profile
RT @ramalhoorg: Será que todo mundo debatendo os prós e contra
de fazer faculdade tem noção de quanta graduação merda existe
no Brasil? Tiv…
@giggio
giggio / settings.json5
Last active July 11, 2025 16:48
Giovanni Bassi's Windows terminal config
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://raw.githubusercontent.com/microsoft/terminal/main/doc/cascadia/profiles.schema.json",
// "$schema": "https://raw.githubusercontent.com/microsoft/terminal/main/doc/cascadia/profiles.schema.json", // canary
// "$schema": "https://aka.ms/terminal-profiles-schema-preview", // preview
// "$schema": "https://aka.ms/terminal-profiles-schema", // stable
"actions":
[
{
"command":
@giggio
giggio / feedly.opml
Created February 15, 2019 11:21
My blogs opml file
<?xml version="2.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Giovanni subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="Tiras" title="Tiras">
<outline type="rss" text="Um Sábado Qualquer" title="Um Sábado Qualquer" xmlUrl="http://www.umsabadoqualquer.com/feed/" htmlUrl="https://www.umsabadoqualquer.com"/>
<outline type="rss" text="Dilbert Daily Strip" title="Dilbert Daily Strip" xmlUrl="http://feeds.dilbert.com/DilbertDailyStrip" htmlUrl="http://dilbert.com"/>
@giggio
giggio / copycommit.sh
Last active May 6, 2021 15:06
Copy a commit from any repo to any other repo
# copy a single commit
git --no-pager --git-dir=<original_dir>/.git format-patch -k -1 --no-color --stdout <commit_sha> | git am -3 -k --ignore-whitespace
# copy a whole repo (branch main, change accordingly):
GIT_DIR=<original_dir>/.git # change to correct dir
for ID in `git --no-pager --git-dir=$GIT_DIR rev-list main | tac`; do
git --no-pager --git-dir=$GIT_DIR format-patch -k -1 --no-color --stdout $ID | git am -3 -k --ignore-whitespace
done
@giggio
giggio / installvim.ps1
Last active August 26, 2019 19:09
A way to install vim on a windows container
# run with iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/giggio/8c74f54b5f12cd5e957d19e866d8ec41/raw/52e7a12376cdfa5e23a29972a220685a8f64c9c7/installvim.ps1'))
Invoke-WebRequest http://ftp.vim.org/pub/vim/pc/vim81w32.zip -outfile vim.zip
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("$(pwd)\vim.zip", 'c:\windows\')
$vimFolder = "C:\windows\vim"
$vim8Folder = "$vimFolder\vim81"
mv $vim8Folder\vim.exe c:\windows
mv $vim8Folder\xxd.exe c:\windows
mv $vim8Folder\tee.exe c:\windows
rm -Recurse -Force $vimFolder
Verifying my Blockstack ID is secured with the address 1FKYDRHr9gZG3fTWCryNFh97s2Tdm6KwV8 https://explorer.blockstack.org/address/1FKYDRHr9gZG3fTWCryNFh97s2Tdm6KwV8
@giggio
giggio / UpdateNpmWhenUsingNvmForWindows.ps1
Created December 7, 2017 15:28
If you are using Nvm in Windows you need to reinstall your global npm packages when you change node versions, this helps you do it.
npm i -g $( ls $env:programdata\nvm\v8.9.1\node_modules | % { $_.Name } | ? { ! $_.StartsWith('@') -and $_ -ne 'npm' } )
@giggio
giggio / keybase.md
Created September 1, 2017 00:26
keybase.md

Keybase proof

I hereby claim:

  • I am giggio on github.
  • I am giggio (https://keybase.io/giggio) on keybase.
  • I have a public key whose fingerprint is A865 8915 939A B7E9 A74D E1F4 AE20 68D3 0CAD E67D

To claim this, I am signing this object:

@giggio
giggio / podcasts.md
Last active February 25, 2022 02:43
Podcasts
@giggio
giggio / solving_python_load_problem_in_vim_in_windows.md
Last active January 8, 2017 05:56
Solving python load problem in Vim in Windows

This is according to Bart on StackOverflow. I have tested it on Vim 8.0.118 and Python 2.7.11.

The error I was getting was:

Sorry, this command is disabled, the Python's site module could not be loaded.

If I wanted to check for python, with :echo has('python'), the answer was always 1.