Skip to content

Instantly share code, notes, and snippets.

@ritajitk
ritajitk / file.xml
Created November 22, 2023 14:04
Filtered rssfeed
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:cc="http://web.resource.org/cc/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:enc="http://purl.oclc.org/net/rss_2.0/enc/" xmlns:prism="http://prismstandard.org/namespaces/basic/2.0/">
<item rdf:about="https://www.science.org/doi/abs/10.1126/science.abp8948?af=R">
<title>Emergent symmetry in a low-dimensional superconductor on the edge of Mottness</title>
<link>https://www.science.org/doi/abs/10.1126/science.abp8948?af=R</link>
<content:encoded>Science, &lt;a href="https://www.science.org/toc/science/382/6672"&gt;Volume 382, Issue 6672&lt;/a&gt;, Page 792-796, November 2023. &lt;br/&gt;</content:encoded>
<description>Science, Volume 382, Issue 6672, Page 792-796, November 2023. &lt;br/&gt;</description>
<dc:identifier>doi:10.1126/science.abp8948</dc:identifier>
<dc:sour
@ritajitk
ritajitk / sorted_vector.txt
Created February 11, 2021 09:43
How to sort a 2d array in cpp by values of two columns?
3 153 -0.15 -0.7 0.1 -0.1 -0.25 -0.6
2 154 -0.15 -0.8 0.1 0 -0.25 -0.8
2 153 -0.15 -0.8 0.1 -0.1 -0.25 -0.7
2 152 -0.15 -0.8 0.1 -0.2 -0.25 -0.6
7 153 -0.1 -0.7 0.1 -0.1 -0.2 -0.6
7 154 -0.1 -0.7 0.1 0 -0.2 -0.7
3 126 -0.15 -0.7 0 0.7 -0.15 -1.4
3 127 -0.15 -0.7 0 0.8 -0.15 -1.5
3 128 -0.15 -0.7 0 0.9 -0.15 -1.6
3 129 -0.15 -0.7 0 1 -0.15 -1.7
@ritajitk
ritajitk / aria.sh
Created November 11, 2019 00:35 — forked from amrza/aria.sh
Download List of files with aria2
#!/bin/sh
aria2c --dir=./ --input-file=urls.txt --max-concurrent-downloads=1 --connect-timeout=60 --max-connection-per-server=16 --split=16 --min-split-size=1M --human-readable=true --download-result=full --file-allocation=none
date
# Now create this file in the same directory and paste all urls in it: urls.txt
@ritajitk
ritajitk / README.md
Created September 23, 2019 21:40 — forked from pziecina/README.md
dwm configuration

dwm config

Install required packages:

apt-get install libxinerama-dev libx11-dev

Customization of [dwm], which base code of dwm may be found under:

git clone http://git.suckless.org/dwm
@ritajitk
ritajitk / vimtips.md
Last active February 15, 2019 17:09
Appending lines to a file inside two marks with vim

Between lines with marks a and b (inclusive), append each line starting with "Error" to a file:

:'a,'b g/^Error/ .w >> errors.txt

After selecting lines in visual mode you can use this. After visually selecting text, press :,

'<,'> g/The/ .w>>newfile.txt
@ritajitk
ritajitk / caesar-cipher.sh
Created December 8, 2018 08:37 — forked from IQAndreas/caesar-cipher.sh
A really simple Caesar Cipher in Bash (or Shell) using `tr`, can also easily be adjusted to encrypt/decrypt ROT13 instead.
# Caesar cipher encoding
echo "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG" | tr '[A-Z]' '[X-ZA-W]'
# output: QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD
# Caesar cipher decoding
echo "QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD" | tr '[X-ZA-W]' '[A-Z]'
# output: THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
# Can also be adjusted to ROT13 instead
@ritajitk
ritajitk / tmux-cheatsheet.markdown
Created November 26, 2018 09:54 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname