This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# | |
# usage: python3 docker_descendants.py <image_id> ... | |
import sys | |
from subprocess import check_output | |
def main(images): | |
image_ids = set(images) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""tun.py | |
*CAP_NET_ADMIN capability is required to create TUN interfaces.* | |
Based on: https://github.com/povilasb/iptun/blob/master/iptun/tun.py | |
""" | |
import logging as LOGGER | |
import os | |
import struct | |
import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# vim: softtabstop=4 shiftwidth=4 expandtab | |
# Copyright (c) 2015-2019 Jari Turkia ([email protected]) | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Last modified 2017-11-30 | |
" Dorai Sitaram | |
" By default, Neovim warns you only of unsaved file buffers | |
" before you exit, not of unclosed terminal buffers, which will | |
" be summarily killed. Unintentionally killing a terminal buffer | |
" can be frustrating, not only because of killed processes (which | |
" could be restarted) but also for the lost scroll history. This | |
" plugin prevents that loss. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/functions/vcs.zsh b/functions/vcs.zsh | |
index 04a07e5..6b8d7fc 100755 | |
--- a/functions/vcs.zsh | |
+++ b/functions/vcs.zsh | |
@@ -7,6 +7,9 @@ | |
################################################################ | |
set_default POWERLEVEL9K_VCS_SHOW_SUBMODULE_DIRTY false | |
+function +vi-git-replacement() { | |
+ hook_com[misc]+=" $(git_super_status)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from __future__ import print_function | |
import re | |
import sys | |
import json | |
import collections | |
import os | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/autoload/airline/themes/solarized.vim b/autoload/airline/themes/solarized.vim | |
index b88e1a4..76447a9 100644 | |
--- a/autoload/airline/themes/solarized.vim | |
+++ b/autoload/airline/themes/solarized.vim | |
@@ -194,6 +194,21 @@ function! airline#themes#solarized#refresh() | |
let g:airline#themes#solarized#palette.replace_modified.airline_warning = | |
\ g:airline#themes#solarized#palette.normal.airline_warning | |
+ let g:airline#themes#solarized#palette.terminal = airline#themes#generate_color_map( | |
+ \ [s:R1[0].g, s:R1[1].g, s:R1[0].t, s:R1[1].t, s:R1[2]], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
"""Edit a file in the host nvim instance.""" | |
from __future__ import print_function | |
import os | |
import sys | |
from neovim import attach | |
args = sys.argv[1:] | |
if not args: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lakshman.vim b/lakshman.vim | |
index 49199bf..c0e1d99 100755 | |
--- a/lakshman.vim | |
+++ b/lakshman.vim | |
@@ -254,17 +254,17 @@ endfunction | |
" functions | |
-nmap gGG <Esc>:call PanosTags("../tags_f")<CR> |
NewerOlder