Skip to content

Instantly share code, notes, and snippets.

View exsesx's full-sized avatar
🔥
This is fine.

Oleh Vanin exsesx

🔥
This is fine.
View GitHub Profile
@nishantwrp
nishantwrp / lvim-cursor-fix.md
Created February 18, 2023 20:24
Fixing cursor change in lunar vim

Problem

Entering lunarvim changes the default cursor type of terminal.

Solution:

Add the following lines to your config.lua

lvim.autocommands = {
  {
 "VimLeave",
@bkrmendy
bkrmendy / eyedropper.d.ts
Last active June 5, 2025 08:16
eyedropper.d.ts
interface ColorSelectionOptions {
signal?: AbortSignal
}
interface ColorSelectionResult {
sRGBHex: string
}
interface EyeDropper {
open: (options?: ColorSelectionOptions) => Promise<ColorSelectionResult>
@Riebart
Riebart / code_flows.md
Last active May 7, 2024 18:16
Thoughts on git branch workflows and microservice code organization

Comparing branching and workflow strategies

Summary of existing

There's several existing strategies for deploying and managing development work and release. They each have their own opinions, but roughly cover a few major situations:

  • Developing a new feature
  • Which branches should be, at all times, deployable, tested code
  • Under what conditions a code review or approval is required to merge code into a new branch
  • How many deployment environments (e.g. production only, or staging and production) you intend to have available, and to whom
@LukeMathWalker
LukeMathWalker / audit.yml
Last active October 14, 2025 13:21
GitHub Actions - Rust setup
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
@MaxGraey
MaxGraey / Wasm-FAQ-2019.md
Last active January 19, 2024 22:26
WebAssembly FAQ для телеграм сообщества WebAssembly_ru

Введение

Данный FAQ был специально создан для телеграм сообщества https://t.me/WebAssembly_ru.

Он базируется на статье от Andre Weissflog, но так же содержит множество моих дополнений и мыслей, которые могут быть уже не слишком актуальны на момент прочтения. Прошу это учитывать.

0. Какие цели у WebAssembly?

@bradtraversy
bradtraversy / docker-help.md
Last active October 29, 2025 05:12
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active October 21, 2025 01:14
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@Ivan-Feofanov
Ivan-Feofanov / getMethods.js
Last active October 17, 2024 11:52
Get list of association methods of model in Sequelize
const model = %yourSequelizeModel%
for (let assoc of Object.keys(model.associations)) {
for (let accessor of Object.keys(model.associations[assoc].accessors)) {
console.log(model.name + '.' + model.associations[assoc].accessors[accessor]+'()');
}
}
@arturparkhisenko
arturparkhisenko / js-fun.js
Last active January 11, 2021 16:47
js fun
// https://twitter.com/MylesBorins/status/929414418680643585?s=09
const context = new window.AudioContext();
for (let i = 0; i < 10; i++) {
let osc = context.createOscillator();
osc.type = 'square';
osc.frequency.value = 40 + i * 0.1111;
osc.connect(context.destination);
osc.start();
}
// second part