Skip to content

Instantly share code, notes, and snippets.

@OmerFarukOruc
OmerFarukOruc / opencode-kimi-setup.md
Last active April 12, 2026 02:19
OpenCode + Kimi For Coding (K2.5) Setup

OpenCode + Kimi For Coding (K2.5) Setup

1. Add credentials

opencode auth login
# Select "Kimi For Coding"
# Enter your API key (sk-kimi-...)
# Day 27: Boundaries - World Time Zones
# Shows current time in each timezone
library(mapgl)
library(sf)
library(dplyr)
library(lubridate)
# Get user's current timezone and time
user_tz <- Sys.timezone()
git clone https://github.com/stitionai/devika.git
conda create -n devika python=3.10
conda activate devika
which python
/usr/local/anaconda3/envs/devika/bin/python -m pip install -r requirements.txt
playwright install --with-deps
npm install
bun run dev
open new terminal
conda activate devika
@andrewchilds
andrewchilds / saveGPT.bookmarklet.js
Last active January 4, 2026 00:06
Download ChatGPT conversations as markdown files.
javascript:function parseChatGPTData(data) { const mapping = data.mapping; const conversationTitle = data.title; const createDate = new Date(data.create_time * 1000).toISOString().slice(0, 10); const messagesArray = Object.values(mapping) .filter(node => node.message) .map(node => { const message = node.message; const sender = message.author.role === 'user' ? 'You' : 'Assistant'; const content = message.content.parts.join(''); const createTime = message.create_time; return { sender: sender, content: content, createTime: createTime, }; }); messagesArray.sort((a, b) => a.createTime - b.createTime); return { date: createDate, title: conversationTitle, messages: messagesArray.map(({ sender, content }) => ({ sender, content })), }; } function download(filename, text) { const element = document.createElement('a'); element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); element.setAttribute('download', filename); element.style.display = 'none'; document.body.appendChild(element); e
@shanselman
shanselman / ohmyposhv3-v2.json
Last active March 17, 2026 20:26
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@ChristopherA
ChristopherA / macOS-Preferences-Defaults.sh
Last active April 12, 2026 09:32
macOS Preferences Defaults
#!/bin/sh
# macOS Preferences Defaults
# By Christopher Allen @ChristopherA https://github.com/christophera/
#
# Personal macOS preferences applied via `defaults write`. Designed for
# macOS Tahoe 26.x on Apple Silicon. Some settings may work on earlier
# versions but are only tested on Tahoe.
#
# Repository DID: did:repo:1bd512b281bdedc2c76d9ba63c8c84b750847355
# Signing key: SHA256:a61TkTtLFGEYOmdRMbpYGkZwXw2QUrGkAWp3dok8jcw
@ElToro1966
ElToro1966 / r_ubuntu_18_04.sh
Last active April 25, 2025 23:32
Install R and RStudio on Ubuntu 18.04 with essential libraries for data science. Based on pachamaltese/r_ubuntu_17_10.sh (for Ubuntu 17.10). Note: You need to make sure the default library location - /usr/local/lib/R/site-packages - is writable .
# Install R
sudo apt update
sudo apt install gdebi libxml2-dev libssl-dev libcurl4-openssl-dev libopenblas-dev r-base r-base-dev
# Install RStudio
cd ~/Downloads
wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.2.5001-amd64.deb
sudo gdebi rstudio-1.2.5001-amd64.deb
printf '\nexport QT_STYLE_OVERRIDE=gtk\n' | sudo tee -a ~/.profile
@inoperable
inoperable / defaults-export.zsh
Last active December 27, 2025 18:42
export defaults for all domains in macOS into separate .plist files for editing and importing, files are written into $HOME/defaults
#!/usr/bin/env zsh
function exportDefaults {
local outdir="$HOME/defaults"
local outdirApple="$outdir/apple"
local outdirUser="$outdir/user"
local outdirGlobal="$outdir/global"
local filesdone=0
local filecount=0
local filestotal=0
@mjnaderi
mjnaderi / install-arch.md
Last active February 23, 2026 05:28 — forked from mattiaslundberg/arch-linux-install
Installing Arch Linux with Full Disk Encryption (LVM on LUKS)

Installing Arch Linux with Full Disk Encryption

If you're aiming for a seamless Arch Linux installation in UEFI mode, follow along as this guide will walk you through the process step by step. We'll be using LUKS (Linux Unified Key Setup) and LVM (Logical Volume Manager) partitions on LUKS to achieve full disk encryption.

Note: I have updated this doc for UEFI mode. For those with BIOS/MBR systems, you can refer to the previous version, but keep in mind that it might be outdated and no longer accurate.

If you're only interested in installing Linux and not setting up dual boot with Windows, feel free to skip the Windows-related sections.

@stigok
stigok / install_opensuse.sh
Last active August 15, 2018 03:28
PrivateInternetAccess.com OpenVPN installation script for OpenSUSE 13.2
#! /bin/sh -
#
# Install OpenVPN connections for all available
# regions to NetworkManager
#
# Important:
# This is a modified version of the official Ubuntu script PrivateInternetAccess.com
# released at https://www.privateinternetaccess.com/installer/install_ubuntu.sh
# Automatic installation of python and openvpn has been removed, and needs to be
# installed manually before installation.