Skip to content

Instantly share code, notes, and snippets.

View danilogco's full-sized avatar

Danilo Carolino danilogco

  • QFlash
  • Rio Claro-SP, Brasil
  • 21:11 (UTC -03:00)
View GitHub Profile
@danilogco
danilogco / .pylintrc
Created July 27, 2022 16:25
Pylint base configs
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-allow-list=
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code. (This is an alternative name to extension-pkg-allow-list
var jwtSecret = 'xxxxxxxxxxxxxxxxx'
// Set headers for JWT
var header = {
'typ': 'JWT',
'alg': 'HS256'
};
// Prepare timestamp in seconds
var currentTimestamp = Math.floor(Date.now() / 1000)
@danilogco
danilogco / fix_themes.sh
Created July 12, 2022 15:09
Fix flatpak themes
mkdir ~/.themes
cd /usr/share/themes
cp -R * ~/.themes
sudo flatpak override --filesystem=$HOME/.themes
~/.themes > sudo flatpak override --env=GTK_THEME=Adwaita-dark
@danilogco
danilogco / startup.desktop
Created May 17, 2022 15:14
Running a clean startup script on Linux
[Desktop Entry]
Name=Startup
GenericName=Startup
Comment=Startup script
Exec='/home/d/.config/autostart/startup.sh'
Terminal=false
Type=Application
X-GNOME-Autostart-enabled=true
@danilogco
danilogco / main.py
Created May 2, 2022 22:51 — forked from philippegirard/main.py
fastAPI sentry middleware
import sentry_sdk
from fastapi import FastAPI
sentry_sdk.init(
dsn="your_dns",
)
app = FastAPI()
@danilogco
danilogco / system-update
Last active April 5, 2022 14:41
Full system update system command - Manjaro/Arch Linux
sudo sh -c 'pamac update --aur --devel'
@danilogco
danilogco / nvidia_fan.sh
Last active May 17, 2022 15:12
Increase Nvidia fan speed for Linux
#!/bin/bash
# Paths to the utilities we will need
SMI='/usr/bin/nvidia-smi'
SET='/usr/bin/nvidia-settings'
# Determine major driver version
VER=`awk '/NVIDIA/ {print $8}' /proc/driver/nvidia/version | cut -d . -f 1`
# Drivers from 285.x.y on allow persistence mode setting
@danilogco
danilogco / export_specs.sh
Created March 10, 2022 17:20
How to export PC specs using Linux
sudo lshw -html > server_specs.html
@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
@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