Skip to content

Instantly share code, notes, and snippets.

View nsainaney's full-sized avatar
💭
⛵️ sailing away...

Narayan Sainaney nsainaney

💭
⛵️ sailing away...
View GitHub Profile
@nsainaney
nsainaney / init.lua
Created January 24, 2023 06:47
NeoVim Setup
-- Install packer
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
local is_bootstrap = false
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
is_bootstrap = true
vim.fn.system { 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path }
vim.cmd [[packadd packer.nvim]]
end
require('packer').startup(function(use)
@nsainaney
nsainaney / bashly-repleatable-download
Last active February 18, 2022 19:53
bashly-repleatable-output
#!/usr/bin/env bash
# This script was generated by bashly (https://github.com/DannyBen/bashly)
# Modifying it manually is not recommended
# :script.bash3_bouncer
if [[ "${BASH_VERSINFO:-0}" -lt 4 ]]; then
printf "bash version 4 or higher is required\n"
exit 1
fi
@nsainaney
nsainaney / symlink.md
Last active May 14, 2019 23:37
Convert symlinked folder to actual folder in bash
@nsainaney
nsainaney / hash_for_facebooksdk
Last active August 29, 2015 14:10
Xamarin Dump HASH for use in Facebook Android SDK (instead of using keytool)
void DumpKeyHashes()
{
try
{
using (var sha = new System.Security.Cryptography.SHA1CryptoServiceProvider())
{
//Retriving package info
var packageName = ApplicationContext.PackageName;
System.Diagnostics.Debug.WriteLine("#### PACKAGE NAME: " + packageName);
var packageInfo = this.PackageManager.GetPackageInfo(packageName, PackageInfoFlags.Signatures);