Skip to content

Instantly share code, notes, and snippets.

View countoren's full-sized avatar

oren countoren

  • Carlson Software
View GitHub Profile
@countoren
countoren / Program.cs
Last active June 12, 2017 03:23
Castle DictionaryAdapeter Test
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.Components.DictionaryAdapter;
using SAPbobsCOM;
namespace testCastleDictAdapter
{
public interface IPerson
{ mkDerivation, fetchFromGitHub, makeWrapper, name, vimrcDrv }:
mkDerivation {
name = name;
src = fetchFromGitHub {
owner = "countoren";
repo = "Macvim-8.0.127-python";
rev = "c81e676a6b2dc08c736a25bf4b3260573ce68dc4";
sha256 = "1cpsy2na3lfg2mh0h3z4zp7ldn8rrwycvrb9mzw4vhvif636g2rk";
};
buildInputs = [ makeWrapper ];
with import <nixpkgs> {};
let
nixpkgs18_11 = import (fetchFromGitHub {
owner="NixOS";
repo="nixpkgs";
rev="866b1dbedaf84a0cc5721c475ec4196dc76ae906";
sha256="1kblflrvb4yqhkz9pdfkb33q4kzvkxf5ggl6b271qs7s2z1hn7j4";
}) {};
with import <nixpkgs> {};
import (fetchFromGitHub {
owner="NixOS";
repo="nixpkgs";
rev="f7c6e6b";
sha256="06bmjlsq5h2hfypzxldyb6zyxbbfapmw2cn6p384vl2pw3ibc340";
}) {}
with import ./nixpkgs.nix;
let
hie = (import (fetchFromGitHub {
owner="domenkozar";
repo="hie-nix";
rev="6794005";
sha256="0pc90ns0xcsa6b630d8kkq5zg8yzszbgd7qmnylkqpa0l58zvnpn";
}) { });
@countoren
countoren / shell.nix
Created April 2, 2019 03:00
shell nix java
with import <nixpkgs> {};
let
ps1902 = import ./nixpkgs.nix;
jiraSDK = ps1902.callPackage (import ./jiraSDK.nix) {};
nixpkgsUtils = fetchFromGitHub {
owner="countoren";
repo="nixpkgs";
rev="0c0d4c67f335a4a288e2a43197c35780af9ed0e7";
sha256="168dn0c09322djsshcjly14q11i20knsnaxn9jw61rhkd3k1zqzf";
};
hie = (import (fetchFromGitHub {
owner="domenkozar";
repo="hie-nix";
# 0.6.0.0
rev="6794005";
sha256="0pc90ns0xcsa6b630d8kkq5zg8yzszbgd7qmnylkqpa0l58zvnpn";
}) { });
hieWrapper = writeShellScriptBin "hieWrapper" ''
${hie.hie86}/bin/hie "$@"
@countoren
countoren / mkShellWithVSCode.nix
Last active December 13, 2019 15:31
A nix function to bring vscode with extensions into a nix-shell
{ pkgs ? import <nixpkgs> {}
, vscode-personal ? import ./vscode-personal.nix { inherit pkgs; }
}:
with pkgs;
let
les = [
{
name = "csharp";
publisher = "ms-vscode";
@countoren
countoren / nix rest exmample
Last active January 8, 2020 19:57
for Sr. Jappie
# curl --insecure -b tok -H "Prefer:odata.maxpagesize=1000" 'https://domain:maybePort/b1s/v1/UserQueries' > sql/UserQueries-sql.sql
with import <nixpkgs> {};
let
curlCmd = "${curl}/bin/curl";
serverUrl = "domain:maybePort";
database = "something";
_jq = "${jq}/bin/jq";
_perl = "${perl}/bin/perl";
_awk = "${gawk}/bin/awk";
with import <nixpkgs>{};
runCommand "getfromInternet" { buildInputs = [ curl ];} ''curl www.google.com > $out''