Skip to content

Instantly share code, notes, and snippets.

View preetampvp's full-sized avatar

Preetam Pattanashetty preetampvp

  • Melbourne, Australia
View GitHub Profile
1. Enable the Fedora 19 YUM Repository for CentOS
http://paperiniktips.sviluppo-siti-web.com/how-to-enable-the-fedora-19-yum-repository-for-centos/
Get the Release.key
http://paperiniktips.sviluppo-siti-web.com/how-to-install-fedora-19-gpg-key/
rpm --import /mnt/Release.key
vi /etc/yum.repos.d/f19.repo
@preetampvp
preetampvp / montserrat-font-family-styles.css
Created September 20, 2019 01:49 — forked from christopheranderton/montserrat-font-family-styles.css
Montserrat Font Family Styles (Montserrat, Montserrat Alternates, Montserrat Subrayada, Montserrat Arabic). Weights, Font feature settings, Download sources…
/* == Montserrat Font Family Styles == */
/* @group Montserrat
-------------------------------------------------------------- */
/* = Weights Montserrat
-------------------------------------------------------------- */
.thin {
@preetampvp
preetampvp / compton.conf
Last active August 27, 2019 04:39
i3config
# Source : https://raw.githubusercontent.com/chjj/compton/master/compton.sample.conf
# Shadow
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
@preetampvp
preetampvp / rc.lua
Created April 5, 2019 22:43
Awesome WM
--[[
Awesome WM configuration template
github.com/lcpz
--]]
-- {{{ Required libraries
local awesome, client, mouse, screen, tag = awesome, client, mouse, screen, tag
local ipairs, string, os, table, tostring, tonumber, type = ipairs, string, os, table, tostring, tonumber, type
@preetampvp
preetampvp / tls-client.go
Created August 24, 2018 04:17 — forked from michaljemala/tls-client.go
SSL Client Authentication Golang sample
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io/ioutil"
"log"
"net/http"
)
@preetampvp
preetampvp / ansible-summary.md
Created May 16, 2018 06:25 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

The current kernel/drivers of Fedora 24 do not support the Wifi chip used on my Mac Book Pro. Proprietary Broadcom drivers are packaged and available in the rpmfusion repo.

Verify that your card is a Broadcom using: lspci -vnn -d 14e4:

Sample output:

02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)

Install

Install the rpmfusion repo, note only "nonfree" is required, as the Broadcom Driver is proprietry: http://rpmfusion.org/

@preetampvp
preetampvp / debugger.md
Last active March 21, 2017 10:56
python pdb debbuger
import pdb
pdb.set_trace()

In debugger commands

l - list current line of code

n - to go step over

@preetampvp
preetampvp / virtualenv.md
Last active March 22, 2017 09:15
setting up virtualenv

sudo pip install virtualenv

mkdir ~/.virtualenvs && cd $_

Creating a new project

virtualenv theproject . theproject/bin/activate

install packages now using pip (the prompt should show the active project name)

@preetampvp
preetampvp / apt-packages.md
Last active January 30, 2017 10:56
Ubuntu packages

unity-tweak-tool - tweak unity desktop

macfanctld - service to prevent mac from heating

powertop - power usage

tmux - tmux

liferea - rss reader