Skip to content

Instantly share code, notes, and snippets.

View freeman42x's full-sized avatar
🎯
Twitch streaming work on open source projects, looking for contributors

freeman42x freeman42x

🎯
Twitch streaming work on open source projects, looking for contributors
View GitHub Profile
[neo@nixos:~/Projects/fairy-tale-artificial-general-intelligence-solutions/Sources/Razvan Flavius Panda/Haskell/artificial-general-intelligence]$ stack build
Executable named nix-shell not found on path: ["/nix/store/mn4jdnhkz12a6yd6jg6wvb4mqpxf8q1f-bash-interactive-4.4-p23/bin","/nix/store/92ra786kma8vpm2hklfypsjai9m7ra7l-ghc-8.6.4-with-packages/bin","/nix/store/gvshp9yvc6gql09r3cyryj2zgsnfk6br-ghc-8.6.4/bin","/nix/store/ghzg4kg0sjif58smj2lfm2bdvjwim85y-gcc-wrapper-7.4.0/bin","/nix/store/d4n93jn9fdq8fkmkm1q8f32lfagvibjk-gcc-7.4.0/bin","/nix/store/f5wl80zkrd3fc1jxsljmnpn7y02lz6v1-glibc-2.27-bin/bin","/nix/store/d9s1kq1bnwqgxwcvv4zrc36ysnxg8gv7-coreutils-8.30/bin","/nix/store/rbpyfy6413aqpik9aj6p3a2syd1mda68-binutils-wrapper-2.31.1/bin","/nix/store/0y7jmqnj48ikjh37n3dl9kqw9hnn68nq-binutils-2.31.1/bin","/nix/store/f5wl80zkrd3fc1jxsljmnpn7y02lz6v1-glibc-2.27-bin/bin","/nix/store/d9s1kq1bnwqgxwcvv4zrc36ysnxg8gv7-coreutils-8.30/bin","/nix/store/mym79p27mpwc9ll22xfvchb3pizy4khw-remove-references-to/bin","/nix/store
@freeman42x
freeman42x / gist:ee34b1c496125c8e5c2c5c6eb186c6bb
Created August 20, 2019 22:25
gitlab - Permission denied (publickey).
git.exe clone --progress --recursive -v "https://github.com/razvan-panda/snowdrift.git" "D:\Forks\snowdrift"
Cloning into 'D:\Forks\snowdrift'...
POST git-upload-pack (875 bytes)
remote: Enumerating objects: 38, done.
remote: Counting objects: 100% (38/38), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 23306 (delta 19), reused 24 (delta 10), pack-reused 23268
Receiving objects: 100% (23306/23306), 22.51 MiB | 1.72 MiB/s, done.
Resolving deltas: 100% (16495/16495), done.
@freeman42x
freeman42x / example.hs
Last active August 21, 2019 05:11
Haskell Turtle - getting Text output from inshellWithErr
myFunction :: Shell ()
myFunction = do
out <- inshellWithErr "stack build" empty
liftIO $ putStr (lineToText (bifold out))
@freeman42x
freeman42x / config.nix
Created August 22, 2019 11:33
Installing all-hies
let
config = {
allowUnfree = true;
packageOverrides = pkgs: with pkgs;
let jdk = openjdk11; in rec {
unstable = import <nixpkgs> { inherit config; };
all = pkgs.buildEnv {
name = "all";
@freeman42x
freeman42x / init.el
Last active August 23, 2019 00:03
Haskell Emacs HIE setup
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives
'("org" . "https://orgmode.org/elpa/") t)
(add-to-list 'package-archives
'("gnu" . "https://elpa.gnu.org/packages/")) ;; can works badly with helm-swoop
(add-to-list 'package-archives
'("marmalade" . "https://marmalade-repo.org/packages/"))
@freeman42x
freeman42x / shell.sh
Created August 31, 2019 06:20
Fishing for OracleJDK location
[neo@nixos:~]$ ls -d /nix/store/*jdk*
/nix/store/08307j5x1ip16s0b0nik01i77pz6zch1-currency-date-range-jdk10.patch /nix/store/m5651db006w3v2vc6yzb7fsj3nv1v4z7-jetbrainsjdk-202b1483.37
/nix/store/2gf1sj62wq5fmyczydrslq9sl5xi4kxh-openjdk-8u212-ga-jre /nix/store/mbp3cy75mgfjwsb02imxxvzpdpy7yzq9-openjdk-8u212-ga.drv
/nix/store/37zqq9pnvrdv7vv6chv8iblwq9y33rwi-jdk8u212-ga.tar.gz.drv /nix/store/mr948ammjlgr49hxqh4391sfmrfswrc4-jdk8u212-ga.tar.gz.drv
/nix/store/3spdb958pwc39hymcs9h6nf6nrc14qiy-openjdk8-bootstrap-x86_64-linux.tar.xz.drv /nix/store/n41piad1f8jylwkvrh9ww6fc4vjk00y2-jdk-11.0.3-ga.tar.gz.drv
/nix/store/3zfcang88j3y15viz1b4c83dwxpl9ps6-read-truststore-from-env-jdk10.patch /nix/store/ng4v9b3mhi7jpx49ykj86900dr2jdk24-libXdamage-1.1.5
/nix/store/4k1nm46wp5ba4x30dmzdn4gwhsr7xvvx-openjdk-8u212-ga /nix/store/nv8xwbhg2yrnpi0yfb49jjdkscfgg7wz-apr-util-1.6.1.tar.bz2.drv
/nix/store/5hq3xanq1fxbxh36dhp42g43m1wnz7cv-jdk8u212-ga.
@freeman42x
freeman42x / shell.sh
Created August 31, 2019 08:06
error while loading shared libraries: libatspi.so
[neo@nixos:~/Downloads]$ appimage-run Restream+Chat-2.2.8-beta.AppImage
/home/neo/.cache/appimage-run/d7cd920e625af4a947b249ea9d33e0fba9823f9072c8b019e356f56bb46de12b//squashfs-root/restream-chat: error while loading shared libraries: libatspi.so.0: cannot open shared object file: No such file or directory
@freeman42x
freeman42x / configuration.nix
Created August 31, 2019 08:58
configuration.nix for Haskell development
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
let
unstableTarball =
fetchTarball
https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
@freeman42x
freeman42x / shell.sh
Created August 31, 2019 12:46
Ubuntu desktop install
#---------------------------------------------------#
# Detecting if Parameters passed to script ....
#---------------------------------------------------#
while getopts g:s: option
do
case "${option}"
in
g) fixGDM=${OPTARG};;
s) fixSound=${OPTARG};;
@freeman42x
freeman42x / shell.sh
Created August 31, 2019 18:14
Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system
[neo@nixos:~]$ pip install youtrack-scripts
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting youtrack-scripts
Using cached https://files.pythonhosted.org/packages/39/a6/5d444c6528513b58929b620c7ac0edd16103a395af77893756bcc2b02ac2/youtrack-scripts-0.1.34.tar.gz
Collecting python-dateutil (from youtrack-scripts)
Downloading https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl (226kB)
100% |████████████████████████████████| 235kB 2.3MB/s
Collecting youtrack==0.1.12 (from youtrack-scripts)
Downloading https://files.pythonhosted.org/packages/7b/7a/eadeb0842ab2a06d1b7c6a646745a60f3a946631cedceb90720c9fa3a8a3/youtrack-0.1.12.tar.gz
Collecting pyactiveresource (from youtrack-scripts)