Skip to content

Instantly share code, notes, and snippets.

@yuraloginoff
yuraloginoff / formatInputNumber.js
Created November 30, 2015 16:37
Format number in input
// Format number in input
function formatNumber(num) {
return ("" + num).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, function($1) { return $1 + " " });
}
$('.format-num').on('keyup', function () {
$(this).val( formatNumber(this.value.replace(/\s/g, '')) );
});
<ul class="tab-nav">
<li><a href="#tab1">tab 1</a></li>
<li><a href="#tab2">tab 2</a></li>
<li><a href="#tab3">tab 3</a></li>
</ul>
<div class="tab-content">
<div class="panel" id="tab1">panel 1</div>
<div class="panel" id="tab2">panel 2</div>
<div class="panel" id="tab3">panel 3</div>
@yuraloginoff
yuraloginoff / firefox-only.css
Last active June 6, 2020 11:18
#css firefox-only
@-moz-document url-prefix() {}
$ ./ffmpeg -i video.mkv -vf subtitles=rus.srt out.mkv
@yuraloginoff
yuraloginoff / SHA256 Checksum
Last active June 6, 2020 11:20
#linux: SHA256 Checksum in Bash
$ shasum -a 256 FILENAME | awk '$1 == "SHA256 HASH" { print "good to go" }'
@yuraloginoff
yuraloginoff / google_dorks_joomla.txt
Last active May 3, 2022 10:34
#pentest: Google dorks for Joomla
intitle:"Joomla – Web Installer"
intitle:"Index of /" "joomla_update.php"
"Consola de Joomla! Debug" inurl:index.php
"Joomla! Administration Login" inurl:"/index.php"
"powered by joomla 3.2" OR "powered by joomla 3.3" OR "powered by joomla 3.4"
inurl:~~joomla3.txt filetype:txt
intext:"~~Joomla1.txt" title:"Index of /"
inurl:"index.php?option=com_bookjoomlas"
index2.php?option=com_joomlaboard
com_ijoomla_rss
@yuraloginoff
yuraloginoff / .nanorc
Last active June 6, 2020 11:03
#linux: .nanorc for nano v. 4.9.3
## Sample initialization file for GNU nano.
##
## VERSION 4.9.3
##
## Characters that are special in a shell should not be escaped here.
## Inside string parameters, quotes should not be escaped -- the last
## double quote on the line will be seen as the closing quote.
##
## For the options that take parameters, the default value is shown.
## Other options are unset by default. To make sure that an option
@yuraloginoff
yuraloginoff / .zshrc
Last active June 6, 2020 11:07
#linux:.zshrc
ZSH_THEME="avit"
plugins=(npm extract vscode web-search z)
#################
# #
# ALIASES #
# #
#################
@yuraloginoff
yuraloginoff / Switch between shells
Last active June 12, 2020 13:08
#linux: Switch between shells
$ echo 'alias 2zsh="chsh -s $(which zsh)"' >> ~/.bashrc
$ echo 'alias 2bash="chsh -s $(which bash)"' >> ~/.zshrc
@yuraloginoff
yuraloginoff / .bashrc
Last active June 6, 2020 11:28
#bash: Customizing Bash environment and setup environment variables
#
# Customizing Bash environment
#
# Correct dir spellings
shopt -q -s cdspell
# Make sure display get updated when terminal window get resized
shopt -q -s checkwinsize