Skip to content

Instantly share code, notes, and snippets.

François Lamboley Frizlab

  • Frost Land
  • Paris, France
Block or report user

Report or block Frizlab

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Frizlab / brew config.txt
Last active Feb 16, 2019
Some brew info
View brew config.txt
HOMEBREW_VERSION: 2.0.1-79-gcadffcf
HEAD: cadffcf2a0ed77696e839c38f20287d5ee6d8b3a
Last commit: 6 hours ago
Core tap ORIGIN:
Core tap HEAD: f3f3777caad040a5086ceef619519cccdd7c4437
Core tap last commit: 4 hours ago
HOMEBREW_PREFIX: /Users/frizlab/usr/homebrew
HOMEBREW_REPOSITORY: /Users/frizlab/usr/homebrew
HOMEBREW_CELLAR: /Users/frizlab/usr/homebrew/Cellar
View brew_config.txt
HOMEBREW_VERSION: 2.0.1-23-g1fd8b38
HEAD: 1fd8b387c65ca54ae37944ca82e8675360c69c2c
Last commit: 9 hours ago
Core tap ORIGIN:
Core tap HEAD: e3d13566d206d767d6e09d6aad7c6484be553e71
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /Users/frizlab/usr/homebrew
HOMEBREW_REPOSITORY: /Users/frizlab/usr/homebrew
HOMEBREW_CELLAR: /Users/frizlab/usr/homebrew/Cellar
View brew_doctor.txt
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: The filesystem on / appears to be case-sensitive.
The default macOS filesystem is case-insensitive. Please report any apparent problems.
Warning: Your Homebrew's prefix is not /usr/local.
Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/usr/local).
Frizlab / logs.txt
Created Sep 26, 2018
Swift compilation failure
View logs.txt
FAIL: Swift(linux-x86_64) :: Index/Store/output-failure.swift (10471 of 11161)
******************** TEST 'Swift(linux-x86_64) :: Index/Store/output-failure.swift' FAILED ********************
rm -rf "/root/swift-source/build/buildbot_linux/swift-linux-x86_64/test-linux-x86_64/Index/Store/Output/output-failure.swift.tmp" && mkdir -p "/root/swift-source/build/buildbot_linux/swift-linux-x86_64/test-linux-x86_64/Index/Store/Output/output-failure.swift.tmp"
mkdir /root/swift-source/build/buildbot_linux/swift-linux-x86_64/test-linux-x86_64/Index/Store/Output/output-failure.swift.tmp/idx
/root/swift-source/build/buildbot_linux/swift-linux-x86_64/bin/swift -frontend -target x86_64-unknown-linux-gnu -module-cache-path '/root/swift-source/build/buildbot_linux/swift-linux-x86_64/./swift-test-results/x86_64-unknown-linux-gnu/clang-module-cache' -swift-version 3 /root/swift-source/swift/test/Index/Store/output-failure.swift -typecheck
chmod -w /root/swift-source/build/buildbot_linux/swift-linux-x86_64/test-lin
View HighlightColorTextFieldCell.swift
class HighlightColorTextFieldCell : NSTextFieldCell {
var hightlightColor: NSColor? {
didSet {
var nonHighlightedTextColor: NSColor? {
didSet {
Frizlab / KeychainUtils.swift
Last active Aug 22, 2018
KeychainUtils for Apple Platforms (iOS, macOS, watchOS, tvOS)
View KeychainUtils.swift
/* Note: There are a lot of assumption on the type of Keychain element that are
 * inserted, etc. You should adjust the code accordingly to your needs. */
/* Note2: Indent spacing is **3** tabs, but gist does not propose the option… */
import Foundation
import Security
struct Keychain {
Frizlab / MyAnyHashable.swift
Created May 31, 2017
A Simple AnyHashable Implementation
View MyAnyHashable.swift
protocol HashableBox {
func unbox<T : Hashable>() -> T?
var hashValue: Int {get}
func isEqual(_ other: HashableBox) -> Bool
struct ConcreteHashableBox<Base : Hashable> : HashableBox {
Frizlab / XPathQuery.swift
Created May 28, 2017
Safe XPath Queries in Swift
View XPathQuery.swift
 * XPathQuery.swift
 * test_lbp
 * Originally created by Matt Gallagher on 4/08/08.
 * Heavily modified (conversion to swift, better libxml2 nodes to object
 * conversion, etc.) by François Lamboley.
 * Created by François Lamboley on 16/04/2017.
 * Copyright © 2017 François Lamboley. All rights reserved.
Frizlab / print_message_read_response.bash
Created Jan 19, 2017
A bash function to write a given message and retrieve response in named variable
View print_message_read_response.bash
# First argument is the name of the variable in which you want the answer to be.
# Next arguments will compose the message to show to the user before starting
# the reading. An additional space will be added at the end of the message.
print_message_read_response() {
eval $var_name=
read -p "$* " $var_name
Frizlab / .bash_profile
Last active Aug 2, 2017
Parts of My Bash Profile — Use At Your Own Risks!
View .bash_profile
# Init file for login shells
# Most of the instructions here should be in the .bashrc file...
function show_branch1() {
git branch >/dev/null 2>&1
if [ $? -eq 0 ]; then printf "["; fi
You can’t perform that action at this time.