Skip to content

Instantly share code, notes, and snippets.

" SOURCE: https://www.reddit.com/r/neovim/comments/mlqyca/fzf_buffer_delete/
" HELP: Place this in ~/.vimrc or ~/.config/nvim/init.vim
" --------------------------------------------------------------------------
" Add this for mapping Ctrl+x to trigger the action
" Delete buffers with fzf (refer ~/.config/nvim/custom.commands.vim)
nmap <C-x> :BD<CR>
" Everything below is copied from SOURCE mentioned above
" --------------------------------------------------------------------------
help:
@# Green
@tput setaf 2
@echo "Usage: make [ all | clean ]"
@echo "This script will encrypt 128 bit 0's plain text with 256 bit 0's key, "
@echo "Using AES 256 ECB encryption scheme"
@# color reset
@tput sgr0
all:
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@TummanapallyAnuraag
TummanapallyAnuraag / gsc.js
Last active June 17, 2019 05:51
GSC Usernames
/*
Author: Anuraag Tummanapally
* URL:
https://www.google.com/search?q=site:scholar.google.co.in/citations+(iitb+and+ee)+-%22Research+Scholar%22&safe=active&client=ubuntu&hs=PjE&channel=fs&ei=WB3dXN2zNMvFvQTXwqSADQ&start=10&sa=N&ved=0ahUKEwjdv7SIz5_iAhXLYo8KHVchCdAQ8NMDCI4B&biw=1600&bih=717
[OR]
* Search for:
site:scholar.google.co.in/citations (iitb and ee) -"Research Scholar"
in Google, then copy this code and paste in CONSOLE
@TummanapallyAnuraag
TummanapallyAnuraag / archinstallation.md
Created February 10, 2019 11:38
Arch Linux Installation

Setup Network

  • Connect LAN wire
  • replace eno1 by specific interface name (Eg. enp3s0, or eth0 etc..)
  • replace IP address/netmask (here i am using 10.107.2.218/20)
  • my gateway is 10.107.1.25, feel free to change that also
  • 10.107.1.1 is just a device with an IP address within the network
  • Following commands can come handy:
systemctl stop dhcp 
// Navigate to a Google Scholar page
var rows = document.getElementsByClassName("gsc_a_tr")
for (index=0;index<rows.length;index++){
title = rows[index].getElementsByClassName("gsc_a_at")[0].innerHTML;
year = rows[index].getElementsByClassName("gsc_a_h")[0].innerHTML;
authors = rows[index].getElementsByClassName("gs_gray")[0].innerHTML;
journal = rows[index].getElementsByClassName("gs_gray")[1].innerHTML;
console.log(index+','+title+','+year+','+authors+','+journal);
}