Skip to content

Instantly share code, notes, and snippets.

View tarasn's full-sized avatar
🎯
Focusing

Taras Naumtsev tarasn

🎯
Focusing
View GitHub Profile
@tarasn
tarasn / Pine_Script_5_Mini_Reference.md
Created October 19, 2023 21:14 — forked from kaigouthro/Pine_Script_5_Mini_Reference.md
A minimal reference to pine script v5

Pine Mini-Reference for more information

Pine Script™ Operators

The following operators are available.

Operator Description
+ Adds two operands
@tarasn
tarasn / vim-cheatsheet.md
Created January 23, 2022 12:25 — forked from glnds/vim-cheatsheet.md
Vim Cheatsheet

Vim Cheatsheet

vim {filename}
General
:e {filename} edit a file
:q quit
:q! quit without writing
:wa write all changed files (save all changes), and keep working
@tarasn
tarasn / less-cheatsheet.md
Created January 23, 2022 12:25 — forked from glnds/less-cheatsheet.md
Less Cheatsheet

Less Cheatsheet

less {filename}
Navigation
SPACE forward one window
b backward one window
d forward half window
@tarasn
tarasn / git-all-commands.sh
Created October 8, 2019 20:33
99% of the Git commands you'll need at work, demonstrated in a single script (bitbucket.org)
#!/bin/bash
##########
# contents
##########
# contents
# notes
# script setup
# git config files
@tarasn
tarasn / flash-internet.cmd
Created April 5, 2019 19:02
windows dns flash cmd
ipconfig /release
ipconfig /all
ipconfig /flushdns
ipconfig /renew
netsh int ip set dns
netsh winsock reset
@tarasn
tarasn / NpocoSqlite.cs
Created August 2, 2017 21:47
NPoco with sqlite using mapping by convention
using System;
using System.Data.SQLite;
using NPoco;
using NPoco.FluentMappings;
namespace NpocoSqlite
{
/*
CREATE TABLE [TestMe](
[MySuperID] INTEGER PRIMARY KEY NOT NULL,
@tarasn
tarasn / ubuntu14.04-command-line-install-android-sdk
Created September 14, 2016 19:55 — forked from wenzhixin/ubuntu14.04-command-line-install-android-sdk
Ubuntu 14.04 command line install android sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@tarasn
tarasn / EventBroker.cs
Created March 21, 2016 17:48
Simple event broker that can be easily to be used in an IOC (using auto registration and handling more than one message by the same handler)
using System;
using System.Collections.Generic;
using Castle.MicroKernel.Registration;
using Castle.Windsor;
namespace ConsoleApplication6
{
public class Message
{
}
@tarasn
tarasn / RedisWithIndexExample.cs
Created September 17, 2015 16:30
A simple example to check Redis performance and index creation
using System;
using System.Diagnostics;
using System.Linq;
using StackExchange.Redis;
namespace ConsoleApplicationRedis
{
internal class Program
{
private static void Main(string[] args)
@tarasn
tarasn / TaskCancellation.cs
Last active September 6, 2015 20:46
[TPL] Task cancellation
using System;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
internal class Program
{
private static void Main(string[] args)
{