Skip to content

Instantly share code, notes, and snippets.

@tatac1
tatac1 / gist:97506eacd38fb75593c02e4b0f2d4001
Last active January 4, 2020 14:37
tpm ek check operation

tpm2 ek check operation

env

debian buster + PICO-APL3 with tpm(infenion optiga SLB 9665)

installing tpm2-tools

$apt install tpm2-tools
@tatac1
tatac1 / sshpass.rb
Created January 9, 2019 14:47 — forked from M-Barnett/sshpass.rb
brew install sshpass
require 'formula'
class Sshpass < Formula
url 'http://sourceforge.net/projects/sshpass/files/sshpass/1.06/sshpass-1.06.tar.gz'
homepage 'http://sourceforge.net/projects/sshpass'
sha256 'c6324fcee608b99a58f9870157dfa754837f8c48be3df0f5e2f3accf145dee60'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
module Transformers where
import Control.Monad.Identity
import Control.Monad.Error
import Control.Monad.Reader
import Control.Monad.State
import Control.Monad.Writer
import Data.Maybe
import qualified Data.Map as Map
@tatac1
tatac1 / gist:dfd481871030c4eb3ec6
Created August 8, 2014 02:32
unpacking a Your.pkg file
$xar -xf your.pkg
$cd your_tmp1.pkg
$ls
Bom Contents PackageInfo Payload
$cat Payload | gzip -d - | cpio -id
@tatac1
tatac1 / PKGBUILD
Created July 27, 2014 01:53
mt-daapd for arch linux on raspberry pi , https://aur.archlinux.org/packages/mt-daapd/
# Maintainer: Marcin Mikolajczyk <marcinmikolajcz at gmail dot com>
# Contributor: Gary Wright <wriggary at g mail dot com> $
# Contributor: Sergej Pupykin <[email protected]>
# Contributor: Jon Kristian Nilsen <[email protected]>
# Contributor: Alan Orth <alan.orth at gmail dot com>
pkgname=mt-daapd
pkgver=0.2.4.2
pkgrel=9
pkgdesc="A multi-threaded DAAP server compatible with iTunes music sharing"
@tatac1
tatac1 / PKGBUILD
Created July 25, 2014 11:02
PKGBUILD for arch
# Maintainer: Marat Akhin <[email protected]>
pkgname=z3-codeplex
pkgver=4.3.1
pkgrel=4
pkgdesc="Z3 is a high-performance theorem prover being developed at Microsoft Research (built from Codeplex sources, libraries, and z3 bin)"
arch=('i686' 'x86_64')
url="http://z3.codeplex.com/"
license=('custom')
makedepends=('python2')
--
-- .xmobarrc
--
Config { font = "xft:Fixed-8"
, bgColor = "black"
, fgColor = "green"
, position = Top
, lowerOnStart = False
, commands = [
#!/bin/sh
# switch ghc-7.6.3 or ghc-7.8.2
echo "Enter a ghcversion 7.6 or 7.8"
read VER
function changeGhc() {
# delete linked files
find $HOME/Library/Haskell -type l -exec rm {} \;
find $HOME/Library/Haskell/$ver -type f ! -name "*.*" -regex ".*/bin/.*" -exec ln -s {} $HOME/Library/Haskell/bin \;
git clone git://github.com/php/php-src.git
cd php-src
./buildconf --force
./configure --enable-dtrace