Skip to content

Instantly share code, notes, and snippets.

View japodhidev's full-sized avatar

Japodhi japodhidev

View GitHub Profile
@japodhidev
japodhidev / resolution.sh
Created February 16, 2019 16:16
bash script to setup correct resolution using xrandr
xrandr
cvt 1280 1024
xrandr --newmode Modeline
xrandr --addmode DVI-0 1280x1024_60.00
xrandr --output DVI-0 --mode 1280x1024_60.00
@japodhidev
japodhidev / httpd-vhosts.conf
Created April 5, 2018 22:40
Apache24 sample VirtualHost configuration
# Assumptions made include
# 1. Incase you are doing this in a Windows OS development environment, directory
# names should be in quotes because spaces will cause lots of errors.
# 2. You have your Apache server set to execute PHP source files.
# 3. The document root has a file named index.php.
<VirtualHost *:80>
ServerName www.example.com
ServerAlias example.com
@japodhidev
japodhidev / Makefile
Created March 18, 2018 08:11
Simplistic view of a basic makefile
CC=g++
CPPFLAGS= -Wall -g -std=c++11
LINK_TARGET = test.exe
RES_OBJS = res.o
REB_OBJS = test.o