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
/** | |
* Validate aadhaar number using verhoeff algorithm | |
* Created by Frozenex | |
*/ | |
class AadhaarUtil { | |
companion object { | |
private val d by lazy { | |
arrayOf(intArrayOf(0, 1, 2, 3, 4, 5, 6, 7, 8, 9), |
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/bash | |
docker run -d \ | |
--name gitlab-runner \ | |
--restart always \ | |
-v /srv/gitlab-runner/config:/etc/gitlab-runner \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
gitlab/gitlab-runner:alpine | |
read -p "Enter gitlab runner registration-token: " TOKEN |
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
# Copy this file to any directory containing images & then run this script in powershell | |
# Get all png images in the current directory & convert it to webp format | |
$images = Get-ChildItem -Path (Get-Location) -Filter *.png | |
foreach ($image in $images) { | |
$fileName = $image.DirectoryName + "\" + $image.BaseName + ".webp" | |
cwebp.exe -q 80 $image.FullName -o $fileName | |
} |
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/bash | |
# Copy this file to any directory containing images & then run this script in bash shell | |
# Get all png images in the current directory & convert it to webp format | |
for file in *.png ; | |
do | |
cwebp -q 80 "$file" -o "${file%.png}.webp"; | |
done |