Skip to content

Instantly share code, notes, and snippets.

View LightVolk's full-sized avatar

Konstantin LightVolk

  • New-York
View GitHub Profile
@LightVolk
LightVolk / cloudSettings
Last active August 31, 2020 19:39
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-31T19:39:26.393Z","extensionVersion":"v3.4.3"}
@mraaroncruz
mraaroncruz / steps.md
Last active October 22, 2025 18:43
Get the Telegram channel ID

To get the channel id

  1. Create your bot with botfather
  2. Make you bot an admin of your channel

Simplest way (via @anhtuank7c)

Go to Telegram web and open a channel, get the ID from -[channel id] from hash in the path

https://web.telegram.org/k/#-9999999999999

@kzelda
kzelda / ReadWriteExcel.cs
Last active March 26, 2024 10:27 — forked from ram-sagar-mourya/ReadWriteExcel.cs
Read and Write Excel using open xml in c#
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Spreadsheet;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ReadWriteExcelUsingOpenXml.Shared
@Eonasdan
Eonasdan / Packages XML to C# paste
Created December 31, 2016 04:06
parsing package.config for nuget package explorer
/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)]
public partial class packages
{
private packagesPackage[] packageField;
@rjmccluskey
rjmccluskey / example-component.ts
Last active October 17, 2021 04:47
Angular 2 Input with TypeScript property (getter and setter)
import { Component, Input } from '@angular/core';
@Component({
selector: 'example',
template: `{{data}}` // getting `data` in the template will call the getter method!
})
export class ExampleCoponent {
private dataInternal: number;
@Input() set data(data: number) {
@leoGalani
leoGalani / Dockerfile
Created May 2, 2016 21:51
Android Docker File StackOverflow
FROM java:8-jdk
RUN dpkg --add-architecture i386
RUN apt-get update
#current debian kernel feezes java
RUN apt-get dist-upgrade -y
RUN apt-get install ruby-full -y
RUN apt-get install -y --no-install-recommends apt-utils build-essential git ruby-dev zlib1g-dev
RUN apt-get install -y --no-install-recommends libncurses5:i386 libc6:i386 libstdc++6:i386 zlib1g:i386 wget unzip
@AndreyAkinshin
AndreyAkinshin / DEV Labs 2015 - Учимся замерять время правильно.md
Last active June 28, 2022 19:09
DEV Labs 2015 - Учимся замерять время правильно

Введение

  • Главный вопрос: что и зачем вы измеряете?
  • Используйте библиотеки для бенчмаркинга: JMH, BenchmarkDotNet

Как правильно запускать бенчмарк

  • Release build
  • Без дебаггера
  • Выключите другие приложения
@anvaka
anvaka / 00.Intro.md
Last active October 12, 2025 18:21
npm rank

npm rank

This gist is updated daily via cron job and lists stats for npm packages:

  1. Top 1,000 most depended-upon packages
  2. Top 1,000 packages with largest number of dependencies
  3. Top 1,000 packages with highest PageRank score
@iamtekeste
iamtekeste / Download Google Drive files with WGET
Created July 8, 2015 11:00
Download Google Drive files with WGET
Download Google Drive files with WGET
Example Google Drive download link:
https://docs.google.com/open?id=[ID]
To download the file with WGET you need to use this link:
https://googledrive.com/host/[ID]
Example WGET command:
@SomTripathi
SomTripathi / progressbar.ps1
Created April 30, 2015 18:45
Progressbar in Powershell
#---------------------------------------------------------------------------------------------#
#--Script to copy files from one location to another with a cool Progressbar --#
# If you want to test it - Change the source path and target path with a relevant directory
# in your computer -
# $SOURCE_PATH
# $TARGET_PATH
#---------------------------------------------------------------------------------------------#
# Note : The script will copy only files from source to target, please use it carefully
# if the low disk space problem in target drive.
# Do not use C:\ drive or drive where Operating system in installed.