This file contains 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 cv2 | |
import numpy as np | |
def hideBinSplit(encryptedImgPath, coverImgPath, hiddenImgPath): | |
encryptedImg = cv2.imread(encryptedImgPath, 1) | |
coverImg = cv2.imread(coverImgPath, 1) | |
newCoverDims = [2 * dim for dim in encryptedImg.shape[:2]][::-1] | |
coverImg = cv2.resize(coverImg, newCoverDims) | |
for i in range(len(encryptedImg)): | |
for j in range(len(encryptedImg[0])): |
This file contains 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 cv2 | |
import numpy as np | |
import json | |
def randomLiHide(keysTextPath, toHideImgPath, coverImgPath): | |
ao, c, l = 0, 0, 0 | |
with open(keysTextPath) as jsonKeys: | |
akgm = json.load(jsonKeys)["akgm"] | |
ao, c = float(akgm[0]) / (int(akgm[0]) + 1), (1 + str(akgm[1]).count('0')) | |
imgShape = cv2.imread(toHideImgPath, 0).shape |
This file contains 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
# i3 config file (v4) | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
# Set mod key (Mod1=<Alt>, Mod4=<Super>) | |
set $mod Mod4 | |
# set default desktop layout (default is tiling) | |
# workspace_layout tabbed <stacking|tabbed> | |
# Configure border style <normal|1pixel|pixel xx|none|pixel> |
This file contains 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
# This is a section of my ZSHrc file. Be sure to modify it for your selves. | |
echo -e "Oy ɢᴏsʜʀᴏᴡ! It is now $(date +%H:%M). Welcome back!\n" | |
sleep 0.5 | |
echo " ¯\_( ❛︠ ͜ʖ ︡❛)_/¯\n\n" | |
zshexit() { | |
echo -e "\n\e[1mTussi Jaa Rahe Ho!\e[0m\n" |
This file contains 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/sh - | |
# Use this script to get logs of whether your fingers are on keys or mice | |
# Add the script to (X)session startup be it i3config or directly on xinitrc | |
# Daemonize a tool to read the actionLog for simple display | |
actionLog="./actionLogs.log" | |
# Keep this in accord with the scripts that aim to work upon the extracted data | |
# Also as a part of the permanent memory, the logs maybe used across sessions | |
bufferSwitchTime=30 |
This file contains 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
" If you are new to vimrc, rather than applying these, you might also like to look at VimL for further customizations | |
" Additionaly you can look at swapping tab with capslock just for Vim which I have implemented in my Xsession init | |
syntax on | |
set noeb | |
set nu | |
set ts=4 sts=4 sw=4 et sta | |
set ai | |
set ambw=single |
This file contains 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/zsh - | |
# This is a simple cURL statement as per <https://gitlab.com/code-stats/code-stats-zsh/-/blob/master/codestats.plugin.zsh> and I would recommend you purge this else it takes away the fun of Code::Stats | |
TimeToPush='strftime %Y-%m-%dT%H:%M:%S%z' | |
TimeReq=`eval $TimeToPush` | |
# TimeReq="2020-01-01T12:00:00+0530" | |
# Uncomment and Edit the previous line to get your preferred time/date for pumping the xP. The format followed is https://strftime.org/ |
This file contains 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/zsh - | |
fontSize=16 | |
fontName="MonoSpace" | |
# Adjust Base fontSize and Font Name accordingly | |
zoomCommandPrefix='printf "\33]50;%s\007" "xft:$fontName-' | |
# https://bbs.archlinux.org/viewtopic.php?pid=1584742#p1584742 | |
# You can also opt to change .Xresources for fonts, more complications though | |
function checkReadability() { |