Skip to content

Instantly share code, notes, and snippets.

View kristijanhusak's full-sized avatar

Kristijan Husak kristijanhusak

View GitHub Profile
@kristijanhusak
kristijanhusak / minimal_init.lua
Last active May 31, 2022 13:53
Orgmode minimal init.lua
vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
require('packer').startup {
{
'wbthomason/packer.nvim',
@kristijanhusak
kristijanhusak / 1. Toggle-kitty-and-neovim-colors.md
Last active March 6, 2024 18:15
Toggle between light and dark colorschemes for both neovim and kitty

Requirements:

  • Neovim v0.4+
  • Python 3.4+ and pynvim
  • Kitty
  • Zsh, but would probably work with any shell if configured properly
  • Your favorite dark and light colorschemes

Installation

  1. Add below python script to ~/.config/kitty/ folder. Make sure to make it executable (chmod +x ~/.config/kitty/colors)
  2. Set up your dark/light colorscheme, and where to store kitty colors configuration (line 4 to 9)
@kristijanhusak
kristijanhusak / run.js
Created January 6, 2016 14:01
Script used to start meteor app and kill it after 30 sec
#!/usr/bin/env node
var exec = require('child_process').exec;
var extend = require('util')._extend;
var path = require('path');
var baseDir = path.resolve(__dirname, '..');
var srcDir = path.resolve(baseDir, '.');
var appOptions = {
env: {
@kristijanhusak
kristijanhusak / .Xresources
Last active August 29, 2015 14:25
.Xresources-hybrid-material
! Hybrid Terminal Colours. Uses the palette from Tomorrow-Night:
! https://github.com/chriskempson/tomorrow-theme/blob/master/vim/colors/Tomorrow-Night.vim
! vim: ft=xdefaults
*background: #263238
*foreground: #C5C8C6
! black
*color0: #282A2E
*color8: #37474F
! red