If you need to clone a big repository on a slow and unreliable connection, you can do a minimal shallow clone:
git clone --depth=1 <git url>
Then deepen this clone from inside the repo with:
git fetch --depth=N
Or just:
If you need to clone a big repository on a slow and unreliable connection, you can do a minimal shallow clone:
git clone --depth=1 <git url>
Then deepen this clone from inside the repo with:
git fetch --depth=N
Or just:
If you stored locally your pgp private key and didn't upload it on keybase.io (well done), you can get your private key, for example to register it in the local gpg, this way:
keybase pgp export -secret
To build a Raspbian toolchain for Swift 3.0.2 a few things need to be changed in the original guide.
Download the Swift 3.0.2 packages instead of the 3.1.1 ones:
curl -o /tmp/swift-3.0.2-RPi1Zero-RaspbianNov16.tgz https://www.dropbox.com/s/dkrkt9ht1c3hog2/swift-3.0.2-RPi1Zero-RaspbianNov16.tgz
curl -o /tmp/swift-3.0.2-RELEASE-osx.pkg https://swift.org/builds/swift-3.0.2-release/xcode/swift-3.0.2-RELEASE/swift-3.0.2-RELEASE-osx.pkg
Launch the script with these parameters:
Reported successes using my binaries on different linuxes:
Ubuntu Core 16 on a Raspi3: Used the mate version and installed clang libpython3.5-dev libcurl3 (or likely libcurl4-nss-dev)
Debian Pi64 on a Raspi3: Used the mate version, installed clang-3.8 libicu-dev libcurl4-nss-dev
and copied over libicu.so.55
from an Ubuntu Mate 16.04 system
Armbian(a modified xenial) on an Asus Tinkerboard
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 112b5d6..e6f790d 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -552,6 +552,8 @@ else() | |
set(SWIFT_HOST_VARIANT_ARCH_default "powerpc64le") | |
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "s390x") | |
set(SWIFT_HOST_VARIANT_ARCH_default "s390x") | |
+ elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686") | |
+ set(SWIFT_HOST_VARIANT_ARCH_default "i686") |
Disable APFS local snapshots:
sudo tmutil disable localsnapshot
List the current snapshots:
tmutil listlocalsnapshots /
Delete them manually:
tmutil deletelocalsnapshots
Tail recursive version of fibonacci:
func fibTail(_ n: Int, _ a: Int = 0,_ b: Int = 1) -> Int{
if n == 0 { return a }
if n == 1 { return b }
return fibTail(n-1,b,a+b)
}
Qualche indirizzo shoutcast per ascoltare radio italiane direttamente da itunes ("Open Stream"):
Virgin Radio: http://icecast.unitedradio.it/Virgin.mp3
Lifegate Radio: http://onair11.xdevel.com:8024/
Radio 24: http://shoutcast2.radio24.it:8000/
Radio Marconi: http://onair15.xdevel.com:8922/
How to configure your Mac to use DNS over TLS in five easy steps:
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
Edit the configuration file:
Yes! You can reuse your old Ubuntu Mate 16.04 installation from a Raspberry Pi 3 with a new B+.
Trying to boot the B+ with the old SD without modifications, will result in the rainbow screen with thunderbolt screen showing up.
From your old Rpi, update the firmware(kernel.img&co) on the boot partition running sudo rpi-update
. This will be enough to boot on the B+ but the wireless card will still not work.
Set a country code for the wireless adapter in your wpa-supplicant.conf (usually under /etc/wpa-supplicant/) adding country=GB
.
Get all the files contained in https://github.com/RPi-Distro/firmware-nonfree/tree/master/brcm
and copy them over the content in /lib/firmware/brcm
. This will add a few new and updated drivers for the B+ wireless adapter.