Skip to content

Instantly share code, notes, and snippets.

View davidrios's full-sized avatar

David Rios davidrios

  • São Paulo, Brazil
View GitHub Profile
--- igraph-0.7.1/src/f2c/arithchk.c
+++ igraph-0.7.1-patched/src/f2c/arithchk.c
@@ -110,8 +110,19 @@
return 0;
}
-char *emptyfmt = ""; /* avoid possible warning message with printf("") */
+/* avoid possible warning message with printf("") */
+const char *const emptyfmt = "";

Introduction

This page is intended to help you set up a more functional sway desktop environment. Features that will be covered:

  • Manual and automatic screen locking using swayidle and swaylock
  • Working notifications with mako.
  • Nice application launcher and exit menu using fzf and kitty
  • Taking of screenshots, optionally selecting a region, using grim and slurp
  • Volume control with multimedia keys
  • Laptop screen brightness adjustment using brightnessctl and bound to keyboard keys
@davidrios
davidrios / setup-firefox-flash-linux.sh
Last active December 4, 2024 18:53
Download and configure an old version of Firefox and Flash using a different profile, so you can access old Flash content isolated from your main profile.
#!/bin/bash
set -e
FIREFOX_PATH="$HOME/.local/opt/firefox84"
FIREFOX_PROFILE="$HOME/.mozilla/firefox/flash-profile"
[ ! -f "$FIREFOX_PATH/firefox/firefox-bin" ] && (
echo "Downloading Firefox 84"
mkdir -p "$FIREFOX_PATH"
curl -L 'https://ftp.mozilla.org/pub/firefox/releases/84.0.2/linux-x86_64/en-US/firefox-84.0.2.tar.bz2' | tar xj -C "$FIREFOX_PATH"
)
3
00:00:34,000 --> 00:00:37,000
E aí, pessoal, bem-vindos de volta.
4
00:00:37,000 --> 00:00:42,390
O que você acabou de assistir foi uma simulação em tempo real de um motor de combustão interna
5
00:00:42,390 --> 00:00:44,000
diff --git a/.eslintrc.json b/.eslintrc.json
index d171a236..614cf829 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -12,7 +12,8 @@
"chrome": true,
"crash": true,
"getErrorDump": true,
- "BigInt": true
+ "BigInt": true,
#!/bin/env python3
"""
Default env vars:
- `CONFIG_FILE`: `/etc/gpu-fancontrol.json`
- `LOG_FILE`: None, defaults to stdout
- `LOG_LEVEL`: `INFO`
Example config:
#!/bin/bash
type=$1
case "$type" in
temp)
nvidia-smi --query-gpu temperature.gpu --format=csv,noheader,nounits
;;
core-clock)
nvidia-smi --query-gpu clocks.current.graphics --format=csv,noheader,nounits
;;