Skip to content

Instantly share code, notes, and snippets.


Felix Exter felixexter

View GitHub Profile
felixexter /
Created Oct 9, 2017
Share WiFi from Windows via Virtual WiFi from all connections
netsh wlan set hostednetwork mode=allow ssid="networkname" key="password" keyUsage=persistent

netsh wlan start hostednetwork

netsh wlan stop hostednetwork
felixexter /
Last active Jul 10, 2019
Undress your Trello links

Undress your Trello links


Before custom script
felixexter /
Created May 11, 2016 — forked from mxstbr/
Enable tab completion for JSX with Emmet in Atom

Enable tab completion for JSX with Emmet in Atom

This guide assumes you have the emmet and language-babel packages already installed in Atom

Gif of the tab completion working

  1. Open the keymap.cson file by clicking on Atom -> Keymap… in the menu bar
  2. Add these lines of code to your keymap:
View color-nickname.js
var slackId = 'U02D0FE5H'
var processStyles = str =>
str.replace(/;/g, '!important;').replace(/\.color/g, '#client-ui .color')
window.addEventListener('load', () => {
var interval = setInterval(() => {
var $myStyle = document.getElementById('color_rule_color_' + slackId)
felixexter /
Created Jan 26, 2016 — forked from branneman/
Better local require() paths for Node.js

Better local require() paths for Node.js


When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

var Article = require('../../../models/article');

Those suck for maintenance and they're ugly.

Possible solutions

felixexter / # Sublime Emmet JSX
Last active Aug 29, 2015 — forked from max-mykhailenko/# Sublime Emmet JSX
Sublime text 3. Enable Emmet in JSX files with Sublime React plugin
View # Sublime Emmet JSX


  • Using emmet in jsx files
  • Emmet expands text when js autocomplete needed
  • Using className instead of class

How it works

  • Install plugin RegReplace
  • Install plugin Chain Of Command
# add to /usr/local/bin/killbydir
# chmod +x /usr/local/bin/killbydir
for process in `pgrep $1`; do
foo=(`pwdx $process`)
if [ ${foo[1]} = $path ]; then
`kill -9 $pid`
felixexter / slack-delete-files.js
Last active Oct 18, 2017
View slack-delete-files.js
function deleteFiles(types = 'all') {
let files = [];
function deleteFilesByTypes(types, page = 1) {'files.list', {
user: boot_data.user_id,
}, (a, data) => {
files = [...files,];
felixexter /
Created May 28, 2015
Соглашение о порядке селекторов в стиле БЭМ в Stylus

Соглашение о порядке селекторов в стиле БЭМ в Stylus

На рассмотрении 2 варианта порядка селекторов, у которых есть свои плюсы и минусы.

Вариант 1. Всё, что относится к блоку или элементу, находится в начале


  • Свойства, @media-примеси, псевдоэлементы, псевдоклассы и модификаторы ожидаемо находятся под объявлением класса.
  • Модификаторы и псевдоклассы, влияющие на дочерний селектор, ожидаемо идут следом за этим селектором.
  • Не нужно искать модификаторы и псевдоклассы в начале или конце среди остальных селекторов.