Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Abhimanyu Sharma abhimanyu003

🏠
Working from home
View GitHub Profile
@abhimanyu003
abhimanyu003 / colors.go
Created Oct 29, 2019 — forked from ik5/colors.go
Simple golang expirement with ANSI colors
View colors.go
package main
// http://play.golang.org/p/jZ5pa944O1 <- will not display the colors
import "fmt"
const (
InfoColor = "\033[1;34m%s\033[0m"
NoticeColor = "\033[1;36m%s\033[0m"
WarningColor = "\033[1;33m%s\033[0m"
ErrorColor = "\033[1;31m%s\033[0m"
DebugColor = "\033[0;36m%s\033[0m"
@abhimanyu003
abhimanyu003 / install.sh
Created Jul 2, 2017 — forked from slider23/install.sh
VPS install bash script for Ubuntu 16.04
View install.sh
# =================== YOUR DATA ========================
SERVER_NAME="some-server-name"
SERVER_IP="111.111.11.11"
USER="someuser"
SUDO_PASSWORD="secret-password-one"
MYSQL_ROOT_PASSWORD="secret-password-two"
@abhimanyu003
abhimanyu003 / freetds_install_ubuntu_14.md
Created May 6, 2017 — forked from ghalusa/freetds_install_ubuntu_14.md
Installing and Configuring FreeTDS on Ubuntu 14.04.4 LTS and Establish a Connection via PHP PDO
View freetds_install_ubuntu_14.md

Installing and Configuring FreeTDS on Ubuntu 14.04.4 LTS and Establish a Connection via PHP PDO


Install

sudo apt-get install -y unixodbc unixodbc-dev unixodbc-bin libodbc1 odbcinst1debian2 tdsodbc php5-odbc
@abhimanyu003
abhimanyu003 / input.conf
Created Feb 7, 2016
MPV Keyboard Shortcut to match VLC
View input.conf
## MPV Keyboard Shortcut to match VLC
## Path: /etc/mpv
## ==================
UP ignore # ignore keybinds for
DOWN ignore # directional keys
LEFT seek -10
RIGHT seek 10
SPACE cycle pause # toggle pause
@abhimanyu003
abhimanyu003 / wifi.bat
Last active Jan 25, 2019
Turns your Laptop/PC into a WiFi hotspot. Make sure to "Run as Admin"
View wifi.bat
@echo off
title Wifi Hotspot
echo What You What To Do ?
echo 1 to create wifi
echo 2 to stop wifi
echo 3 show details
set /p input=
if %input%==1 goto 1
if %input%==2 goto 2
View fibonacci-sequence.php
<?php
function fib($n)
{
if ($n < 2)
return $n;
else
return fib($n - 1) + fib($n - 2);
}
?>
You can’t perform that action at this time.