Skip to content

Instantly share code, notes, and snippets.

View jS5t3r's full-sized avatar
🎯
Focusing

Peter Lorenz jS5t3r

🎯
Focusing
View GitHub Profile
@jS5t3r
jS5t3r / adam.py
Created December 8, 2017 12:02 — forked from Newmu/adam.py
Adam Optimizer
"""
The MIT License (MIT)
Copyright (c) 2015 Alec Radford
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
#https://github.com/ClementPinard/FlowNetPytorch
conda create -n flowpy35 python=3.5 anaconda
source activate flowpy35
conda install pytorch torchvision -c pytorch
pip install tensorboardx
pip install argparse
@jS5t3r
jS5t3r / ltspice.sh
Created December 3, 2017 13:32 — forked from daniw/ltspice.sh
install ltspice on ubuntu (arch commented)
# install wine and ltspice
sudo apt-get install wine
# sudo pacman -S wine
cd /tmp/
wget http://ltspice.linear-tech.com/software/LTspiceIV.exe
wine LTspiceIV.exe
rm LTspiceIV.exe
# start lstpice through wine
wine ~/.wine/drive_c/Program\ Files/LTC/LTspiceIV/scad3.exe
gcc --version
g++ --version
nvcc --version
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
#### switching gcc
# https://gist.github.com/jS5t3r/5d1c15b2d10754cb732b5755508e51d0
# conda update conda
# conda create -n yourenvname python=x.x anaconda
#!/bin/sh
# CMAKE
# http://embedonix.com/articles/linux/installing-cmake-3-5-2-on-ubuntu/
# Could NOT find Check (missing: PC_CHECK_LIBRARIES)
#(_FPHSA_FAILURE_MESSAGE) cmake/FindCheck.cmake:14 (find_package_handle_standard_args)
sudo apt-get install check
# additional libararies
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev
sudo apt-get install -y build-essential cmake git pkg-config
sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install -y libatlas-base-dev
sudo apt-get install -y --no-install-recommends libboost-all-dev
sudo apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev
sudo apt-get install -y python-dev
sudo apt-get install -y python-numpy python-scipy
%output "parser.cxx"
%defines "parser.hxx"
%skeleton "lalr1.cc" // C++ parser interface
%require "3" // require bison version
%parse-param { yy::scanner* scanner } { ParserCallback* cb } // add parser members
%locations // call yylex with a location
%define parse.error verbose // increase usefulness of error messages
%define parse.assert // assert correct cleanup of semantic value objects
%option outfile="scanner.cxx"
%option header-file="scanner.hxx"
%option yylineno
%option c++
%option 8bit warn nodefault
%option noyywrap
%option debug
%x incl
We couldn’t find that file to show.
@jS5t3r
jS5t3r / Intall
Last active January 17, 2017 13:52
Arch LInux
sudo pacman -S yaourt atom yakuake dropbox thunderbird python2 tk
sudo pacman -S python2-pip
pip install virtualenv
sudo pip install requests
# http://docs.python-guide.org/en/latest/dev/virtualenvs/
# pip freeze > requirements.txt
pip install -r requirements.txt