- Install
osxfuse:
brew cask install osxfuse-
Reboot your Mac.
-
Install
ntfs-3g:
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
| #!/bin/bash | |
| set -xeuo pipefail | |
| IFS=$'\n\t' | |
| PREFIX="${1:-/usr/local/dvisvgm}" | |
| TEX="$(kpsewhich -var SELFAUTOLOC)" | |
| echo "$PREFIX, $TEX" | |
| brew install automake freetype ghostscript potrace |
osxfuse:brew cask install osxfuseReboot your Mac.
Install ntfs-3g:
| use std::env; | |
| use std::io; | |
| use std::io::prelude::*; | |
| use std::fs::File; | |
| #[derive(Debug)] | |
| enum Error { | |
| Io(io::Error), | |
| Program(&'static str), | |
| } |
Hello, Rust community!
My name is Hadrien and I am a software performance engineer in a particle physics lab. My daily job is to figure out ways to make scientific software use hardware more efficiently without sacrificing its correctness, primarily by adapting old-ish codebases to the changes that occured in the software and computing landscape since the days where they were designed:
This guide shows how to import into pass your passwords stored in Apple's Keychain Access.
The default kaychain file is ~/Library/Keychains/login.keychain.
Passwords under the "Local Items" keychain (the default since Mavericks to sync with iCloud) use a different file format and can not be exported via the Apple's security tool we use. If that is you case, create a new keychain and drag-and-drop the keys. Your new keychain should have the .keychain extension.
| import algebra.group | |
| import linear_algebra.tensor_product | |
| import tactic.ring | |
| universe u | |
| section canonical | |
| variables {R : Type u} [comm_ring R] {m n : ℕ} (h : m = n) | |
| {A : ℕ → Type u} [∀ n, add_comm_group (A n)] [∀ n, module R (A n)] |
I've been fiddling about with an idea lately, looking at how higher-kinded types can be represented in such a way that we can reason with them in Rust here and now, without having to wait a couple years for what would be a significant change to the language and compiler.
There have been multiple discussions on introducing higher-ranked polymorphism into Rust, using Haskell-style Higher-Kinded Types (HKTs) or Scala-looking Generalised Associated Types (GATs). The benefit of higher-ranked polymorphism is to allow higher-level, richer abstractions and pattern expression than just the rank-1 polymorphism we have today.
As an example, currently we can express this type:
| /- | |
| Copyright (c) 2018 Kevin Buzzard and Patrick Massot. All rights reserved. | |
| Released under Apache 2.0 license as described in the file LICENSE. | |
| Authors: Kevin Buzzard, Patrick Massot. | |
| This file is to a certain extent based on `quotient_module.lean` by Johannes Hölzl. | |
| Quotient groups | |
| =============== |
| #!/bin/bash | |
| # Depends on zstd (>1.3.6) and aws-cli | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| # Set kernel.core_pattern = | coredump_uploader.sh %P %s %E | |
| PID=$1 | |
| shift | |
| SIGNAL=$1 |