Skip to content

Instantly share code, notes, and snippets.

View real420og's full-sized avatar
🦍

OG real420og

🦍
View GitHub Profile
@real420og
real420og / contemplative-llms.txt
Created January 10, 2025 10:36 — forked from Maharshi-Pandya/contemplative-llms.txt
"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
@real420og
real420og / vimdiff.md
Created May 5, 2022 13:25 — forked from mattratleph/vimdiff.md
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

@real420og
real420og / post.js
Created March 28, 2022 10:15 — forked from roramigator/post.js
this guy wrote a dynamic tutorial on how to write a compiler all in the same single javascript file
'use strict';
/**
* TTTTTTTTTTTTTTTTTTTTTTTHHHHHHHHH HHHHHHHHHEEEEEEEEEEEEEEEEEEEEEE
* T:::::::::::::::::::::TH:::::::H H:::::::HE::::::::::::::::::::E
* T:::::::::::::::::::::TH:::::::H H:::::::HE::::::::::::::::::::E
* T:::::TT:::::::TT:::::THH::::::H H::::::HHEE::::::EEEEEEEEE::::E
* TTTTTT T:::::T TTTTTT H:::::H H:::::H E:::::E EEEEEE
* T:::::T H:::::H H:::::H E:::::E
* T:::::T H::::::HHHHH::::::H E::::::EEEEEEEEEE
@real420og
real420og / tmux-cheatsheet.markdown
Created December 15, 2021 15:47 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@real420og
real420og / tokens.md
Created September 20, 2021 11:31 — forked from zmts/tokens.md
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
# посчитать количество пробелов в файле
cat orderNumbers.txt | tr -cd " " | wc -m
# заменить , на пробелы в файле
sed -i -e 's/,/ /g' orderNumbers.txt
#удалить файлы и директории старше 60 минут
find ./ -mmin +60 -delete
{
"transition": {
"id": "711"
},
"update": {
"worklog": [
{
"add": {
"timeSpent": "2m"
}
git config --global gpg.program $(which gpg)
@real420og
real420og / upsource Dockerfile
Last active November 29, 2020 20:53
dockerfile upsource with php composer
FROM jetbrains/upsource:2020.1.1815
USER root
RUN apt-get update -y && apt-get install -y php
RUN apt-get install -y vim
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php -r "if (hash_file('sha384', 'composer-setup.php') === 'c31c1e292ad7be5f49291169c0ac8f683499edddcfd4e42232982d0fd193004208a58ff6f353fde0012d35fdd72bc394') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
php composer-setup.php --install-dir=bin --filename=composer && \
php -r "unlink('composer-setup.php');"
@real420og
real420og / Vagrantfile
Last active September 29, 2020 14:11
Vagrant Centos8 vbguest shared folder
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
echo "Installing packages..."
sudo dnf update -y && dnf upgrade -y
sudo dnf install -y epel-release
sudo dnf install -y git vim wget nc go tmux bcc-tools bison flex python3 cmake cmake3 gcc-c++ llvm-toolset clang clang-devel llvm llvm-devel llvm-static ncurses-devel iperf3
sudo dnf install -y http://repo.iovisor.org/yum/extra/mageia/cauldron/x86_64/netperf-2.7.0-1.mga6.x86_64.rpm