Skip to content

Instantly share code, notes, and snippets.

View nicolas-oliveira's full-sized avatar
🌎
Everyone has something to share

Nicolas Oliveira nicolas-oliveira

🌎
Everyone has something to share
  • Work in Zenvia
  • Live in Brazil
View GitHub Profile

Installing the NVIDIA driver, CUDA and cuDNN on Linux (Ubuntu 20.04)

This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software

on an Ubuntu Linux system, in particular Ubuntu 20.04.

@nicolas-oliveira
nicolas-oliveira / hdmi_tweaks.sh
Created March 5, 2024 16:02
script to manipulate font size and icons size with two monitors with different size but 1080p
#!/bin/bash
# Absolute path to xrandr
XRANDR="/usr/bin/xrandr"
second_monitor_commands() {
notify-send "Segundo monitor identificado!" "Configurações aplicadas automaticamente"
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 40
gsettings set org.gnome.desktop.interface text-scaling-factor 0.85
}
@nicolas-oliveira
nicolas-oliveira / fix_jetbrains_icons_in_ubuntu.py
Last active January 2, 2024 15:04
Script that fix the icons in ubuntu / gnome like destops to follow the theme installed in distro.
import os
import time
# Script that iterates a specific folder
# (usually the folder containing the '.desktop' files)
# Changes the Jetbrains file to hidden in Ubuntu or Gnome like desktop
# and Creates a copy file with the default linux theme icon
HOME = os.environ["HOME"]
DIR_PATH = f"{HOME}/.local/share/applications/"
#!/bin/bash
###########################################
#
# Script Shell simples para limpar/remover todos os containers/imagens
loading_spinner() {
duration=1 # Count to 3 seconds
interval=0.1 # Sleep for 0.1 seconds each iteration
start_time=$(date +%s) # Get current timestamp in seconds
@nicolas-oliveira
nicolas-oliveira / BigSur_dark.qss
Created December 1, 2023 23:35
Big Sur Dark Theme for Albert application
/*
* author: Nicolas Oliveira <https://github.com/nicolas-oliveira>
*
* Check http://doc.qt.io/qt-5/stylesheet-syntax.html especially the subtopics:
* The Style Sheet Syntax (http://doc.qt.io/qt-5/stylesheet-syntax.html)
* Qt Style Sheets Reference (http://doc.qt.io/qt-5/stylesheet-reference.html)
*/
* {
border: none;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nicolas-oliveira
nicolas-oliveira / .bashrc
Last active August 23, 2022 15:22
Automatização no WSL que executa o daemon do docker toda vez que inicializa a primeira vez
# Verifica se o docker esta ativo caso contrario ele executa
echo "Verifying if docker daemon is running..."
docker_active=$(service docker status | grep failed)
if [ -z "$docker_active" ]
then
echo "Docker is active now"
else
echo "Docker is not running, starting the process"
sudo service docker start
_,, ,dW
,iSMP JIl;
SPT1Y' JWS:'
sIl:l1 fWIl?
dIi:Il; fW1"
dIli:l:I; fWI:
.dIli:I:S:S . fWI:
,SWSSIIIiISIIS w,_ .sMW ,MWIl;
_.,sWWW*"'*" , SWW' MWWMm mu,,._ .iSYISb, ,MM*SI!:
@nicolas-oliveira
nicolas-oliveira / eloquentjs.md
Last active January 25, 2021 13:25
Eloquent Javascript