Skip to content

Instantly share code, notes, and snippets.

View pereslavtsev's full-sized avatar
:atom:

Vitaly Pereslavtsev pereslavtsev

:atom:
View GitHub Profile
@fabiolimace
fabiolimace / _fix-wifi-intel-z83-mini-pc.sh
Last active October 9, 2025 07:43
Fix Wifi of Intel Z83 mini PC on Ubuntu 20.04
#!/bin/bash
#
# Fix Wifi of Intel Z83 mini PC on Ubuntu 20.04
#
# Download these files in the same folder:
# - brcmfmac43455-sdio.txt
# - brcmfmac43455-sdio.clm_blob.base64
#
# Source:
# https://github.com/Linwood-F/MusicalPi/wiki/Intel-Z83-mini-PC-setup-(still-MusicalPi)
@tumainimosha
tumainimosha / page-info.ts
Last active November 22, 2024 12:37
NestJS Graphql Cursor Based pagination
import { ObjectType, Field } from "@nestjs/graphql";
@ObjectType()
export class PageInfo {
@Field({ nullable: true })
startCursor: string;
@Field({ nullable: true })
endCursor: string;
@statico
statico / circleci.yml
Created January 21, 2019 21:25
Node.js 10 + PostgreSQL CircleCI config
version: 2
workflows:
version: 2
build:
jobs:
- test
jobs:
test:
@juampynr
juampynr / CHANGELOG.md
Created March 27, 2018 09:35
Sample CHANGELOG

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased] - yyyy-mm-dd

Here we write upgrading notes for brands. It's a team effort to make them as

@virolea
virolea / upload.js
Last active December 15, 2025 09:28
Tracking file upload progress using axios
upload(files) {
const config = {
onUploadProgress: function(progressEvent) {
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total)
console.log(percentCompleted)
}
}
let data = new FormData()
data.append('file', files[0])
@tomysmile
tomysmile / mac-setup-redis.md
Last active July 10, 2025 21:05
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@popravich
popravich / PostgreSQL_index_naming.rst
Last active December 4, 2025 06:27
PostgreSQL index naming convention to remember

The standard names for indexes in PostgreSQL are:

{tablename}_{columnname(s)}_{suffix}

where the suffix is one of the following:

  • pkey for a Primary Key constraint;
  • key for a Unique constraint;
  • excl for an Exclusion constraint;
  • idx for any other kind of index;