Skip to content

Instantly share code, notes, and snippets.


॥ स्वक्ष ॥ svaksha

View GitHub Profile
svaksha / git-squash
Created Jul 14, 2021 — forked from tuxfight3r/git-squash
git squash multiple commits with rebase
View git-squash
git rebase --interactive HEAD~2
# we are going to squash c into b
pick b76d157 b
pick a931ac7 c
# squash c into b
pick b76d157 b
s a931ac7 c

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

svaksha / Unicode table
Created Dec 9, 2020 — forked from ivandrofly/Unicode table
Unicode table - List of most common Unicode characters *
View Unicode table
Unicode table - List of most common Unicode characters *
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable.
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol.
What is Unicode?
Unicode is a standard created to define letters of all languages ​​and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode.
How to identify the Unicode number for a character?
Type or paste a character:
svaksha / output.png
Created Dec 2, 2020 — forked from endolith/output.png
Detecting rotation and line spacing of image of page of text using Radon transform
svaksha / Blockchain.jl
Created Oct 29, 2018 — forked from TestSubjector/Blockchain.jl
A very basic implementation of a blockchain in Julia.
View Blockchain.jl
using SHA
An individual block structure
struct Block
svaksha /
Last active Nov 6, 2018

Dear Google / GMail Team:

[Update,05Nov2018]: Since linking my phone, each time I login it sends a verification code to my phone without which I cannot login. This problem is the same as before, see the steps listed before. Lately, the google security system is hyperactive in kicking genuine users out and locking them out of their own account in the name of security. The Irony!

Since 21-Sept-2018, you have been locking me out of my 14-year old gmail account repeatedly. Though I got some support, your effort is inconsistent and superficial without fixing the root of the problem - locking my account each time I login {suport# [8-0106000023584]}. It is very annoying to get locked out each time I llog out of the account.


Dear British Airways,

I am concerned that you have not handled my personal information properly.

Recently, I tried to check-in online on your website, but the interstitial page did not redirect me, and thus I was unable to check-in. I discovered that this was because my adblocker was enabled. After disabling my adblocker, I discovered that your check-in page was leaking my booking reference and surname to countless third parties for advertising purposes, including Twitter, LinkedIn and Google Doubleclick. I've attached for some network logs from Chrome's web developer console for some example evidence.

I do not recall explicitly consenting for my information to be shared in this way, nor do I see any way to opt-out or withdraw my consent. This all appears to be a violation of article 7 of GDPR for conditions of consent, which states "where processing is based on consent, the controller shall be able to demonstrate that the data subject has consented to processing of his or her personal data" and "the data

svaksha /
Created Aug 22, 2017 — forked from konrad/
Returns a BibTeX entry for one or more given DOIs.
#!/usr/bin/env bash
# Returns a BibTeX ( entry for one or more given DOIs
# (
# Call it like this:
# $ 10.1093/bioinformatics/btu533
# Can also be used for several DOIs at once:
svaksha /
Created May 12, 2017 — forked from cuckookernel/
Python to Julia Quick translation / conversion reference Guide

A quick and dirty syntax translation / conversion reference guide to ease the transition between Python and Julia. This is not meant as a reference to the language. For that you should read the manual.

Some important differences

  • Arrays in Julia are indexed starting from 1.
  • In Julia classes (i.e. types) don't own methods. Methods are implementations of generic functions and are invoked in a "static style", i.e. instead of Python's str1.rstrip(), we will have rstrip( str1 ), instead of file1.close(), close( file1 ).

Some important similarities.

svaksha / julia-openblas
Last active Apr 19, 2017
View julia-openblas
स्व@क्ष:~/julia$ make
make -C scratch/openblas-85636ff1a015d04d3a8f960bc644b85ee5157135/ CC=gcc -m64 FC=gfortran -m64 RANLIB=ranlib FFLAGS= -O2 -fPIC TARGET= BINARY=64 USE_THREAD=1 GEMM_MULTITHREADING_THRESHOLD=50 NUM_THREADS=16 NO_AFFINITY=1 DYNAMIC_ARCH=1 INTERFACE64=1 SYMBOLSUFFIX=64_ LIBPREFIX=libopenblas64_ CFLAGS= FFLAGS= MAKE_NB_JOBS=0
getarch_2nd.c: In function ‘main’:
getarch_2nd.c:12:35: error: ‘SGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
getarch_2nd.c:12:35: note: each undeclared identifier is reported only once for each function it appears in
getarch_2nd.c:13:35: error: ‘SGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)