brew install redis
Set up launchctl to auto start redis
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
/usr/local/opt/redis/ is a symlink to /usr/local/Cellar/redis/x.y.z (e.g., 2.8.7)
| libnvpair is available as a nice independent bundle from the ZFS on Linux project. | |
| To install libnvpair (and it's dependencies) on Ubuntu: | |
| sudo add-apt-repository ppa:zfs-native/stable | |
| sudo apt-get update | |
| sudo apt-get install libnvpair1 |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import sublime_plugin | |
| import subprocess | |
| from time import sleep | |
| import sys | |
| cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip() | |
| log = lambda message: sys.stderr.write("Log: %s\n" % message) |
| Add-Type -AssemblyName System.Windows.Forms | |
| while ($true) | |
| { | |
| $Pos = [System.Windows.Forms.Cursor]::Position | |
| $x = ($pos.X % 500) + 1 | |
| $y = ($pos.Y % 500) + 1 | |
| [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y) | |
| Start-Sleep -Seconds 10 | |
| } |
| #!/bin/bash | |
| ################################################################################ | |
| ### OpenCV2 Installation Script ### | |
| ################################################################################ | |
| # Source code at https://github.com/arthurbeggs/scripts # | |
| ################################################################################ | |
| # # | |
| # Feel free to copy and modify this file. Giving me credit for it is your # | |
| # choice, but please keep references to other people's work, which I don't # |
| # Stop all containers | |
| docker stop `docker ps -qa` | |
| # Remove all containers | |
| docker rm `docker ps -qa` | |
| # Remove all images | |
| docker rmi -f `docker images -qa ` | |
| # Remove all volumes |
| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |
| #!/bin/bash | |
| # This gist is a step by step instructions to build and install OpenCV from source on ubuntu 18.04 LTS | |
| # note: The easy and quick way to install is | |
| # sudo pip3 install opencv-python | |
| # sudo pip3 install opencv-contrib-python | |
| # But this easy pypi installation can’t open video files on GNU/Linux distribution or on mac OS X system. | |
| # And on some system opencv binaries provided packages are not compiled. | |
| # Therefor we have no way rather than build it from source. | |
| #!/bin/bash | |
| red='\e[91m' | |
| green='\e[92m' | |
| yellow='\e[93m' | |
| magenta='\e[95m' | |
| cyan='\e[96m' | |
| none='\e[0m' | |
| _red() { echo -e ${red}$*${none}; } |