Skip to content

Instantly share code, notes, and snippets.

View sukovec's full-sized avatar
🆗
Ya!

Mike S. sukovec

🆗
Ya!
View GitHub Profile
@sukovec
sukovec / abc.html
Created June 19, 2019 05:48
WTF chrome
<html>
<head>
<title>Abc def</title>
</head>
<body>
<form action="abc.php" method="POST">
<input type="text" name="prvni" /><br />
<input type="text" name="druha" value="predvyplneno" /><br />
<input type="submit" value="odeslat" />
</form>
@sukovec
sukovec / htmlist.sh
Created January 9, 2019 14:13
Create simple html link-list from folder structure
(echo "<style>a {display: block}</style>" ; find devfest -type d | while read line ; do ( cd $line ; echo "<h1>Directory: $line</h1>" ; ls | while read file ; do echo "<a href='$line/$(echo $file | sed 's/%/%25/g')'>$file</a>" ; done ) done) > devfest.html
@sukovec
sukovec / Makefile
Last active August 30, 2023 14:06
OpenWRT Wireshark package makefile.
include $(TOPDIR)/rules.mk
PKG_NAME:=wireshark
PKG_RELEASE:=1
PKG_VERSION:=2.6.6
# https://www.wireshark.org/download/src/all-versions/wireshark-2.6.6.tar.xz
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.wireshark.org/download/src/all-versions/
PKG_MD5SUM:=b30ba5b9b48ed2ff91c0ce357d33b46b
function! SwitchToBufferNum(num)
let buffers = map(filter(copy(getbufinfo()), 'v:val.listed'), 'v:val.bufnr')
execute "buffer " . buffers[a:num]
endfunction
map <C-F1> :call SwitchToBufferNum(0)<CR>
map <C-F2> :call SwitchToBufferNum(1)<CR>
map <C-F3> :call SwitchToBufferNum(2)<CR>
map <C-F4> :call SwitchToBufferNum(3)<CR>
#!/bin/bash
export XDEBUG_REMOTE_HOST=""
export DOCO=$(which docker-compose)
function docker-compose() {
if [ -z ${GIT_DIR+X} ] ; then
$DOCO "$@"
return $?
fi