Skip to content

Instantly share code, notes, and snippets.

View abhishekkr's full-sized avatar
:octocat:
update your licenses

AbhishekKr abhishekkr

:octocat:
update your licenses
View GitHub Profile
@abhishekkr
abhishekkr / tcp_client.go
Last active October 12, 2023 14:23
simple golang's net example
package main
import (
"fmt"
"io/ioutil"
"net"
"os"
)
const (
#!/usr/bin/env bash
# Download HTML converted from provided Markdown, using GitHub API v3
##
md2html(){
if [[ $# -ne 2 ]]; then
echo "ERROR.\nSYNTAX: Markdown_To_HTML <markdown-filepath> <dest-html-filepath>"
return
fi
unset _markdown_filepath
@abhishekkr
abhishekkr / just-delay.js
Created May 30, 2014 15:38
some quick replicated javascript functions for light offline tryouts
// dumb non-jquery delay for quick offline tryouts
function delay(milliseconds) {
var _start = new Date().getTime();
for (;;) {
var _now = new Date().getTime();
if ((_now - _start) > milliseconds){
break;
}
}
@abhishekkr
abhishekkr / editor-bookmarklet.md
Last active June 6, 2021 18:23
bookmarklet for in-browser editor ~ save them as link of bookmark
@abhishekkr
abhishekkr / get-python-pip-venv.sh
Created February 8, 2014 11:22
get-python-pip-venv.sh
#!/usr/bin/env bash
export LANGUAGE="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="UTF-8"
export LANG="en_US.UTF-8"
##### Var
PIP='pip'
@abhishekkr
abhishekkr / devstack_neutron_migration.patch
Last active January 4, 2016 06:18
[openstack] devstack setup with Neutron and Docker virtualization support
diff --git a/lib/neutron b/lib/neutron
index 465b57c..4a8863f 100644
--- a/lib/neutron
+++ b/lib/neutron
@@ -427,6 +427,10 @@ function init_neutron() {
# install_neutron() - Collect source and prepare
function install_neutron() {
git_clone $NEUTRON_REPO $NEUTRON_DIR $NEUTRON_BRANCH
+ _TMP_PWD=$PWD
+ cd $NEUTRON_DIR
#!/bin/bash
nspawn-ls(){
echo "List of all nspawn instances..."
echo "Archlinux:"
for itm in `sudo ls "/srv/subarch/"`; do
echo $itm
done
echo "********************"
}
@abhishekkr
abhishekkr / routing-10Head.sh
Created October 28, 2013 15:56
patched service scripts for FreeBSD v9.2; and v10HEAD
#!/bin/sh
#
# Configure routing and miscellaneous network tunables; edited by github.com/abhishekkr
#
# $FreeBSD$
#
# PROVIDE: routing
# REQUIRE: faith netif ppp stf
# KEYWORD: nojailvnet
@abhishekkr
abhishekkr / README.md
Last active January 22, 2016 19:26
ArchLinux Bootstrap Script [non-UEFI]

Using it

Check for Internet connectivity, get that working.

Then run "pre_arch_chroot.sh" with manual UEFI mods if required. This will ask some confirmations, give it.

And obviously these scripts have my name for 'username', so run following command on both scripts before using.

sed -i 's/abhishekkr/$YOUR_USER_NAME/g' post_arch_chroot.sh
@abhishekkr
abhishekkr / raguel_eg_01.sh
Last active December 20, 2015 23:19
RAGUEL ~ usage examples
## usage example for RAGUEL : https://github.com/abhishekkr
RAGUEL_URL="https://github.com/abhishekkr/raguel/archive/master.tar.gz"
RAGUEL_TGZ="raguel.tgz"
RAGUEL_SRC="./raguel-master/src/raguel.sh"
curl -kL -o $RAGUEL_TGZ $RAGUEL_URL
tar -zxf raguel.tgz
cat > ./install_htop << EOF