Skip to content

Instantly share code, notes, and snippets.

View CheerlessCloud's full-sized avatar
🤖

Gleb Azarov CheerlessCloud

🤖
View GitHub Profile
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active October 15, 2025 11:39
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@rishitells
rishitells / Jest_GitLab_CI.md
Last active October 8, 2025 15:13
Setting up Jest tests and coverage in GitLab CI

Configuring Jest Tests in GitLab CI

1. Add GitLab CI configuration file in the root

In the root of your project, add .gitlab-ci.yml with the configuration below.

image: node:latest

stages:
@klamouri
klamouri / README.md
Last active February 22, 2024 02:04
Iterm2 Auto Dark/Light mode

Most of it is taken from this gist. I just tweaked the script to check the right theme at startup in case the theme change occured when iTerm2 was closed.

Make sure the theme is the same as the themes you have installed (Preferences > Profiles > Colors > Color Presets...). I personally use Solarized Dark and Solarized Light

From someone on the linked gist:

First-time installation steps for me:

  1. Download the script from GitHub by right-clicking on Raw button and save as...
  2. copy the script to $HOME/Library/Application Support/iTerm2/Scripts/AutoLaunch
  3. create AutoLaunch folder if it does not exist
  4. go to iTerm2 > Scripts > AutoLaunch
@chez14
chez14 / proton.sh
Created November 1, 2020 10:50
Proton script to run non-Steam Apps on Linux. Supposedly you have to install Steam first (requires Steam account). Then put this to `/usr/bin/proton.sh` and add required file permissions.
#!/bin/bash
# Credits: https://pastebin.com/NJxfe8Ex
PROTON_VERSION="5.0"
PROTON_DIR=$HOME/.steam/steam/steamapps/common/Proton\ $PROTON_VERSION
RUNNING="$1"
if [ ! -f "$PROTON_DIR/proton" ] ; then
echo "Proton version $PROTON_VERSION not found!";
@ESWZY
ESWZY / compress_video.py
Last active July 21, 2025 05:05
An example Python code for compressing video file to target size.
# Simplified version and explanation at: https://stackoverflow.com/a/64439347/12866353
import os
import ffmpeg
def compress_video(video_full_path, size_upper_bound, two_pass=True, filename_suffix='cps_'):
"""
Compress video file to max-supported size.
:param video_full_path: the video you want to compress.
:param size_upper_bound: Max video size in KB.
@ruanbekker
ruanbekker / tree_style_tab_firefox.md
Created November 28, 2019 06:18
Hide Native Tabs with Tree Style Tabs for Firefox
@brasey
brasey / Configure systemd-resolved to use a specific DNS nameserver for a given domain.md
Created October 25, 2019 14:38
Configure systemd-resolved to use a specific DNS nameserver for a given domain

Configure systemd-resolved to use a specific DNS nameserver for a given domain

Use case

Given

  • I use a VPN to connect to my work network
  • I'm on a Linux computer that uses systemd-resolved
  • I have a work domain called example.com
  • example.com is hosted by both public and private DNS nameservers
@commana
commana / main.js.patch
Created June 20, 2018 15:34
arsnova.cards: Prometheus, MongoDB, Meteor
diff --git a/server/main.js b/server/main.js
index 4c6ddc6e..11b1c792 100644
--- a/server/main.js
+++ b/server/main.js
@@ -22,4 +22,15 @@ import "../imports/api/userdata.js";
import "../imports/api/webPushSubscriptions.js";
import "./leitner.js";
+// npm install prom-client
+const promClient = require("prom-client");
@wilddeer
wilddeer / READMEPLZ.md
Last active January 15, 2024 11:23
Чатра ищет разработчика

Чатра ищет разработчика

Привет!

Мы в Чатре ищем разработчика. Чатра — это современный чат для сайтов. У нас классный продукт, сделанный с любовью и вниманием к деталям, небольшая дружная команда и больше десяти тысяч клиентов в Северной Америке и Европе.

Чат!

Не хватает одного — прекрасного разработчика или разработчицы, желающей присоединиться к нашей команде.

@harshavardhana
harshavardhana / README.md
Last active July 13, 2021 15:40
REX-Ray with Minio

Getting Started

The following command will install the latest version of REX-Ray to /usr/bin/rexray on Linux systems:

$ sudo apt install s3fs
$ curl -sSL https://dl.bintray.com/emccode/rexray/install | sh

Depending on the Linux distribution REX-Ray will be registered as either a SystemD or SystemV service.

Configure

REX-Ray requires a configuration file for storing details used to communicate with storage providers. This can include authentication credentials and driver specific configuration options. After REX-Ray has been installed, copy and paste the contents below to a new file on the host at /etc/rexray/config.yml to configure s3fs storage driver.