Skip to content

Instantly share code, notes, and snippets.

View vviikk's full-sized avatar
🙃

Vik Ramanujam vviikk

🙃
View GitHub Profile
@vviikk
vviikk / .minttyrc
Created October 25, 2016 05:30
Powerline on Babun using bobthefish theme from Oh-my-fish on fish shell
# Using bobthefish theme from Oh-my-fish on fish shell
BoldAsFone=no
Font=Dejavu Sans Mono for Powerline
FontHeight=10
@vviikk
vviikk / cloudSettings
Last active January 11, 2017 16:48
Visual Studio Code Sync Settings GIST
{"lastUpload":"2017-01-11T16:48:29.055Z"}
@vviikk
vviikk / cVim Settings
Last active October 5, 2016 14:31
My cVim Settings
set smoothscroll
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
let barposition = "bottom"
" This unmaps the default 'h', 'j', 'k', and 'l' mappings
unmap J K
map K previousTab " I use Vivaldi with tabs on the side
map J nextTab " so this makes more sense
ç
@vviikk
vviikk / proxyscript.sh
Created May 27, 2016 12:19 — forked from kamermanpr/proxyscript.sh
Bash script to toggle proxy server settings for the terminal, git, and R based on network location setting (OSX)
#!/bin/bash
# By Peter Kamerman ([email protected])
##########
# FUNCTION
##########
# Script to toggle the proxy configurations of the terminal, git, and R
# for use behind a proxy server (e.g., at work) and no proxy (e.g., home).
########################
# DISCLAIMER and LICENSE
########################
@vviikk
vviikk / joom_dbbak.php
Created February 14, 2014 08:14
Easy way to backup Joomla database by using db login credentials from configuration.php. Original idea from http://davidwalsh.name/backup-mysql-database-php
<?php
require_once( 'configuration.php' );
$Config = new JConfig();
backup_tables($Config->host,$Config->user,$Config->password,$Config->db);
/* backup the db OR just a table */
function backup_tables($host,$user,$pass,$name,$tables = '*')