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
@freeman42x
freeman42x / shell.sh
Created August 31, 2019 18:29
Not on Nix PATH
[neo@nixos:~]$ pip install --user 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)
Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl
Collecting youtrack==0.1.12 (from youtrack-scripts)
Using cached https://files.pythonhosted.org/packages/7b/7a/eadeb0842ab2a06d1b7c6a646745a60f3a946631cedceb90720c9fa3a8a3/youtrack-0.1.12.tar.gz
Collecting pyactiveresource (from youtrack-scripts)
Using cached https://files.pythonhosted.org/packages/b7/dd/fae34e03863036860d93157cbb73674ef3cdadc794e020ef06174
@freeman42x
freeman42x / shell.sh
Created September 2, 2019 00:00
ImportError: No module named pkg_resources
[neo@nixos:~]$ github2youtrack --version
Traceback (most recent call last):
File "/home/neo/.local/bin/github2youtrack", line 6, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
[neo@nixos:~]$ github2youtrack --help
Traceback (most recent call last):
File "/home/neo/.local/bin/github2youtrack", line 6, in <module>
from pkg_resources import load_entry_point
@freeman42x
freeman42x / shell.sh
Created September 3, 2019 04:26
install/vmware-installer/vmis-launcher: No such file or directory
[neo@nixos:~/Downloads]$ sudo sh VMware-Player-15.1.0-13591040.x86_64.bundle
[sudo] password for neo:
Extracting VMware Installer...done.
/tmp/vmis.tYIuh4/install/vmware-installer/vmware-installer: line 56: /tmp/vmis.tYIuh4/install/vmware-installer/vmis-launcher: No such file or directory
@freeman42x
freeman42x / shell.sh
Created October 1, 2019 19:43
HIE error
2019-10-01 20:38:27.022706935 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"type":1,"message":"Got error while processing diagnostics: readCreateProcess: /nix/store/jq8x50rkl3cm7cqkj1zsk6kfbb692iwv-cabal-helper-0.9.0.0/bin/cabal-helper-wrapper \"--with-ghc=ghc\" \"--with-ghc-pkg=ghc-pkg\" \"--with-cabal=cabal\" \"v1-style\" \"/home/neo/Projects/haskell-editor-setup\" \"/home/neo/Projects/haskell-editor-setup/dist\" \"package-db-stack\" \"flags\" \"compiler-version\" \"ghc-merged-pkg-options\" \"config-flags\" \"non-default-config-flags\" \"ghc-src-options\" \"ghc-pkg-options\" \"ghc-lang-options\" \"ghc-options\" \"source-dirs\" \"entrypoints\" \"needs-build-output\" (exit 1): failed"},"method":"window/showMessage"}
@freeman42x
freeman42x / shell.sh
Created October 3, 2019 22:56
GHCJS ./utils/makePackages.sh
[neo@nixos:~/Sources/ghcjs]$ ./utils/makePackages.sh
usage: ./utils/makePackages.sh [link|copy]
build a standalone GHC package from the GHC sources
populating source tree with symbolic links to upstream files
processing cache
copying package (source distribution): base
Warning: The sdist command is a part of the legacy v1 style of cabal usage.
Please switch to using either the new project style and the new-sdist command
@freeman42x
freeman42x / shell.sh
Created October 4, 2019 22:23
ZLIB missing
[root@nixos:/home/neo/Projects/haskell-editor-setup]# cabal v1-install --dependencies-only
Resolving dependencies...
Downloading comonad-5.0.5
Downloading mwc-random-0.14.0.0
Starting zlib-0.6.2.1
Failed to install zlib-0.6.2.1
Build log ( /root/.cabal/logs/ghc-8.6.5/zlib-0.6.2.1-JkgnCzQLE4d9AnItMNCDCp.log ):
cabal: Entering directory '/tmp/cabal-tmp-8507/zlib-0.6.2.1'
Configuring zlib-0.6.2.1...
cabal: Missing dependency on a foreign library:
@freeman42x
freeman42x / shell.sh
Created October 5, 2019 16:07
HIE wrong GHC version
[nix-shell:~/Projects/haskell-editor-setup]$ hie
2019-10-05 17:06:59.280104151 [ThreadId 4] - run entered for hie-wrapper(hie) Version 0.12.0.0 x86_64 ghc-8.6.5
2019-10-05 17:06:59.280652162 [ThreadId 4] - Current directory:/home/neo/Projects/haskell-editor-setup
2019-10-05 17:06:59.280905225 [ThreadId 4] - Operating system:linux
2019-10-05 17:06:59.283069489 [ThreadId 4] - Cradle directory:/home/neo/Projects/haskell-editor-setup
2019-10-05 17:06:59.283680949 [ThreadId 4] - Using plain GHC version
2019-10-05 17:06:59.314523093 [ThreadId 4] - Project GHC version:8.6.4
2019-10-05 17:06:59.314736029 [ThreadId 4] - hie exe candidates :["hie-8.6.4","hie-8.6","hie"]
2019-10-05 17:06:59.315896109 [ThreadId 4] - found hie exe at:/nix/store/schi03ns65gha1mxfx1zl89mwsa61723-haskell-ide-engine-combined/libexec/bin/hie
2019-10-05 17:06:59.316231882 [ThreadId 4] - args:[]
{ config, pkgs, ... }:
let
unstableTarball =
fetchTarball
https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {};
in
{
imports =
@freeman42x
freeman42x / shell.sh
Created October 6, 2019 17:19
toxvpn.service failed to start
● toxvpn.service - toxvpn daemon
Loaded: loaded (/nix/store/bnassmgk4iaw9z3mlb0hfapfinm375vz-unit-toxvpn.service/toxvpn.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Sun 2019-10-06 18:17:19 IST; 17ms ago
Process: 10114 ExecStart=/nix/store/cvjl41hl22ssaqnxzrrxlp9gjmywsx51-unit-script-toxvpn-start (code=killed, signal=TERM)
Process: 10111 ExecStartPre=/nix/store/w3w3cm1x0kdfag461wf07hkjah1msbs9-unit-script-toxvpn-pre-start (code=exited, status=0/SUCCESS)
Main PID: 10114 (code=killed, signal=TERM)
Oct 06 18:16:09 nixos cvjl41hl22ssaqnxzrrxlp9gjmywsx51-unit-script-toxvpn-start[10114]: 41 / 64
Oct 06 18:16:19 nixos cvjl41hl22ssaqnxzrrxlp9gjmywsx51-unit-script-toxvpn-start[10114]: 51 / 64
Oct 06 18:16:29 nixos cvjl41hl22ssaqnxzrrxlp9gjmywsx51-unit-script-toxvpn-start[10114]: 17 / 64
@freeman42x
freeman42x / shell.sh
Created October 6, 2019 17:25
systemctl status toxvpn
[neo@nixos:~]$ systemctl status toxvpn
● toxvpn.service - toxvpn daemon
Loaded: loaded (/nix/store/m4mqx5i0i55qnbdxvhi0fy8zph2l7m8a-unit-toxvpn.service/toxvpn.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Sun 2019-10-06 18:23:11 IST; 1min 47s ago
Process: 2756 ExecStart=/nix/store/kk4cxa75r8x3xsawyxcclpasigx6h48b-unit-script-toxvpn-start (code=killed, signal=TERM)
Process: 2751 ExecStartPre=/nix/store/w3w3cm1x0kdfag461wf07hkjah1msbs9-unit-script-toxvpn-pre-start (code=exited, status=0/SUCCESS)
Main PID: 2756 (code=killed, signal=TERM)
Oct 06 18:22:01 nixos kk4cxa75r8x3xsawyxcclpasigx6h48b-unit-script-toxvpn-start[2756]: 41 / 64
Oct 06 18:22:11 nixos kk4cxa75r8x3xsawyxcclpasigx6h48b-unit-script-toxvpn-start[2756]: 51 / 64