Skip to content

Instantly share code, notes, and snippets.

View cipriantarta's full-sized avatar
🎯
Focusing

Ciprian Tarta cipriantarta

🎯
Focusing
View GitHub Profile
#!/usr/bin/env bash
silent=0
up=1
down=2
direction=
PATH="$HOME/.config/nvim"
gid='99ce623d080c4162a67d97f569bd7bd4'
if [ -z "$GH_TOKEN" ] ; then
require('plugins') -- the plugins
require('settings') -- plugins & general nvim settings
require('mappings') -- key mappings
{
"awards": [],
"basics": {
"email": "me@cipriantarta.ro",
"label": "Software Architect",
"location": {
"address": "",
"city": "Cluj Napoca",
"countryCode": "RO",
"postalCode": "",

Keybase proof

I hereby claim:

  • I am cipriantarta on github.
  • I am cipriantarta (https://keybase.io/cipriantarta) on keybase.
  • I have a public key ASB1xWqNStGJxZH4GCLVbFelnMNUna_AfRMjZDdMEVC4rwo

To claim this, I am signing this object:

@cipriantarta
cipriantarta / encryption.js
Created December 12, 2018 10:31
AES encryption + decryption
var aesjs = require('aes-js');
var exports = module.exports = {}
const blockSize = 16;
function pad(s) {
const len = blockSize - s.length % blockSize;
return s.padEnd(blockSize, String.fromCharCode(len));
}
//: Playground - noun: a place where people can play
import UIKit
typealias JSON = [String: Any]
protocol APIModelProtocol {
init?(_ data: JSON)
}
@cipriantarta
cipriantarta / .vimrc
Last active March 25, 2022 11:56
Vimrc
" let g:ale_disable_lsp = 1
"""""""""""""""""""""""""" PLUGINS BEGIN """""""""""""""""""""""""""""
call plug#begin('~/.vim/plugins')
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Plug 'dense-analysis/ale'
Plug 'preservim/nerdcommenter'
Plug 'preservim/nerdtree'
@cipriantarta
cipriantarta / tmux.dev.conf
Last active April 29, 2016 06:30
tmux dev conf
rename-window Dev
selectp -t 1 # select the first (0) pane
splitw -v -p 50 # split it into two halves
selectp -t 2 # select the new, second (1) pane
resize-pane -D 7
splitw -h -p 50 # split it into two halves
selectp -t 1 # go back to the first pane
send-keys "vim" C-m
@cipriantarta
cipriantarta / tmux.conf
Last active November 24, 2022 12:30
tmux config
# improve colors
set -g default-shell $SHELL
set -g default-terminal 'screen-256color'
set-option -sa terminal-overrides ',xterm-256color:RGB'
#set-option -ga terminal-overrides ',XXX:Tc'
# act like GNU screen
unbind C-b
set -g prefix C-a
@cipriantarta
cipriantarta / Homebrew.terminal
Last active April 22, 2018 06:15
Homebrew OS X terminal config
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BackgroundBlur</key>
<real>0.0</real>
<key>BackgroundColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECww