Skip to content

Instantly share code, notes, and snippets.

View timchenkomo's full-sized avatar

Timchenko Mikhail timchenkomo

  • ASCON
  • Kolomna, Moscow Oblast, Russia
View GitHub Profile
@timchenkomo
timchenkomo / .gitignore
Created November 14, 2020 10:49 — forked from salcode/.gitignore
.gitignore file for a general web project - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20181206
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/10017553/raw/.gitignore
# to download this file
#
@timchenkomo
timchenkomo / fix-git-line-endings
Created November 5, 2020 03:32 — forked from ajdruff/fix-git-line-endings
Forces all line endings to LF in your git repo.
#####################
#
# Use this with or without the .gitattributes snippet with this Gist
# create a fixle.sh file, paste this in and run it.
# Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF)
# This Gist normalizes handling by forcing everything to use Unix style.
#####################
# Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF
@timchenkomo
timchenkomo / OracleConnect.md
Created January 17, 2020 14:47 — forked from rdnvndr/OracleConnect.md
Oracle database connection

Oracle database connection

┌──────────────┬────────────────────────────────────────────────┐
│  clienthost  │                                                │
├──────────────┘                                                │
│   $ sqlplus username/password@ORCL                            │
│                                │                              │
│                                ├ Naming method                │
│   ┌────────────────────────────┴───────────────────┐          │
│   │ FILE: $ORACLE_HOME/network/admin/sqlnet.ora    │          │ 
@timchenkomo
timchenkomo / pg_show_grants.sql
Created March 28, 2019 09:29 — forked from winebarrel/pg_show_grants.sql
show grants for PostgreSQL
select
pg_user.usename,
t1.nspname,
t1.relname,
relacl.privilege_type,
relacl.is_grantable
from (
select
pg_namespace.nspname,
pg_class.relname,
@timchenkomo
timchenkomo / Program.cs
Created August 30, 2018 10:13 — forked from DanielSWolf/Program.cs
Console progress bar. Code is under the MIT License: http://opensource.org/licenses/MIT
using System;
using System.Threading;
static class Program {
static void Main() {
Console.Write("Performing some task... ");
using (var progress = new ProgressBar()) {
for (int i = 0; i <= 100; i++) {
progress.Report((double) i / 100);