Skip to content

Instantly share code, notes, and snippets.

View danilogco's full-sized avatar

Danilo Carolino danilogco

  • QFlash
  • Rio Claro-SP, Brasil
  • 20:43 (UTC -03:00)
View GitHub Profile

The current kernel/drivers of Fedora 24 do not support the Wifi chip used on my Mac Book Pro. Proprietary Broadcom drivers are packaged and available in the rpmfusion repo.

Verify that your card is a Broadcom using: lspci -vnn -d 14e4:

Sample output:

02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)

Install

Install the rpmfusion repo, note only "nonfree" is required, as the Broadcom Driver is proprietry: http://rpmfusion.org/

Keybase proof

I hereby claim:

  • I am danilogcarolino on github.
  • I am danilogcarolino (https://keybase.io/danilogcarolino) on keybase.
  • I have a public key ASD3BySQHj3vKeFzwA5QpgAh73HMlDXtAYL6_m_EYYXFSQo

To claim this, I am signing this object:

@danilogco
danilogco / install.sh
Created April 6, 2017 23:26 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@danilogco
danilogco / list_negative_balances.rb
Created August 9, 2017 22:38 — forked from adam-stripe/list_negative_balances.rb
List Stripe accounts with a negative balance
# Load the Stripe library and set your secret key
require 'stripe'
Stripe.api_key = ENV['SECRET_KEY']
# List connected accounts
accounts = Stripe::Account.list(limit: 100)
# Paginate through the list of accounts
accounts.auto_paging_each do |acct|
# Retrieve the balance for this account
@danilogco
danilogco / gist:682f21dd85ed9e3205e66be0a70559bb
Created August 21, 2018 16:48 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@danilogco
danilogco / install-comodo-ssl-cert-for-nginx.rst
Created January 7, 2019 20:17 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@danilogco
danilogco / clean.sh
Created November 20, 2020 03:23 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
@danilogco
danilogco / fix_docker_startup.sh
Last active April 21, 2021 18:22
Fix docker startup - Ubuntu 20.10
#!/bin/sh
# Disable docker service autoload
sudo systemctl disable docker.service docker.socket
# Aliases to start or shutdown docker service
echo "alias docker_start='systemctl start docker.service'" | sudo tee -a ~/.bash_profile
echo "alias docker_stop='systemctl stop docker.service docker.socket'" | sudo tee -a ~/.bash_profile
source ~/.bash_profile
@danilogco
danilogco / github_desktop_ubuntu.sh
Last active October 6, 2023 05:46 — forked from berkorbay/github_desktop_ubuntu.md
To install Github Desktop for Ubuntu
wget https://github.com/shiftkey/desktop/releases/download/release-2.7.2-linux1/GitHubDesktop-linux-2.7.2-linux1.deb
sudo gdebi GitHubDesktop-linux-2.7.2-linux1.deb
wget -qO - https://packagecloud.io/shiftkey/desktop/gpgkey | sudo tee /etc/apt/trusted.gpg.d/shiftkey-desktop.asc > /dev/null
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/shiftkey/desktop/any/ any main" > /etc/apt/sources.list.d/packagecloud-shiftky-desktop.list'
sudo apt update
sudo apt install github-desktop
@danilogco
danilogco / gist:1adbcdaffa4400672436cabd83fa16fb
Last active April 24, 2021 19:47 — forked from mislav/gist:938183
Faraday SSL example
connection = Faraday::Connection.new('http://example.com') do |builder|
builder.request :url_encoded # for POST/PUT params
builder.adapter :net_http
end
# same as above, short form:
connection = Faraday.new 'http://example.com'
# GET
connection.get '/posts'