https://itunes.apple.com/de/app/macos-sierra/id1127487414?l=en&mt=12
Link: canonical Link: amphtml Close Ad Link: http://www.macworld.com * Subscribe ▲ Learn more about Macworld's Digital Edition Macworld Magazine Cover
https://itunes.apple.com/de/app/macos-sierra/id1127487414?l=en&mt=12
Link: canonical Link: amphtml Close Ad Link: http://www.macworld.com * Subscribe ▲ Learn more about Macworld's Digital Edition Macworld Magazine Cover
# 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 |
test |
https://laptop.ninja/how-to-install-ubuntu-on-a-macbook-pro/ | |
import React, { Component, createElement } from "react"; | |
import Enzyme, { shallow, render, mount } from "enzyme"; | |
import Adapter from "enzyme-adapter-react-16"; | |
import { action, observable, computed } from "mobx"; | |
import { observer } from "mobx-react"; | |
Enzyme.configure({ adapter: new Adapter() }); | |
class Store { | |
@observable val = 0; | |
} |
# 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 |
#!/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. |
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
} | |
# Usage | |
# $ get_latest_release "creationix/nvm" | |
# v0.31.4 |
"""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 |