Skip to content

Instantly share code, notes, and snippets.

View cmivxx's full-sized avatar

Chris Miller cmivxx

View GitHub Profile
@cmivxx
cmivxx / ad_block.js
Created May 3, 2020 23:26
Korean Car Blog generic Ad Blocker code
<script type="text/javascript">
jQuery(document).ready(function($) {
setTimeout(function() {
if ( typeof(window.google_jobrunner) === "undefined" ) {
//ad blocker installed - show notice
swal({
title: "Adblocker Detected",
@cmivxx
cmivxx / StatusIcon.py
Created October 20, 2017 06:44 — forked from pklaus/StatusIcon.py
StatusIcon – A Simple Tray Icon Application Using PyGTK
#!/usr/bin/env python
# found on <http://files.majorsilence.com/rubbish/pygtk-book/pygtk-notebook-html/pygtk-notebook-latest.html#SECTION00430000000000000000>
# simple example of a tray icon application using PyGTK
import gtk
def message(data=None):
"Function to display messages to the user."
# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore
# Various IDE &#038; OS files that should never be committed
.DS_Store
*.swp
*.lock
__MACOSX
.idea
/nbproject/*
@cmivxx
cmivxx / Monaco for Powerline.md
Created July 23, 2016 17:48 — forked from ymjing/Monaco for Powerline.md
Powerline-patched Monaco for Windows and OSX

Powerline-patched Monaco for Windows and OSX

This font is manually patched with Fontforge. It includes the glyphs from DejaVu Sans Mono for Powerline.

I recommend DirectWrite-patched VIM builds. I'm using KaoriYa's build (http://www.kaoriya.net/software/vim/)

Usage

Add the following lines to your .vimrc/_vimrc:

@cmivxx
cmivxx / file_enc.sh
Created September 29, 2015 22:54
Simple shell script for OSX to encrypt and decrypt files easily.
#!/bin/bash
#############################################################
# OpenSSL Encryption script written by:
# Chris Miller
# chris@intellagentbenefits.com
usage(){
echo "$(tput bold)Usage:$(tput sgr0) $0 enc file_name.txt"
echo "$(tput bold)Usage:$(tput sgr0) $0 unenc file_name.txt"
}
@cmivxx
cmivxx / test_file
Created April 12, 2015 18:58
Get Remote Div from external site with JQuery
<html>
<head>
<title>JQ Call Test / Scrape</title>
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
}
</style>