Skip to content

Instantly share code, notes, and snippets.

@alanleyva
alanleyva / deploy.yml
Created January 4, 2021 23:45
Github Action para correr build y publicar React.js en cualquier servidor
name: Build and Deploy
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 6, 2025 22:23
"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
@ganbatte8
ganbatte8 / xcb_demo.c
Last active January 6, 2025 22:23
Simple game loop in Linux/XCB, writing pixels with CPU, enforcing a framerate, reading joystick, keyboard and mouse input.
// Linking: -lxcb -lxcb-image
//#include <xcb/xcb.h>
#include <xcb/xcb_image.h>
#include <malloc.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/joystick.h>
//#include <time.h>
#include <sys/stat.h>
@umitkayikcioglu
umitkayikcioglu / Automatic Day and Night Mode Switching on Windows.md
Last active January 6, 2025 22:23
Automatic Day and Night Mode Switching on Windows

Automatic Day and Night Mode Switching on Windows

This guide provides a step-by-step solution to create and manage tasks in Windows 11 for automatic switching between Light and Dark modes using Task Scheduler and PowerShell commands directly.


Steps to Implement Automatic Switching

1. Schedule the Tasks

@dvrvsimi
dvrvsimi / cheatsheet.md
Created December 4, 2024 19:32
where i come when i forget some sol/anchor commands

My Solana and Anchor Cheat Sheet


Installation and Setup

Command Description
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)" Installs the Solana CLI, see official documentation.
solana-install update Updates the Solana CLI to the latest version.
anchor install Installs the Anchor framework via npm.
@shov
shov / Dockerfile
Created May 21, 2018 14:46
Docker file for PHP 7.2 fpm with mcrypt support
FROM php:7.2-fpm
# Replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# make sure apt is up to date
RUN apt-get update --fix-missing
RUN apt-get install -y curl
RUN apt-get install -y build-essential libssl-dev zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev
@Pagliacii
Pagliacii / neovim-as-merge-tool.md
Last active January 6, 2025 22:17
Using Neovim as a merge tool

git

Using diffview.nvim

# ~/.gitconfig
[merge]
  tool = diffview
[mergetool]
  prompt = false
@plembo
plembo / nmbrnetkvm.md
Last active January 6, 2025 22:14
NetworkManager bridged network for KVM guests

Setting up a bridged network for KVM guests

This will work with either networkd or NetworkManager as a resolver. In fact, this is the only way to do bridged KVM (libvirtd) networking with NetworkManager.

If you're using NetworkManager (on a desktop or laptop, for example) on your KVM host, follow these instructions to set up a bridge interface.

Once you have the host bridge set up, proceed as follows:

  1. Create a bridge network device inside KVM. Edit and save the below text as file host-bridge.xml:
@prestia
prestia / installing_MTGO_on_macOS_with_Retina_support.md
Last active January 6, 2025 22:10
Instructions on how to install Magic the Gathering Online on macOS with Retina support.

Installing MTGO on macOS using Wine, and making it look pretty!

The following instructions are heavily inspired by @pauleve. I modified his instructions and then added details about how to make a shortcut and support Retina/HiDPI displays.

Installing MTGO (and Wine and Homebrew and Xquartz and ...)

  1. Install Homebrew by opening Terminal and executing the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"