Skip to content

Instantly share code, notes, and snippets.

View garbas's full-sized avatar
🏠
Working from home

Rok Garbas garbas

🏠
Working from home
View GitHub Profile
### Keybase proof
I hereby claim:
* I am garbas on github.
* I am garbas (https://keybase.io/garbas) on keybase.
* I have a public key ASB2QSqYtvRu0zh1S8TPhNuTk2GUKaGnJMdp0r1V8ovG1Qo
To claim this, I am signing this object:
@garbas
garbas / nixcon
Created June 23, 2017 19:36
nixcon
- agenda/ideas for the nixcon talk
- brief introduction
- what is pypi
- how "awesome" python packaging is
- what problems we have when packing with nix
- how it works (differently then other 2nix tools)
- 3 stages
- stage1: using nix-shell
# generated using pypi2nix tool (version: 1.8.0)
# See more at: https://github.com/garbas/pypi2nix
#
# COMMAND:
# pypi2nix -V 2.7 -e mrjob
#
{ pkgs ? import <nixpkgs> {}
}:
@garbas
garbas / TMP
Created May 31, 2017 15:25
asdas
- 2 services:
- notification_identity -> get notification channel for level by IDENTITY_ID
- notification_policy -> how often to notify IDENTITY_IDs
- move to mozilla-releng/services
- src/releng_notifcation_identity
- src/releng_notifcation_???
- request flow
@garbas
garbas / gista-file
Created May 29, 2017 09:21
mock-pipeline
{
"name": "test1",
"steps": [
{
"uid": "mock1",
"url": "http://localhost:8012/mock",
"parameters": {
"timeout": 2
}
},
@garbas
garbas / requirements_override.nix
Created February 19, 2017 17:28
globin_override.nix
{ pkgs, python }:
self: super: {
"github3.py" = python.overrideDerivation super."github3.py" (old: {
propagatedNativeBuildInputs = old.propagatedNativeBuildInputs ++ [ self."uritemplate" ];
patchPhase = ''
cat setup.py
sed -i -e "s|uritemplate.py >= 0.2.0|uritemplate >= 0.2.0|" setup.py
'';
# IMPORTANT: make sure you copy over `requirements_override.nix` file
% pypi2nix --version
1.8.0 (master)
% pypi2nix -v -V "3.5" -e rinohtype
...
% nix-build requirements.nix -A interpreter
@garbas
garbas / gista-file
Created January 29, 2017 23:56
Example config.nix
let
neovim = pkgs.neovim.override {
configure = {
customRC = ''
" vim config
'';
vam.pluginDictionaries = [
{ names = [
"surround"
@garbas
garbas / gista-file
Last active January 5, 2017 17:21
tc job
{
"provisionerId": "aws-provisioner-v1",
"workerType": "releng-task",
"taskGroupId": "TASK_ID",
"dependencies": [ "TASK_ID" ],
"created": "CREATED",
"deadline": "DEADLINE",
"expires": "EXPIRES",
"scopes": [ "queue:create-task:aws-provisioner-v1/releng-task" ],
"payload": {
@garbas
garbas / gista-file
Created December 10, 2016 06:55
error bugzilla
! Configure failed for Math-Pari-2.01080900. See /tmp/nix-build-bugzilla-XXX.drv-0/.cpanm/work/1481352503.255/build.log for details.
! Installing the dependencies failed: Module 'Math::Pari' is not installed
! Bailing out the installation for Net-SSH-Perl-2.01.
! Installing the dependencies failed: Module 'Net::SSH::Perl' is not installed
! Bailing out the installation for Net-SFTP-0.10.
! Installing XML::SAX::Expat failed. See /tmp/nix-build-bugzilla-XXX.drv-0/.cpanm/work/1481352503.255/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'Net::SFTP' is not installed