This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import datetime | |
import json | |
script_string = ''' | |
DateTimeFormatter formatterNew = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); | |
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); | |
try { | |
ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(ctx._source.creationTime, formatterNew); | |
} catch (DateTimeParseException d) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
times in msec | |
clock self+sourced self: sourced script | |
clock elapsed: other lines | |
000.008 000.008: --- VIM STARTING --- | |
000.118 000.110: Allocated generic buffers | |
000.424 000.306: locale set | |
000.429 000.005: clipboard setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var _old_alert = window.alert; | |
window.alert = function() { | |
_old_alert.apply(window,arguments); | |
var d = parent.frames['main'].document; | |
d.getElementById('Button3').click(); | |
}; | |
})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype off " required | |
call plug#begin('~/.config/nvim/plugged') | |
Plug 'Raimondi/delimitMate' | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'flazz/vim-colorschemes' | |
Plug 'chriskempson/base16-vim' | |
Plug 'tpope/vim-fugitive' | |
Plug 'matze/vim-move' | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~; | |
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
wget https://raw.githubusercontent.com/nym3r0s/vimrc/master/.vimrc | |
vim -c "PlugInstall" | |
cd -; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var asdf = document.getElementsByTagName("a"); | |
var asdfext = ".pdf"; | |
for(var asdfinc =0 ; asdfinc < asdf.length;asdfinc++){ | |
if(asdf[asdfinc].href.indexOf(asdfext)!=-1){ | |
console.log(asdf[asdfinc].href); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignore all | |
* | |
# Unignore all with extensions | |
!*.* | |
# Unignore all dirs | |
!*/ | |
### Above combination will ignore all files without extension ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for a in *.*; do | |
name=$(echo $a | cut -f 1 -d '.') | |
name=${name// /-} | |
dir="/mp3/" | |
ext=".mp3" | |
name=$name$ext | |
ffmpeg -i "$a" -qscale:a 0 "$name" | |
done | |
mkdir mp3; |