Skip to content

Instantly share code, notes, and snippets.

View lvnilesh's full-sized avatar
💭
🏆 Vibranium Status Level

LV Nilesh lvnilesh

💭
🏆 Vibranium Status Level
View GitHub Profile
@lvnilesh
lvnilesh / hammerspoon-config.lua
Created December 11, 2016 23:39
My hammerspoon config
--
-- Reloading of the config file
--
function reload_config(files)
hs.reload()
end
hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", reload_config):start()
hs.alert.show("Config loaded")

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/

A collection of Linux commands and concepts I tend to forget

@lvnilesh
lvnilesh / linux-cmd-cheatsheet.md
Created December 7, 2016 00:23 — forked from riipandi/linux-cmd-cheatsheet.md
Linux Command Cheat Sheet

#Linux Cheat Sheet

##File Commands:

  • ls – directory listing
  • ls -al – formatted listing with hidden files
  • cd dir - change directory to dir
  • cd – change to home
  • pwd – show current directory
  • mkdir dir – create a directory dir
  • rm file – delete file
@lvnilesh
lvnilesh / cron-test.php
Last active November 27, 2016 05:05 — forked from A5hleyRich/cron-test.php
WordPress Cron and Email Test
<?php
/**
* Plugin Name: Cron Test
* Plugin URI: https://gist.github.com/lvnilesh/d59a1d6d23c3dd3a03caa4c09b42d5c8
* Description: WordPress cron and email test.
* Author: Nilesh
* Version: 1.0
* Author URI: https://be.a.cloudgeni.us
*/
@lvnilesh
lvnilesh / htaccess cache and stuff
Created November 25, 2016 04:24 — forked from wycks/htaccess cache and stuff
Boilerplate .htaccess from Paul Irish with WordPress added
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
@lvnilesh
lvnilesh / x-theme-functions.php
Created September 15, 2016 03:20 — forked from woogist/x-theme-functions.php
The code below allow for Themeco - X Theme to be integrated with Sensei.
/**
* Declare that your theme now supports Sensei
*/
add_action( 'after_setup_theme', 'sensei_support' );
function sensei_support() {
add_theme_support( 'sensei' );
}
/**
* Remove the default Sensei wrappers
@lvnilesh
lvnilesh / uninstall_office_2016.sh
Created August 11, 2016 04:56 — forked from pirafrank/uninstall_office_2016.sh
Uninstall Office 2016 from OS X completely
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo -e "
ROOT PRIVILEDGES NEEDED!
You have to run this script as root.
Aborting...
"
exit 1
else
@lvnilesh
lvnilesh / remove-slack-settings.sh
Created May 8, 2016 22:31 — forked from skoji/remove-slack-settings.sh
remove Slack settings (OS X)
rm -rf ~/Library/Application\ Support/Slack/
rm -rf ~/Library/Containers/com.tinyspeck.slackmacgap/
rm -rf ~/Library/Preferences/com.tinyspeck.slackmacgap.plist
rm -rf ~/Library/Saved\ Application\ State/com.tinyspeck.slackmacgap.savedState
rm ~/Library/Safari/LocalStorage/*slack*
@lvnilesh
lvnilesh / Begin document
Created December 16, 2015 20:37 — forked from vichango/Begin document
Scrivener LaTeX Compile options
\usepackage{authblk}
\title{\mytitle}
\author[*]{\myauthor}
\affil[*]{\affiliation}
% To remove the date
\date{}
\begin{document}