Skip to content

Instantly share code, notes, and snippets.

@gbaptista
gbaptista / gist:60636a0cc123064b96672bda0137fa00
Created January 14, 2024 00:51 — forked from gelembungsahabat/gist:1e12557faf55ae8977a55560bc68eecc
Solve Extremely Low FPS on God Of War (Linux Steam)

Solve Extremely Low FPS on God Of War (Linux Steam)

  1. add or change this line in /etc/default/grub file to:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet split_lock_detect=off"
  2. then run sudo update-grub and reboot.
@gbaptista
gbaptista / 01-lbpe-score-heatmap-table.md
Last active December 31, 2023 21:51
LBPT Score Heatmap Table and CSV
Model Back-and-Forth Conversations Tools (Functions) Polyglotism MMLU ENEM Streaming Latency Pricing
Cohere Command 67.25% 0.00% 13.33% 51.31% 30.56% 95.19% 35.72% 22.50%
Cohere Command Light 61.25% 0.00% 13.33% 38.86% 11.39% 91.84% 99.91% 63.55%
Google Gemini Pro 39.50% 65.00% 100.00% 63.98% 58.33% 11.53% 50.31% 25.30%
Maritaca MariTalk 80.25% 0.00% 66.67% 60.45% 56.39% 8.34% 21.48% 57.45%
Mistral Medium 85.25% 0.00% 83.33% 71.99% 66.67% 87.54% 24.82% 15.10%
Mistral Small 71.75% 0.00% 70.00% 68.86% 60.56% 79.33% 52.88% 33.08%
Mistral Tiny 80.50%
#!/bin/bash
# Check Terminal Type
echo "Terminal Type: $TERM"
# Check for 256 Color Support
echo -e "\nChecking for 256 Color Support:"
tput colors
# Display ANSI Color Test
@gbaptista
gbaptista / content.js
Last active May 19, 2021 16:36
Ensure Captive Portal for Wi-Fi in Hotels
const DEBUG = true;
const urls = [
'https://login.globalsuite.net',
'http://neverssl.com',
'http://neverssl.com',
'https://login.globalsuite.net',
'http://neverssl.com',
'http://neverssl.com',
'https://login.globalsuite.net',
(local vega (require "vega"))
(λ port []
(let [default 3000 cli (. arg 1)]
(if cli cli default)))
(λ telnet-handler [name response meta]
(meta.log:info (.. "Log from" (meta.log.color:yellow " Telnet Handler")))
(response:write (.. "\nHello " (tostring name) "!\n\n")))
sudo pacman-mirrors --fasttrack && sudo pacman -Syyu
@gbaptista
gbaptista / detector.c
Created November 17, 2019 01:14
How to send the detected button code using the https://github.com/z3t0/Arduino-IRremote library.
#include <IRremote.h>
int infraRedReceiverPin = 8;
IRrecv infraRedReceiver(infraRedReceiverPin);
decode_results infraRedReceiverResults;
void setup() {
Serial.begin(9600);
infraRedReceiver.enableIRIn();
LIGHTBLUE="\[\033[1;34m\]"
LIGHTRED="\[\033[1;31m\]"
WHITE="\[\033[1;37m\]"
ORANGE="\[\033[38;5;172m\]"
NO_COLOR="\[\033[0m\]"
function k8sNamespace() {
printf $(kubectl config view -o=jsonpath='{.contexts[0].context.namespace}')
}
from Orange.widgets import gui
from Orange.widgets.widget import OWWidget, Input
from Orange.widgets.settings import Setting
from AnyQt import QtWidgets
from AnyQt.QtGui import QColor, QPen, QPalette, QFont
from AnyQt.QtCore import Qt
/** @OnlyCurrentDoc */
function Escala() {
var spreadsheet = SpreadsheetApp.getActive();
var start_row = spreadsheet.getActiveRange().getRow();
var final_row = spreadsheet.getActiveRange().getLastRow() + 1;
var conditionalFormatRules = spreadsheet.getActiveSheet().getConditionalFormatRules();