Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Evsyukov Denis juev

🏠
Working from home
View GitHub Profile
@juev
juev / convert.sh
Created Jul 15, 2021
convert.sh -- bash script for convert postgresdb dump file to sqlite database
View convert.sh
#!/bin/bash
FILE=$1
SQLITE=$2
if [ -z $1 ]; then
echo "convert.sh -- convert postgresdb dump to sqlite database."
echo ""
echo "First argument is dump file"
echo "Second argument is sqlite filename (optional, default value is \`sqlite.db')."
@juev
juev / triggers.org
Created Jan 20, 2020 — forked from svetlyak40wt/triggers.org
Спусковые крючки по Дорофееву в формате для Org Mode
View triggers.org

Спусковые крючки для очистки мозга

Как пользоваться картой

  1. Карта помогает выгрузить из головы все задачи
  2. Пройдитесь взглядом по всем разделам карты
  3. Если в голове “сидит” задача, то она обязательно всплывёт при взгляде на соответствующий узел
  4. Выписывайте задачи, пока их количество не достигнет 50
  5. Почувствуйте, как гора упала с ваших плеч :)

При составлении карты использовались материалы Максима Дорофеева, mnogosdelal.ru

Учёба

View vscode.settings.for.golang
"go.useLanguageServer": true,
"go.languageServerExperimentalFeatures": {
"format": true,
"autoComplete": true,
"diagnostics": true,
"goToDefinition": true,
"hover": true,
"signatureHelp": true,
"goToTypeDefinition": true,
"documentSymbols": true,
@juev
juev / jenkins-decrypt.groovy
Created Sep 10, 2019 — forked from tuxfight3r/jenkins-decrypt.groovy
Decrypting Jenkins Password
View jenkins-decrypt.groovy
#To Decrypt Jenkins Password from credentials.xml
#<username>jenkins</username>
#<passphrase>your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J</passphrase>
#go to the jenkins url
http://jenkins-host/script
#In the console paste the script
hashed_pw='your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J'
@juev
juev / tmux.md
Created Sep 5, 2019 — forked from andreyvit/tmux.md
tmux cheatsheet
View tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
@juev
juev / budget.ledger
Created Mar 12, 2019 — forked from simonmichael/budget.ledger
seeking minimal ledger budget examples
View budget.ledger
; whenever there's a food expense, deduct the same amount from the budget
= /^expenses:food$/
(budget:food) -1
1/1 opening balances
assets:checking 1000
equity:opening balances
1/2 budget allocation ; could also do this with an automated posting on income txns
View envelope-budgeting.journal
; An example of YNAB-ish envelope budgetting with hledger/ledger
; cf https://github.com/simonmichael/hledger/issues/315
; Using accounts like the following:
;
; assets
; business
; bank
; wf
; bchecking
@juev
juev / match.c
Created Jan 14, 2019 — forked from ianmackinnon/match.c
C Regex multiple matches and groups example
View match.c
# gcc -Wall -o match match.c && ./match
#
#include <stdio.h>
#include <string.h>
#include <regex.h>
View zshrc
##############
# BASIC SETUP
##############
typeset -U PATH
autoload colors; colors;
#############
## PRIVATE ##
#############
@juev
juev / .vimrc
Created Dec 8, 2018 — forked from millermedeiros/.vimrc
My VIM settings (.vimrc)
View .vimrc
" =============================================================================
" Miller Medeiros .vimrc file
" -----------------------------------------------------------------------------
" heavily inspired by: @factorylabs, @scrooloose, @nvie, @gf3, @bit-theory.
" =============================================================================
" -----------------------------------------------------------------------------
" BEHAVIOR
" -----------------------------------------------------------------------------