- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| #!/bin/sh | |
| # /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses | |
| # Configure every saved WiFi connection in NetworkManager with a spoofed MAC | |
| # address, seeded from the UUID of the connection and the date eg: | |
| # 'c31bbcc4-d6ad-11e7-9a5a-e7e1491a7e20-2017-11-20' | |
| # This makes your MAC impossible(?) to track across WiFi providers, and | |
| # for one provider to track across days. |
| # /etc/NetworkManager/conf.d/30-randomize-mac-address.conf | |
| # REQUIRES NETWORK MANAGER >= 1.4.1 (Ubuntu Zesty and above) | |
| # Thanks to https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/ | |
| # This randomize your MAC address for *new* connections | |
| # Be sure to change your existing (saved) connections in | |
| # /etc/NetworkManager/system-connections/* |
| {-# LANGUAGE TypeOperators #-} | |
| {-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
| import Control.Applicative | |
| import Data.Char | |
| import Data.List (intersperse) | |
| import Data.Monoid hiding (All, Any) | |
| import Data.Foldable hiding (all, any) | |
| import Prelude hiding (all, any) |
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# OPTIONS_GHC -Wall #-} | |
| -- Set your font to a monospace font which makes this character the same as the line-height: │ | |
| -- | |
| -- Otherwise, you'll see an ugly gap between connected lines if the | |
| -- line-height of the font is high. | |
| -- | |
| -- Example fonts: | |
| -- |
| How do we add extra information to a tree? This has been called [The | |
| AST Typing | |
| Problem](http://blog.ezyang.com/2013/05/the-ast-typing-problem/). | |
| After being hit with this problem in Roy's new type-inference engine, | |
| I tried figuring out how to represent the algorithm. I eventually | |
| realised that it looked like a comonadic operation. Turns out it's | |
| been done before but I couldn't find any complete example. | |
| Below is some literate Haskell to show how to use the Cofree Comonad |
| # Description: Boxstarter Script | |
| # Author: Jess Frazelle <jess@linux.com> | |
| # Last Updated: 2017-09-11 | |
| # | |
| # Run this boxstarter by calling the following from an **elevated** command-prompt: | |
| # start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST> | |
| # | |
| # Learn more: http://boxstarter.org/Learn/WebLauncher | |
| #---- TEMPORARY --- |
This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
| {-# LANGUAGE MagicHash, TupleSections, TemplateHaskell #-} | |
| module Data.Vector.Storable.Bake(bake, unsafeFromAddrLen) where | |
| import Data.Typeable | |
| import qualified Data.Vector.Storable as VS | |
| import Foreign | |
| import GHC.Prim | |
| import GHC.Ptr | |
| import Language.Haskell.TH |
| swagger: "2.0" | |
| info: | |
| description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters." | |
| version: "1.0.0" | |
| title: "Swagger Petstore" | |
| termsOfService: "http://swagger.io/terms/" | |
| contact: | |
| email: "apiteam@swagger.io" | |
| license: | |
| name: "Apache 2.0" |