Skip to content

Instantly share code, notes, and snippets.

View rankun203's full-sized avatar
🔨
building things

Kun R rankun203

🔨
building things
View GitHub Profile
@rankun203
rankun203 / pdf2docx2markdown.md
Last active December 7, 2023 10:06
PDF to DOCX to Markdown
title
<img src="media/image1.png" style="width:1.1483in;height:2.4361in" /><img src="media/image2.png" style="width:8.26771in;height:8.01775in" />Victorian Carbon Farming Program Pilot

Project Guidelines for Grant Funding

Victorian Carbon Farming Program

North Central Catchment Management Authority Region Pilot

PROCESS-NAME,nsurlsessiond
DOMAIN-SUFFIX,mzstatic.com
syntax on
set noerrorbells
set shiftwidth=2
set expandtab
set smartindent
set nu
set nowrap
set smartcase
set noswapfile
@rankun203
rankun203 / edit-exif.js
Last active September 20, 2020 04:27
Exif Editing
const sh = require("shelljs");
const exiftool = require("exiftool-vendored").exiftool;
const folder =
"/Users/rankun203/Downloads/670 Claude Monet Paintings/670 Amazing Claude Monet Paintings [Up to 4500 Px]-1";
let files = [];
sh.ls(`${folder}/Pics/Monet Paintings/`).forEach((f) => files.push(f));
files = files.sort((a, b) => {

Keybase proof

I hereby claim:

  • I am rankun203 on github.
  • I am kunswork (https://keybase.io/kunswork) on keybase.
  • I have a public key ASDNhlmpZoAVKHklH8qNCxFEzti4FHJTKGPWD_dT-klf4go

To claim this, I am signing this object:

#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
# ./ping-google.perl google.com
use Net::Ping;
my $host = "$ARGV[0]" || 'google.com';
defaults write com.apple.Dock autohide-delay -float 0; and killall Dock
#!/usr/bin/env bash
# Check local dev
check_command() {
WHERE=`whereis $1`
TIP=$2
if [[ -z "${WHERE}" ]]; then
echo "$1 is required, ${TIP}"
else
@rankun203
rankun203 / ensure-env.sh
Created January 18, 2018 02:04
Ensure environment is exist and empty
#!/usr/bin/env bash
# Functions --------
ensure_env () {
ENV_NAME="$1"
ENV_VAL=${!ENV_NAME}
if [[ -z "${ENV_VAL}" ]]; then
echo "${ENV_NAME} does not exists, exiting."
exit
else
@rankun203
rankun203 / download-file.sh
Last active December 26, 2017 09:37
Dump Rackspace Cloud Files Container
#!/usr/bin/env bash
# Usage:
# ./download-file.sh <CONTAINER_NAME> <FILE_PATH>
readonly CONTAINER="$1"
readonly FILE_PATH="$2"
readonly FILE_FOLDER=`dirname $FILE_PATH`
readonly IGNORED_FILES="lodestreams-docs/logs"
if [ "${FILE_PATH/$IGNORED_FILES}" = "$FILE_PATH" ] ; then