Skip to content

Instantly share code, notes, and snippets.

View kotano's full-sized avatar
🤿
Procrastinating

Arslan Hudaygulyyev kotano

🤿
Procrastinating
View GitHub Profile
@nikasepiskveradze
nikasepiskveradze / react-query-lite.js
Last active April 28, 2025 17:34
Lightweight implementation of React Query
import React from "react";
const context = React.createContext();
export function QueryClientProvider({ children, client }) {
React.useEffect(() => {
const onFocus = () => {
client.queries.forEach((query) => {
query.subscribers.forEach((subscriber) => {
subscriber.fetch();

Кунг-фу на клавиатуре. Искусство сочетать клавиши


Сочетания клавиш для тех, кто хочет войти в IT и не только.


Содержание

!j::Send ^{Left}
!l::Send ^{Right}
!i::Send {Up}
!k::Send {Down}
!u::Send {Left}
!o::Send {Right}
!m::Send {End}
::Send {Home}
[
// default usefull:
// CTRL+J => bottom panel
// CTRL+S => can be used to pin a tab
// CTRL+MAJ+; => open breadcrumbs
// CTRL+D => add next occurence of current selection to selection
// ALT+C => navigate to next error
// SHIFT+F5 => stop debugging
// CTRL+ALT+(up/down) => multi select
// CTRL+R => switch workspaces
@lvl99
lvl99 / date-iso-string-without-timezone.js
Created November 19, 2019 10:15
Date ISO string without timezone information
const controlDate = new Date();
controlDate.toString();
// -> "Thu Jun 20 2019 11:16:28 GMT+0200 (Central European Summer Time)"
controlDate.toDateString();
// -> "Thu Jun 20 2019"
controlDate.toUTCString();
// -> "Thu, 20 Jun 2019 09:15:28 GMT"
@wtw24
wtw24 / docker_rus.md
Last active July 2, 2025 16:05
Шпаргалка с командами Docker

Шпаргалка с командами Docker

1552317264965 1552317537397 1552317711879

1552318467562 1552318531067 1552318577900 1552318614839

@neretin-trike
neretin-trike / pug.md
Last active May 31, 2025 17:48
Туториал по HTML препроцессору Pug (Jade)
@rkennesson
rkennesson / vmware.txt
Last active May 23, 2025 07:10
VMWare - hide the fact that you are running in a VM
#https://www.google.com/search?q=smbios.reflecthost&oq=smbios.r&aqs=chrome.0.0j69i57j0l4.2850j0j7&sourceid=chrome&ie=UTF-8 | smbios.reflecthost - Google Search
#http://www.bitcon.be/how-to-install-an-hp-branded-windows-os-as-a-virtual-server/ | How to install an HP branded Windows OS as a virtual server | BITCON - IT consultants
#https://communities.vmware.com/thread/162241?tstart=0 | This system is not supported platform |VMware Communities
#https://superuser.com/questions/199906/how-to-edit-bios-information-for-a-virtual-machine-in-vmware | How to edit BIOS information for a virtual machine in VMWare? - Super User
#http://www.insanelymac.com/forum/topic/292170-how-to-spoof-real-mac-in-vmware/ | How to spoof real Mac in VMware - Multi-booting and Virtualisation - InsanelyMac Forum
Method 1: edit VMX file for the specific VM
#add this line
SMBIOS.reflectHost = TRUE
@zmts
zmts / tokens.md
Last active July 2, 2025 06:44
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?