Skip to content

Instantly share code, notes, and snippets.

View KFoxder's full-sized avatar
:shipit:
building....

Kevin Fox KFoxder

:shipit:
building....
View GitHub Profile
@KFoxder
KFoxder / gist:604a0fd3f9e54e3e993cb954b3a69ab9
Last active June 8, 2016 15:09
Xignite Indices with no data
Taken from `/sites/ycharts/data/logs/indices_xignite_quote_import.out`. Xignite Symbols we are having problems with:
EPX.INDXPHL -- Phila Indices SIG Oil Exploration and Production Index
SVO.INDXPHL -- Phila Indices PHLX SIG Energy MLP Index
TXPL.INDXTSE -- S&P Indices S&P/TSX Preferred Share Laddered Index
^W4500 -- Wilshire 4500 Completion Index
# -*- coding: utf-8 -*-
# Boilerplate code to import settings w/o setting DJANGO_SETTINGS_MODULE
import logging
import django
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")))
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ycharts.settings.active')

If you are migrating from an older version of redis that is outside your vagrant box then run this first so when your new DB is up it has the same info:

# Unloading should create a dump.rdb file in /usr/local/var/dump.rdb
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis28.plist

# Then uninstall redis28
brew uninstall redis28

Then:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KFoxder
KFoxder / markup.html
Created June 5, 2018 15:23
Angular Tool Tip
<div class="page-title col-5 col-md-7">
<!-- tooltips: -->
<tooltip tooltip-template="Back to All" tooltip-side="bottom" tooltip-class="tooltip" class="tooltips _bottom _steady _ready active">
<tip-cont>
<a class="btn btn-xs btn-circle btn-transparent page-header-navigation ng-scope" href="/email_reports/list/">
<svg viewBox="0 0 8 14" class="icon-back">
<path d="M0.349,7.001L5.882,0.36c0.354-0.424,0.985-0.481,1.409-0.129c0.424,0.354,0.48,0.983,0.128,1.41L2.953,7l4.466,5.358 c0.354,0.429,0.296,1.058-0.128,1.41c-0.424,0.354-1.055,0.295-1.409-0.129L0.349,7.001z"></path>
</svg>
</a>
</tip-cont>
/*
* angular-tooltips
* 1.2.2
*
* Angular.js tooltips module.
* http://720kb.github.io/angular-tooltips
*
* MIT license
* Tue Jun 20 2017
*/
@KFoxder
KFoxder / readme.md
Last active June 16, 2020 21:52
Celery / Redis / Kombu Upgrade Notes