-
brew install tinyproxy -
Comment out
Allow 127.0.0.1in/usr/local/etc/tinyproxy.conf. -
Start tinyproxy with
tinyproxy -d. -
Follow the log file with
tail -f /usr/local/var/log/tinyproxy/tinyproxy.log
-
On the iOS device, in Wi-Fi settings, set HTTP Proxy to Manual and set
This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.
This file contains hidden or 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
| /* | |
| The "hello world" of neural networks: a simple 3-layer feed-forward | |
| network that implements an XOR logic gate. | |
| The first layer is the input layer. It has two neurons a and b, which | |
| are the two inputs to the XOR gate. | |
| The middle layer is the hidden layer. This has two neurons h1, h2 that | |
| will learn what it means to be an XOR gate. | |
This file contains hidden or 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
| #pragma once | |
| #include "IconsFontAwesome.h" // from https://github.com/juliettef/IconFontCppHeaders | |
| namespace ImGui | |
| { | |
| inline void SetupImGuiStyle( bool bStyleDark_, float alpha_ ) | |
| { |
This file contains hidden or 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
| sudo yum -y install wget | |
| sudo wget -O /etc/yum.repos.d/scylla.repo http://downloads.scylladb.com/rpm/centos/scylla.repo | |
| sudo yum -y install epel-release | |
| sudo yum -y install scylla-server scylla-jmx scylla-tools | |
| # Set the listen_address and seed_provider seeds in scylla.yaml to the internal 10.x.x.x IP address | |
| sudo /usr/lib/scylla/scylla_setup |
This file contains hidden or 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
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #include <stddef.h> | |
| #define _WITH_GETLINE | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #include <inttypes.h> | |
| #include <assert.h> |
This file contains hidden or 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 django.core.cache import cache | |
| from django.core.cache.backends.base import DEFAULT_TIMEOUT | |
| from django.db import connection , transaction | |
| from hashlib import md5 | |
| def cache_chained_calculation(characteristic_str, calculate_function, timeout=DEFAULT_TIMEOUT, force_update=False): | |
| """ | |
| Attempt to obtain result of @calculate_function, represented by @characteristic_str, through cache or calling the | |
| function. Should only allow one caller to be calculating the value at once (enforced using postgres advisory locks), |
This article has been updated and is available here.
This file contains hidden or 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
| ;;;; metal/compiler.lisp | |
| ;;;; | |
| ;;;; Copyright (c) 2015 Adrian Medina | |
| (in-package :metal) | |
| (defparameter *metal-source-paths* | |
| (asdf:system-relative-pathname *system* "src/metal/")) | |
| (defun metal (pathname) |
This file contains hidden or 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
| #!/bin/sh | |
| # Copyright (C) Pierre d'Herbemont, 2010 | |
| # Copyright (C) Felix Paul Kühne, 2012-2015 | |
| set -e | |
| BUILD_DEVICE=yes | |
| BUILD_SIMULATOR=yes | |
| BUILD_STATIC_FRAMEWORK=no | |
| BUILD_STATIC_FRAMEWORK_TV=no |