Skip to content

Instantly share code, notes, and snippets.

View akhiljalagam's full-sized avatar
🎯
Focusing

Akhil Jalagam akhiljalagam

🎯
Focusing
View GitHub Profile
@akhiljalagam
akhiljalagam / hilite.c
Created August 24, 2018 09:59
highlight stderr in bash
/*
* hilite - runs a command, highlighting everything it sends to stderr
* version 1.5
*
* Copyright (C) 2000, 2001 Mike Schiraldi <[email protected]>
*
* See www.sf.net/forum/forum.php?forum_id=104071 for news and info
*
* Or just www.sf.net/projects/hilite if the above link is no good
*
PROFILE=
NIC=nic
HUB=vpn
SERVER=
USERNAME=
PASSWORD=
vpncmd /client localhost /cmd niccreate "$NIC"
vpncmd /client localhost /cmd accountcreate $PROFILE /SERVER:"$SERVER" /HUB:$HUB /USERNAME:"$USERNAME" /NICNAME:$NIC
vpncmd /client localhost /cmd accountpasswordset $PROFILE /PASSWORD:"$PASSWORD" /TYPE:standard
vpncmd /client localhost /cmd accountstartupset $PROFILE
#!/bin/sh
### BEGIN INIT INFO
# Provides: softether-vpnclient
# Required-Start: $network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VPN Client at boot time
# description: Start VPN Client at boot time.
# processname: softether-vpnclient
Host *
StrictHostKeyChecking no
HashKnownHosts no
UserKnownHostsFile=/dev/null
1. Overall bandwidth - nload, bmon, slurm, bwm-ng, cbm, speedometer, netload
2. Overall bandwidth (batch style output) - vnstat, ifstat, dstat, collectl
2. Bandwidth per socket connection - iftop, iptraf, tcptrack, pktstat, netwatch, trafshow
3. Bandwidth per process - nethogs
@akhiljalagam
akhiljalagam / c6off+c7on.sh
Created January 9, 2019 06:22
Disables all C6 and enables all C7 core states for Baytrail CPUs
#!/bin/sh
#title: c6off+c7on.sh
#description: Disables all C6 and enables all C7 core states for Baytrail CPUs
#author: Wolfgang Reimer <linuxball (at) gmail.com>
#date: 2016014
#version: 1.0
#usage: sudo <path>/c6off+c7on.sh
#notes: Intended as test script to verify whether erratum VLP52 (see
# [1]) is the root cause for kernel bug 109051 (see [2]). In order
@akhiljalagam
akhiljalagam / phabricator_readme.md
Created January 19, 2019 09:36 — forked from sparrc/phabricator_readme.md
Phabricator Ubuntu Installation Guide

Phabricator Ubuntu Installation Guide

This is a supplement to the official Phabricator Installation Guide, because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.

Install bonus packages:

# apt-get install mercurial subversion python-pygments sendmail imagemagick

Create necessary users and add phd-user to sudoers:

NetLimiter 3
Registration name: Peter Raheli
Registration code: C99A2-QSSUD-2CSBG-TSRPN-A2BEB
NetLimiter 4
Registration Name: Vladimir Putin #2
Registration Code: XLEVD-PNASB-6A3BD-Z72GJ-SPAH7
https://www.netlimiter.com/download
# Netlimiter Full Netlimiter Activated Netlimiter cracked Netlimiter Full Version Netlimiter Serial Netlimiter keygen Netlimiter crack Netlimiter 4 serial Netlimiter 4 Crack Netlimiter 4 register Netlimiter 4 patch Netlimiter full Full version Netlimiter 4 Activated Netlimiter 4 Cracked Netlimiter Pro
/*
Copyright (C) 2000 Daniel Ryde
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@akhiljalagam
akhiljalagam / riak.service
Created April 15, 2019 10:20 — forked from indykish/riak.service
Archlinux riak systemd service with ulimit fix
#Checkout for a free launch at, https://www.megam.io
[Unit]
Description=Distributed key/value store from Basho Technologies
After=network.target
[Service]
LimitNOFILE=infinity
LimitMEMLOCK=infinity
User=riak
Type=forking