Skip to content

Instantly share code, notes, and snippets.

View NonLogicalDev's full-sized avatar

Oleg Utkin NonLogicalDev

View GitHub Profile
" Author: Oleg Utkin
" Github: nonlogicaldev
" Close/open all folds zm/zr
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
" Initialising Plugins:
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Plugin Definitions: {{{
call plug#begin('~/.vim/plugged')
"===============================================================================
@NonLogicalDev
NonLogicalDev / VimSuperAutoAwesome
Last active August 29, 2015 14:24
VimSuperAutoAwesome
#!/bin/bash
################################################--++
# INSTALL: curl -L https://goo.gl/L7y6vD | bash
################################################--++
################################################
# IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORT
# ----------------------------------------------
# This script will nuke your vim directory, but
# It will have it backed up to .vim.bak
#!/usr/bin/env ruby
require 'mustache'
require 'diffy'
require 'colorize'
require 'pry'
require 'optparse'
STUDENT_NAME = "Oleg Utkin"
STUDENT_LOGIN = "cs11whw"
@NonLogicalDev
NonLogicalDev / !MakeGitGreatAgain.md
Last active October 12, 2016 23:39
Make Git Great Again

Here is my Git Setup that makes working with git a lot more efficient and less annoying.

Share Short Link

Keybase proof

I hereby claim:

  • I am nonlogicaldev on github.
  • I am nonlogical (https://keybase.io/nonlogical) on keybase.
  • I have a public key whose fingerprint is 4ACB E537 1D32 DDDD F449 C0F3 000A 8514 DEEA 3992

To claim this, I am signing this object:

// Correct Indentation
if(
!inputdata.containskey("id")
&& !(
inputdata.containskey("action_id")
|| inputdata.containskey("active_alert_id")
|| inputdata.containskey("action_type")
|| inputdata.containskey("data")
)
@NonLogicalDev
NonLogicalDev / @LanguageNotes.md
Last active December 6, 2017 23:15
Notes For Languages I Use:

Notes For Languages I Use:

package internal
import (
"context"
"sync"
"sync/atomic"
"time"
)
type CtxWG struct {
@NonLogicalDev
NonLogicalDev / git-snap.sh
Last active February 22, 2023 23:21
A very handy git helper utility to copy a snapshot of a WORKTREE from a given Commit (SHA) into a given DIR.
#!/bin/bash
PROG="$(basename $0)"
_help() {
if [[ -n $1 ]]; then
echo "ERROR: $1"
echo
fi
echo "INFO:"
echo " A utility for snapshotting a tree from a given commit."
version: "2"
services:
influxdb:
image: "influxdb"
restart: always
mem_limit: 750m
volumes:
- ./data/influxdb:/var/lib/influxdb
ports:
- 8086:8086