# /usr/local/nginx/conf/nginx.conf
worker_processes auto;
events {
worker_connections 1024;
}
# RTMP configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://askubuntu.com/questions/799184/how-can-i-install-cuda-on-ubuntu-16-04 | |
# https://www.perfacilis.com/blog/crypto-currency/mining-ethereum-on-ubuntu-with-ethminer.html | |
# https://gist.github.com/johnstcn/add029045db93e0628ad15434203d13c | |
# https://wiki.archlinux.org/index.php/NVIDIA/Tips_and_tricks | |
sudo apt update | |
sudo apt upgrade | |
sudo apt-get purge nvidia-cuda* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################## | |
## LANSTREAM ## | |
################## | |
# This is a sample configuration file | |
# Please don't copy and paste this exactly, read through it and understand what you're doing | |
# nginx-rtmp can be a little strange when working multithreaded, so we turn it off | |
worker_processes 1; | |
#Comprehensive Introduction to @ngrx/store By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
useful links:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cassandra.cluster import Cluster | |
from cassandra.auth import PlainTextAuthProvider | |
# | |
auth_provider = PlainTextAuthProvider( | |
username='jimmy', password='??????') | |
cluster = Cluster(contact_points=['dse1'], auth_provider=auth_provider) | |
session = cluster.connect() | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Single Node Cassandra/Spark using pySpark | |
""" | |
import os | |
import sys | |
SPARK_HOME = "/Users/jimmy/dev/spark" | |
os.environ['SPARK_HOME'] = SPARK_HOME |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inspired by $q/Q in javascript to chain methods | |
class Q: | |
def __init__(self, d): | |
self.d = d | |
self.error = None | |
def then(self, fn): | |
if not self.error: | |
try: |
NewerOlder