Skip to content

Instantly share code, notes, and snippets.

const originalConsoleError = console.error;
console.error = message => {
if (/(Failed prop type)/.test(message)) {
throw new Error(message);
}
originalConsoleError(message);
};
@Kolenov
Kolenov / autoexec.cfg
Created April 23, 2021 12:08 — forked from Fyzu/autoexec.cfg
Apex Legends autoexec
rspn_motd "Aimbot activated (joke)"
//=====================================================
//================== 4:3; 5:4 FIX =====================
//=====================================================
//mat_letterbox_aspect_goal 0.0 // Растягивает картинку на старых мониторах с соотношением сторон 4:3; 5:4 или нестандартных(кастомных) разрешениях, убирает черные полосы по бокам. (ВЫКЛ, для ВКЛ.убрать "//")
//mat_letterbox_aspect_threshold 0.0 // Растягивает картинку на старых мониторах с соотношением сторон 4:3; 5:4 или нестандартных(кастомных) разрешениях, убирает черные полосы по бокам. (ВЫКЛ, для ВКЛ.убрать "//")
//=====================================================
@Kolenov
Kolenov / Mac OS X 10_5_ Windows Ctrl.xml
Created October 18, 2020 23:15 — forked from fljot/Mac OS X 10_5_ Windows Ctrl.xml
AutoHotkey mappings to emulate OSX keyboard shortcuts on Windows
<!-- put this to IDEA keymaps config folder. For v13 it is <userdir>\.IntelliJIdea13\config\keymaps\ -->
<?xml version="1.0" encoding="UTF-8"?>
<keymap version="1" name="Mac OS X 10.5+ Windows Ctrl" parent="Mac OS X 10.5+">
<action id="$Copy">
<keyboard-shortcut first-keystroke="meta C" />
<keyboard-shortcut first-keystroke="meta INSERT" />
<keyboard-shortcut first-keystroke="control C" />
<keyboard-shortcut first-keystroke="control INSERT" />
</action>
<action id="$Cut">
@Kolenov
Kolenov / README.md
Created October 18, 2020 22:52 — forked from ascendbruce/README.md
Use mac style shortcuts on Windows with AutoHotkey (ahk) script

Use (most) macOS style shortcuts on Windows

Make Windows PC's shortcut act like macOS (Mac OS X)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

Note that

  1. You should disable the Between input languages shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys because it conflicts with cmd + shift + ↑ / ↓ / ← / → (select text between cursor and top / bottom / beginning of line / end of line)
  2. you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.
@Kolenov
Kolenov / docker-compose.yml
Created May 22, 2019 23:33 — forked from seanhandley/docker-compose.yml
How To Set Up Docker For Mac with Native NFS
version: '2'
services:
api:
volumes:
- "nfsmount:${CONTAINER_DIR}"
volumes:
nfsmount:
driver: local
driver_opts:
@Kolenov
Kolenov / README.md
Created May 10, 2019 23:05 — forked from addyosmani/README.md
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@Kolenov
Kolenov / perlbrew_libgcc_s.txt
Created December 4, 2018 10:27 — forked from Dreyer/perlbrew_libgcc_s.txt
[perlbrew] ld: library not found for -lgcc_s.10.4
$ cd /usr/local/lib
$ sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.5.dylib
$ sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.4.dylib
@Kolenov
Kolenov / ngrok-copy
Created February 15, 2018 00:37 — forked from mlsteele/ngrok-copy
Copy the url of the active ngrok connection to the clipboard.
#!/usr/bin/env bash
# Copy the url of the active ngrok connection to the clipboard.
# Usage:
# ngrok-copy # copies e.g. https://3cd67858.ngrok.io to clipboard.
# ngrok-copy -u # copies e.g. http://3cd67858.ngrok.io to clipboard.
if [[ "$1" == "-u" ]]; then
NGROK_URL=`curl -s http://127.0.0.1:4040/status | grep -P "http://.*?ngrok.io" -oh`
else
NGROK_URL=`curl -s http://127.0.0.1:4040/status | grep -P "https://.*?ngrok.io" -oh`
@Kolenov
Kolenov / bs-config.js
Created December 31, 2017 11:47
BrowserSync config: serve static assets, and proxy the HTML
/**
* BrowserSync config: serve static assets, and proxy the HTML
*
* Let's say we have the codebase for the front-end of a website,
* and we want to develop CSS/JS or debug against the HTML of
* a remote development, staging or production server.
*
* Using BrowserSync (2.4 needed), we want to serve to our browser(s):
* - the distant HTML pages and content images from the server
* - local static assets (including or changes)
@Kolenov
Kolenov / application_helper.rb
Created December 28, 2017 22:22 — forked from attilagyorffy/application_helper.rb
Responsive Images in Rails applications
module ApplicationHelper
def responsive_image_tag(image, options = {})
content_tag(:picture) do
concat content_tag(:source, nil, media: '(max-width: 768px)', srcset: image.url(:thumbnail_mobile))
concat content_tag(:source, nil, media: '(max-width: 960px)', srcset: image.url(:thumbnail_tablet))
concat image_tag(image.url(:thumbnail_desktop), options)
end
end
end