Skip to content

Instantly share code, notes, and snippets.

View felixexter's full-sized avatar

Felix Exter felixexter

View GitHub Profile
@felixexter
felixexter / color-nickname.js
Last active May 26, 2017 11:17
Stylish Slack
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
felixexter / share-wifi-windows.md
Created October 9, 2017 04:17
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
felixexter / slack-delete-files.js
Last active October 18, 2017 14:35
slack-delete-files.js
function deleteFiles(types = 'all') {
let files = [];
function deleteFilesByTypes(types, page = 1) {
TS.api.call('files.list', {
types,
user: boot_data.user_id,
page
}, (a, data) => {
files = [...files, ...data.files];
@felixexter
felixexter / .bashrc
Last active February 13, 2018 13:15
Заливка файлов в ветку gh-pages из произвольной папки и ветки
# Заливка файлов в ветку gh-pages из произвольной папки и ветки
# Команда: gh-pages <branch> <path/to/folder>
# Пример: gh-pages master dist
gh-pages() {
if [[ $1 && $2 ]]; then
git checkout gh-pages
git checkout $1 -- .gitignore
rm -rf `ls | grep -v node_modules`
git checkout $1 -- $2
mv $2/* .
@felixexter
felixexter / readme.md
Last active January 14, 2023 21:32
Undress your Trello links

Undress your Trello links

Before

Before custom script

https://trello.com/c/MMIAzcT1/461-candidates-new-%D1%82%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D0%BE%D0%B5-%D0%B7%D0%B0%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5-%D0%B4%D0%BB%D1%8F-%D0%BC%D0%B8%D0%B4%D0%BB-%D1%81%D0%B8%D0%BD%D1%8C%D0%BE%D1%80