Skip to content

Instantly share code, notes, and snippets.

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

ka kaosf

🏠
Working from home
View GitHub Profile
...
cabal: Could not resolve dependencies:
trying: firstApp-0.1.0.0 (user goal)
trying: pandoc-1.15.0.6 (dependency of firstApp-0.1.0.0)
next goal: highlighting-kate (dependency of pandoc-1.15.0.6)
rejecting: highlighting-kate-0.6, 0.5.15, 0.5.14, 0.5.13 (global constraint
requires ==0.5.12)
rejecting: highlighting-kate-0.5.12 (conflict: pandoc =>
highlighting-kate>=0.6 && <0.7)
rejecting: highlighting-kate-0.5.11.1, 0.5.11, 0.5.10, 0.5.9, 0.5.8.5,
While constructing the BuildPlan the following exceptions were encountered:
-- While attempting to add dependency,
Could not find package cmark in known packages
-- Failure when adding dependencies:
pandoc: needed (-any), latest is 1.15.0.6, but couldn't resolve its dependencies
needed for package: firstApp-0.1.0.0
-- Failure when adding dependencies:
While constructing the BuildPlan the following exceptions were encountered:
-- Failure when adding dependencies:
pandoc: needed (==1.15.0.6), latest is 1.15.0.6, but 1.13.2.1 found
needed for package: firstApp-0.1.0.0
GHC version mismatched, found 7.6.3 (x86_64), but expected version 7.8.4 (x86_64) (based on resolver setting in /some/where/slidybuild/stack.yaml). Try running stack setup
sudo shred -n 3 -v /dev/hdb
sudo shred -z -v /dev/sdb # -n 25 and write NULL (0) finally
# ref. http://www.atmarkit.co.jp/flinux/rensai/linuxtips/662delfile.html
# ref.
# https://twitter.com/udzura/status/611906297483493376
# https://rubygems.org/gems/fpm
# https://github.com/jordansissel/fpm
# https://github.com/jordansissel/fpm/wiki
# https://github.com/jordansissel/fpm/wiki/PackageMakeInstall
# Versions:
# OS: Ubuntu 14.04 amd64
# Ruby: 2.2.2p95
require 'active_support'
module M1
extend ActiveSupport::Concern
module ClassMethods
def cm
puts 'M1.cm'
end
end
end
# OS: Ubuntu 14.04 amd64
# `cat /etc/lsb-release`
#=>
# DISTRIB_ID=Ubuntu
# DISTRIB_RELEASE=14.04
# DISTRIB_CODENAME=trusty
# DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
sudo apt-get install haskell-platform
echo 'export PATH=$HOME/.cabal/bin:$PATH' >> $HOME/.zshenv
# How to detect sd"x"
lsblk
# If sd"x" is mounted
sudo umount /path/to/mounted-dir
sudo dd bs=4M if=/path/to/os-disc-img.iso of=/dev/sdx && sudo sync
# ref. https://archlinuxjp.kusakata.com/wiki/USB_%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%83%A1%E3%83%87%E3%82%A3%E3%82%A2?rdfrom=https%3A%2F%2Fwiki.archlinux.org%2Findex.php%3Ftitle%3DUSB_Installation_Media_%28%25E6%2597%25A5%25E6%259C%25AC%25E8%25AA%259E%29%26redirect%3Dno
; ~/.lein/profiles.clj
{:user {:plugins [[lein-typed "0.3.1"]]}}
; Run "lein new app"
; app/project.clj
(defproject app "0.1.0-SNAPSHOT"
#_...
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/core.typed "0.2.84"]]
#_...)