Skip to content

Instantly share code, notes, and snippets.

@vanities
vanities / gist:57171d34b7f458ebc5d24069aafd0c3e
Last active May 6, 2024 06:55
disable / enable animations on mac
# opening and closing windows and popovers
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
# smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool false
# showing and hiding sheets, resizing preference windows, zooming windows
# float 0 doesn't work
defaults write -g NSWindowResizeTime -float 0.001
@KRostyslav
KRostyslav / tsconfig.json
Last active May 6, 2024 06:54
tsconfig.json с комментариями.
// Файл "tsconfig.json":
// - устанавливает корневой каталог проекта TypeScript;
// - выполняет настройку параметров компиляции;
// - устанавливает файлы проекта.
// Присутствие файла "tsconfig.json" в папке указывает TypeScript, что это корневая папка проекта.
// Внутри "tsconfig.json" указываются настройки компилятора TypeScript и корневые файлы проекта.
// Программа компилятора "tsc" ищет файл "tsconfig.json" сначала в папке, где она расположена, затем поднимается выше и ищет в родительских папках согласно их вложенности друг в друга.
// Команда "tsc --project C:\path\to\my\project\folder" берет файл "tsconfig.json" из папки, расположенной по данному пути.
// Файл "tsconfig.json" может быть полностью пустым, тогда компилятор скомпилирует все файлы с настройками заданными по умолчанию.
// Опции компилятора, перечисленные в командной строке перезаписывают собой опции, заданные в файле "tsconfig.json".
@c5inco
c5inco / HeartRate.kt
Last active May 6, 2024 06:54
Jetpack Compose implementation of inspiration: https://twitter.com/amos_gyamfi/status/1494053914945236999
package des.c5inco.material3
import android.graphics.Matrix
import android.graphics.Path
import androidx.compose.animation.core.*
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@Yuki2718
Yuki2718 / gist:6d9fea46e153e98e89aaca4c867245af
Last active May 6, 2024 06:53
hide see-results-closer-to-you
www.google.com###before-appbar + #lb[style="visibility: visible;"]:has(location-permission-button)
www.google.com##html.TaoyYc:style(overflow: auto !important;)
@avidale
avidale / create_rut5-base.ipynb
Created April 30, 2021 21:51
create_rut5-base.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lavantien
lavantien / modern-software-engineering-resources.md
Last active May 6, 2024 06:45
Modern Software Engineering Resources

Modern Software Engineering

Knowledge and Education should be open and free. Hierarchy and Exploitation must be abolished.

Wayback Machine (archive of the internet), Anna's Archive (open ebooks/papers library), 1337x (archive of all media).

  • Z. (down) Notes below. Avoid all funnel sales and paid bootcamps at all cost, if you spent money, there's something wrong, and you're just feeding the scammers and grifters while wasting your time and resources. Also don't forget good OpSec, self defense gears, and physical/mental strength.
  • A. (go) Development Environment (10 items) (Linux, Neovim, Dev Tools, Languages, Configs, Security, and Dotfiles).
  • B. (go) Complementary Subjects (287 items) (Linguistics, English, Security, OpSec, Psychology, Anthropology, History, Philosophy, Economics, Business, Cooking, Xenology, and Sel
@atchim
atchim / node_motion.lua
Last active May 6, 2024 06:44
Neovim Tree-Sitter node motion
local api = vim.api
local ctrlv = api.nvim_replace_termcodes('<C-V>', true, true, true)
local function exit_vmode()
local mode = vim.fn.mode()
if mode ~= 'v' or mode ~= 'V' or mode ~= ctrlv then
vim.cmd('normal! ' .. mode)
end
end
@siph
siph / building_a_standalone_nixvim.md
Created September 10, 2023 23:51
Building a standalone nixvim configuration

Building a standalone nixvim configuration

A standalone configuration is one that exists in its own project/repository. This means that you can externalize your entire neovim configuration, including flake inputs, nixpkgs version, etc...

This decoupling of neovim and NixOS configurations has multiple advantages including mixing stable/unstable nixpkgs and the ability to run your neovim configuration outside of your NixOS configuration. You can even run it outside of NixOS all together.