Skip to content

Instantly share code, notes, and snippets.

View arnaudsj's full-sized avatar

Sébastien Arnaud arnaudsj

View GitHub Profile
@arnaudsj
arnaudsj / chromeos-crosh-custom-setup.md
Created February 25, 2018 03:48 — forked from aaronhalford/chromeos-crosh-custom-setup.md
Customize ChromeOS Crosh Terminal with Custom Fonts and Solarized Dark Theme

Customize Chromebook Chrosh Shell Environment

Requirement: Chromebook, Common Sense, Commandline Ablity, 1 hour of time

Dear developers with a spare Chromebook lets inject a little personalization into your Crosh shell with custom fonts, the solarized theme, and extra secure shell options.

Also, keep in mind that the terms Chrosh, Chrosh Window, and Secure Shell all refer to various versions and extentions built around the ChromeOS terminal. Settings that affect the ChromeOS terminal are global.

Custom Fonts

@arnaudsj
arnaudsj / tlp.conf
Created August 23, 2022 21:45
tlp.conf (optimized for battery life on hp dev one/amd 5850U Pro)
# ------------------------------------------------------------------------------
# /etc/tlp.conf - TLP user configuration (version 1.4)
# See full explanation: https://linrunner.de/tlp/settings
#
# Settings are read in the following order:
#
# 1. Intrinsic defaults
# 2. /etc/tlp.d/*.conf - Drop-in customization snippets
# 3. /etc/tlp.conf - User configuration (this file)
#
@arnaudsj
arnaudsj / Clojure.sublime-settings
Last active January 18, 2021 19:00 — forked from jamesmacaulay/Clojure.sublime-settings
Sublime Text 3: Clojure
// installed Clojure packages:
//
// * BracketHighlighter
// * lispindent
// * SublimeREPL
// * sublime-paredit
{
"word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?",
"paredit_enabled": true,
@arnaudsj
arnaudsj / chromeos-crosh-custom-setup.md
Created February 25, 2018 03:49 — forked from diffficult/chromeos-crosh-custom-setup.md
Customize your ChromeOS fonts - working April 2017

Customize Chromebook Chrosh Shell Environment

Requirement: Chromebook, Common Sense, Commandline Ablity, 1 hour of time

Dear developers with a spare Chromebook lets inject a little personalization into your Crosh shell with custom fonts, the solarized theme, and extra secure shell options.

Also, keep in mind that the terms Chrosh, Chrosh Window, and Secure Shell all refer to various versions and extentions built around the ChromeOS terminal. Settings that affect the ChromeOS terminal are global.

Custom Fonts

@arnaudsj
arnaudsj / profiles.clj
Last active December 25, 2019 02:50 — forked from jamesmacaulay/profiles.clj
~/.lein/profiles.clj
{:user {:dependencies [[org.clojure/tools.namespace "0.2.3"]
[spyscope "0.1.3"]
[criterium "0.4.1"]]
:injections [(require '(clojure.tools.namespace repl find))
; try/catch to workaround an issue where `lein repl` outside a project dir
; will not load reader literal definitions correctly:
(try (require 'spyscope.core)
(catch RuntimeException e))]
:plugins [[lein-pprint "1.1.1"]
[lein-beanstalk "0.2.6"]
@arnaudsj
arnaudsj / .block
Last active August 16, 2019 21:15
fresh block
license: mit
{
"nodes": [
{"id": "Myriel", "group": 1},
{"id": "Napoleon", "group": 1},
{"id": "Mlle.Baptistine", "group": 1},
{"id": "Mme.Magloire", "group": 1},
{"id": "CountessdeLo", "group": 1},
{"id": "Geborand", "group": 1},
{"id": "Champtercier", "group": 1},
{"id": "Cravatte", "group": 1},
@arnaudsj
arnaudsj / bootstrapping.markdown
Created June 7, 2016 01:18 — forked from daveliepmann/bootstrapping.markdown
Implementing Sugar & James’ paper, "Finding the number of clusters in a data set: An information theoretic approach" in Clojure — Part 4

Implementing the k-means jump method: Part Four

This fourth and final part of our exploration into the jump method wraps things up by following a basic application of the technique through to a search for results we can be confident in.

We'll reuse functions from rest of the series (Part One, Part Two, Part Three). You'll also want the original paper handy to refer back to their charts.

First, we're going to return to several prior data sets:

@arnaudsj
arnaudsj / pydigits.jl
Last active January 31, 2016 16:22
PyDigits.jl (generate Pi digits)
# The Computer Language Benchmarks Game
# http://benchmarksgame.alioth.debian.org/
# created by Sébastien Arnaud <arnaudsj@gmail.com>
# inspired from Python version: http://benchmarksgame.alioth.debian.org/u64q/program.php?test=pidigits&lang=python3&id=5
# modification suggested by ScottPJones &
# Performance on Macbook 12" Retina (1.3Ghz)
# Julia v0.4.3
@arnaudsj
arnaudsj / r.py
Created August 10, 2012 03:30
starCluster R plugin for doRedis implementation
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
class doRedis(ClusterSetup):
def __init__(self):
pass
def run(self, nodes, master, user, user_shell, volumes):
redis_master_ip = master.private_ip_address
command = """su - arnaudsj -c "nohup R --slave -e 'require(multicore);require(doRedis);startLocalWorkers(n=multicore:::detectCores(),host=\\\"%s\\\",queue=\\\"jobs\\\", port=6379)' > /dev/null 2>&1 &" """ % redis_master_ip