Skip to content

Instantly share code, notes, and snippets.

View danilogco's full-sized avatar

Danilo Carolino danilogco

  • QFlash
  • Rio Claro-SP, Brasil
  • 19:54 (UTC -03:00)
View GitHub Profile
git config -e --global
[alias]
cleanup = "!git fetch -f && git branch | grep -v "dev" | grep -v "master" | xargs --no-run-if-empty git branch -D && git gc"

Conventinal Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

docker container prune -f
docker volume prune -f
docker image prune -a -f
docker network prune -f
docker system prune -f
gsettings set org.gnome.shell.extensions.dash-to-dock isolate-workspaces true
@danilogco
danilogco / change_heroku_redis_version.sh
Created May 27, 2021 02:25
Changing Heroku Redis version
heroku addons:create heroku-redis:hobby-dev --version 6 -a app_name
heroku redis:promote redis-curved-54192 --app app_name
@danilogco
danilogco / gist:36f402419b77fe8a8a47207fae4bb909
Created October 14, 2021 17:16
bootable pendrive Ubuntu 21.10
sudo dd if=ubuntu-21.10-desktop-amd64.iso of=/dev/sdc bs=4M; sync
@danilogco
danilogco / gist:f33ff93d78ae99ee70e9a5bedd87afc9
Created October 15, 2021 18:03
retrieve ubuntu ppa list
grep -r --include '*.list' '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d/
@danilogco
danilogco / gist:ef575fcac471ba078d6fb638a04fa459
Created October 27, 2021 17:43
rotate postgres password - heroku
#!/usr/bin/env ruby
heroku pg:credentials:rotate DATABASE --name analyst -a example-app
@danilogco
danilogco / license-badges.md
Created January 2, 2022 19:44 — forked from qvil/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français
@danilogco
danilogco / readme.md
Created February 24, 2022 20:20 — forked from ChriRas/readme.md
Set up default audio device on Ubuntu 20.04 LTS

Problem

I have a notebook connected to a port replicator. I want to use the build-in speakers and microfone and not the external ones. If I boot my notebook in my port replicator Ubuntu changes the devices to external.

Solution

  1. Find your internal speaker
pactl list short sinks