Skip to content

Instantly share code, notes, and snippets.

View cfbastarz's full-sized avatar
🌎

Carlos Frederico Bastarz cfbastarz

🌎
View GitHub Profile
@kelixlabs
kelixlabs / fixplymouth
Last active March 15, 2022 20:30
SCRIPT TO FIX THE UBUNTU PLYMOUTH FOR PROPRIETARY NVIDIA AND ATI GRAPHICS DRIVERS
#!/bin/bash
# ----------------------------------
# Author: D0rkye
# Homepage: http://d0rkye.zsenialis.com/
# Most code probably by kyleabaker: http://kyleabaker.com/2010/07/11/how-to-fix-your-ubuntu-boot-screen/
# Script via http://www.webupd8.org/2010/10/script-to-fix-ubuntu-plymouth-for.html
# ----------------------------------
sudo apt install v86d hwinfo -y
sudo hwinfo --framebuffer
echo "---------------------------------------------------------------"

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:


🇧🇷 [pt-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS

@chriddyp
chriddyp / Pandas Widget - Time Series, Search, and Filtering.ipynb
Created January 22, 2015 22:30
A Collection of Plotly and IPython Widgets
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@kdabir
kdabir / homebrew_maintenance.md
Last active July 27, 2024 20:19
HomeBrew Maintenance (Mac OS X)

HomeBrew Maintenance

  • To list all the software/lib installed by brew $ brew list

  • to update an app $ brew upgrade appname

  • to see issues $ brew doctor

  • to update brew $ brew update

@ycopin
ycopin / taylorDiagram.py
Last active April 14, 2025 08:22
Taylor diagram for python/matplotlib [ 10.5281/zenodo.5548061 ]
#!/usr/bin/env python
# Copyright: This document has been placed in the public domain.
"""
Taylor diagram (Taylor, 2001) implementation.
Note: If you have found these software useful for your research, I would
appreciate an acknowledgment.
"""