Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
zzZen()

॥ स्वक्ष ॥ svaksha

💭
zzZen()
View GitHub Profile
@svaksha
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
View youtube-dl-download-audio-only-on-best-quality.md

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@svaksha
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
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
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
index::Int
timestamp::DateTime
data::String
previous_hash::String
@svaksha
svaksha / DearGoogleGMail-DontBeEvil.md
Last active Nov 6, 2018
DearGoogleGMail-DontBeEvil.md
View DearGoogleGMail-DontBeEvil.md

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.

View ba-privacy-complaint.md

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
svaksha / doi2bibtex.sh
Created Aug 22, 2017 — forked from konrad/doi2bibtex.sh
Returns a BibTeX entry for one or more given DOIs.
View doi2bibtex.sh
#!/usr/bin/env bash
# Returns a BibTeX (www.bibtex.org) entry for one or more given DOIs
# (https://www.doi.org/).
#
# Call it like this:
#
# $ doi2bibtex.sh 10.1093/bioinformatics/btu533
#
# Can also be used for several DOIs at once:
@svaksha
svaksha / pythontojulia.md
Created May 12, 2017 — forked from cuckookernel/pythontojulia.md
Python to Julia Quick translation / conversion reference Guide
View pythontojulia.md

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
svaksha / julia-openblas
Last active Apr 19, 2017
julia-openblas
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)
printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
^~~~~~~~~~~~~~~~~~~~~~
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)
printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
^~~~~~~~~~~~~~~~~~~~~~