Skip to content

Instantly share code, notes, and snippets.

View wecacuee's full-sized avatar

Vikas Dhiman wecacuee

View GitHub Profile
@wecacuee
wecacuee / borgbackup.sh
Created August 14, 2023 19:02
Borgbackup shell script
#!/bin/sh
# Setting this, so the repo does not need to be given on the commandline:
#export BORG_REPO='ssh://user@host:port/path/to/repo'
export BORG_REPO=file:///media/vdhiman/Elements/Feb22/borgbackup
# Setting this, so you won't be asked for your repository passphrase:
# or this to ask an external program to supply the passphrase:
export BORG_PASSCOMMAND='cat /home/vdhiman/wrk/Private/location_of_your_passphrase_in_afile'
@wecacuee
wecacuee / LICENSE
Last active October 30, 2024 16:57
Anonymize pdf annotations and metadata
MIT License
Copyright (c) 2024 Vikas Dhiman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@wecacuee
wecacuee / LICENSE
Last active September 5, 2022 21:57 — forked from brianbruggeman/LICENSE
Convert Viscosity to Open VPN
Public Domain
@wecacuee
wecacuee / ICRA2020Notes.md
Last active June 9, 2020 20:10
ICRA 2020 Notes
@wecacuee
wecacuee / RockerRVIZ.md
Last active April 29, 2020 21:29
Getting started with rocker + rviz

install docker

sudo apt install docker.io

test docker

    $ docker run hello-world

    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    ca4f61b1923c: Pull complete
@wecacuee
wecacuee / VNC with i3.md
Last active January 9, 2024 02:17
VNC with i3
@wecacuee
wecacuee / AAAI-2020-notes.md
Created February 19, 2020 00:58
Notes from AAAI 2020

AAAI 2020

  • Broad trends: Graph networks, Neuro-symbolics, Hierarchies

Plenary Talks

  • Talks available at https://aaai.org/Conferences/AAAI-20/livestreamed-talks/
  • Stuart Russel
    • Lesson: Human instructions are uncertain. Minimally invasive preferences. Do not convert everything else into paper clips. Keep "everything else" constant unless asked for.
  • Geoffrey Hinton:
@wecacuee
wecacuee / Rich Output.ipynb
Created October 18, 2019 06:56
Rich Output
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wecacuee
wecacuee / diff_substr.py
Created July 30, 2019 03:32
Remove common parts and keep only the differences
def common_substr(strs, return_diffs=False):
"""
>>> common_substr("abcd", "xbcd")
'bcd'
"""
strs = list(strs)
min_len = min(map(len, strs))
max_len = max(map(len, strs))
first = strs[0]
comm = type(first)()
@wecacuee
wecacuee / Makefile
Created March 25, 2016 18:13
Makefile to download, install and run VQA evaluation (and training) code https://github.com/VT-vision-lab/VQA_LSTM_CNN
.PHONY: all clean evaluate downloaddata torch
SHELL:=bash -l
########################################################################
# Makefile to download, install and run VQA evaluation (and training) code https://github.com/VT-vision-lab/VQA_LSTM_CNN
# Usage:
# make evaluate # Runs evaluation code from downloaded models
# make downloaddata # Downloads MSCOCO dataset to required directory format
# make evaluate DO_TRAINING=1 # Runs training code before evaluation
# make clean # Removes the downloaded models