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
// simple zellij LOCKED config, support ctrl+a and atacking with ctrl+a,a,... (^a,a,d for example) | |
// (if you ssh to tmux or zellij or screen with ctrl+a binings) | |
// name as ~/.config/zellij/config.kdl | |
keybinds clear-defaults=true { | |
locked { | |
bind "Ctrl a" { SwitchToMode "normal"; } | |
} | |
normal { | |
bind "a" { Write 0x01; SwitchToMode "locked"; } |
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
#!/bin/bash | |
#name as ~/bin/runZellijSession.sh | |
session_name=$(echo $PWD|sed "s/\\//_/g")_ | |
hist_path="$HOME/.config/zellij/bash_histories" | |
mkdir -p $hist_path | |
old_hist_file="$HOME/.bash_history" | |
export HISTFILE="$hist_path/$session_name" | |
if [ ! -f "$HISTFILE" ]; then |
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
// made to be able to wrap window, in case when Localstorage is unavailable | |
function copy(object) { | |
try { | |
return Object.assign({}, object) | |
} catch(e) { | |
const result = {}; | |
Object.keys(object).forEach(key=> { | |
let value; | |
try { | |
value = object[key]; |
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
FROM centos:centos6 | |
#FROM ubuntu | |
RUN yum install -y mysql-server | |
ADD mysql-entry.pl /entrypoint.pl | |
ENTRYPOINT ["/entrypoint.pl"] |
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
<div id="test">test</div> |
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
$ time ./test.sh | |
real 0m6.020s | |
user 0m0.004s | |
sys 0m0.008s |
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
<html> | |
<body> | |
<iframe src="test2.html"></iframe> | |
</body> | |
</html> |
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
<html> | |
<head> | |
</head> | |
<body> | |
<div> Hello from iframe!</div> | |
</body> | |
</html> |
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
alert('loaded'); | |
function run() { | |
alert ('run fired'); | |
} |
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
<html> | |
<body> | |
<h1 id="helloworld">Hello world</h1> | |
other content | |
</body> | |
</html> |
NewerOlder