Skip to content

Instantly share code, notes, and snippets.

View isevcik's full-sized avatar

Ivan Sevcik isevcik

View GitHub Profile
@isevcik
isevcik / led-toggle.lua
Created December 10, 2017 15:57
esp8266 nodeMCU script
return function (connection, req, args)
dofile('httpserver-header.lc')(connection, 200, 'html')
led1 = {}
led1.pin = 0
led1.value = gpio.LOW;
led2 = {}
led2.pin = 4
led2.value = gpio.HIGH
@isevcik
isevcik / scan-ap.lua
Created December 12, 2017 22:33
esp8266 nodeMCU script for scanning available Wifi APs
return function (connection, req, args)
dofile('httpserver-header.lc')(connection, 200, 'html')
function ca(payload) connection:send(payload) end
ca("<script>setTimeout(function(){window.location=window.location}, 4000)</script>")
aplist = aplist or {}
ca("<table>")
ca("<tr>")
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2019-01-31 14:58:50" build="180206">
<value name="ColorTable00" type="dword" data="00222827"/>
<value name="ColorTable01" type="dword" data="009e5401"/>
<value name="ColorTable02" type="dword" data="0004aa74"/>
<value name="ColorTable03" type="dword" data="00a6831a"/>
<value name="ColorTable04" type="dword" data="003403a7"/>
<value name="ColorTable05" type="dword" data="009c5689"/>
# history tunning
export export HISTSIZE=50000
export HISTTIMEFORMAT="%h %d %H:%M:%S "
PROMPT_COMMAND='history -a'
export HISTCONTROL=ignorespace
# GIT
alias gdp="git checkout dev && git pull"
#alias gmp="git checkout master && git pull"
alias gs="git status"
// ==UserScript==
// @name Youtube - remove autoplay in user chanel
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.youtube.com/channel/*
// @match https://www.youtube.com/user/*
// @grant none
// ==/UserScript==
#!/usr/bin/env python3
import glob
import fileinput
from pathlib import Path
directory = "src/app/"
directory_blacklist = "styles/"
if_matches = [