Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Lambda Lambda Lambda!

Giovanni Bassi giggio

💭
Lambda Lambda Lambda!
View GitHub Profile
@giggio
giggio / overflow.cs
Created Nov 23, 2020
Checking various overflow conditions in .NET
View overflow.cs
using System;
using static System.Console;
var m = int.MaxValue;
// possible solutions:
try
{
WriteLine("n is an IntPtr");
var n = IntPtr.MaxValue;
checked
{
@giggio
giggio / docker-compose.yml
Last active Oct 23, 2020
Mirror Docker hub with Docker-compose
View docker-compose.yml
version: '3.7'
services:
dockerregistrymirror:
container_name: docker-registry-mirror
image: registry:2
ports:
- "443:443"
volumes:
- ./data/docker/var/lib/registry:/var/lib/registry
- ./data/certs:/certs
@giggio
giggio / deno.md
Last active Oct 29, 2020
Links da palestra sobre Deno
View deno.md
@giggio
giggio / .wslconfig
Created Apr 30, 2020
My WSL config file.
View .wslconfig
[wsl2]
memory=4GB
swap=4GB
localhostForwarding=true
@giggio
giggio / links.md
Last active Aug 26, 2020
Links palestra "Usando um ambiente Linux completo no Windows com WSL e VSCode"
View links.md
@giggio
giggio / activity-box
Last active Nov 27, 2020
Latest activity
View activity-box
🗣 Commented on #887 in MicrosoftDocs/Virtualization-Documen...
🗣 Commented on #289 in giggio/node-chromedriver
🗣 Commented on #289 in giggio/node-chromedriver
🗣 Commented on #4556 in microsoft/WSL
💪 Opened PR #660 in dotnet-foundation/website
View @giovannibassi - 2 days ago | ❤ 48 | 🔁 0
Ontem e hoje foi dia de migrar de uma VPN L2TP/IPSec pra
IPSec IKEv2. Algo parou a VPN e foi hora de migrar. Apanhe…
https://t.co/c6UY9jgcXA
@giggio
giggio / settings.json5
Last active Nov 5, 2020
Giovanni Bassi's Windows terminal config
View settings.json5
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://raw.githubusercontent.com/microsoft/terminal/main/doc/cascadia/profiles.schema.json",
"defaultProfile": "{2606165a-a7a0-4ac4-8e8c-36dd487fc9cb}",
"copyOnSelect": false,
"launchMode": "maximized",
"showTerminalTitleInTitlebar": false,
"tabWidthMode": "equal",
"profiles": {
"defaults": {
@giggio
giggio / feedly.opml
Created Feb 15, 2019
My blogs opml file
View feedly.opml
<?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
Created Oct 2, 2018
Copy a commit from any repo to any other repo
View copycommit.sh
git --no-pager --git-dir=<original_dir>/.git format-patch -k -1 --no-color --stdout <commit_sha> | git am -3 -k --ignore-whitespace
You can’t perform that action at this time.