This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/make.conf | |
# Clemens Gruber, 2017 | |
# | |
# Nearby mirror | |
#MASTER_SITE_OVERRIDE="ftp://ftp.at.freebsd.org/pub/FreeBSD/ports/distfiles/" | |
#MASTER_SITE_OVERRIDE="ftp://ftp.de.freebsd.org/pub/FreeBSD/ports/distfiles/" | |
# Build | |
MAKE_JOBS_NUMBER?=8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get remove -y xserver-xorg* x11-* | |
sudo apt-get -y autoremove | |
sudo apt-get update | |
sudo apt-get install -y git-core vim build-essential | |
# then run | |
raspi-config | |
# to alocate 1mb to the video driver and you have a nice cheap dev machine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Save this file and add the following line to your ~/.bashrc" | |
export PYTHONSTARTUP="$HOME/.pythonrc" | |
''' | |
import os | |
import readline | |
import rlcompleter | |
import atexit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.method_missing(name, *args) | |
name | |
end | |
def function(*param_names, &block) | |
klass = Class.new { attr_accessor :this, *param_names } | |
this = TOPLEVEL_BINDING.eval('self') | |
proc do |*params| | |
context = klass.new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# UPDATE for 10.10.4+: please consider this patch obsolete, as apple provides a tool called "trimforce" to enable trim support for 3rd party SSDs | |
# just run "sudo trimforce enable" to activate the trim support from now on! | |
# | |
# Original version by Grant Parnell is offline (http://digitaldj.net/2011/07/21/trim-enabler-for-lion/) | |
# Update July 2014: no longer offline, see https://digitaldj.net/blog/2011/11/17/trim-enabler-for-os-x-lion-mountain-lion-mavericks/ | |
# | |
# Looks for "Apple" string in HD kext, changes it to a wildcard match for anything | |
# | |
# Alternative to http://www.groths.org/trim-enabler-3-0-released/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
APP=$1 | |
APP_PATH="/srv/${APP}/current" | |
RAILS_ENV=$2 | |
UNICORN_CONFIG="/etc/unicorn/${APP}.rb" | |
UNICORN_PID_FILE="/tmp/unicorn.${APP}.pid" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dyskretna transformata Fouriera | |
1. sinus | |
wyznaczyc widmo dla sygnalu ktory | |
a) w n probkach bedzie mial calkowita liczbe okresow | |
b) w n probkach bedzie mial niecalkowita liczbe okresow | |
fft/g + semilogy -> widmo | |
2. dyskretna transformata Fouriera (probkowanie widma ciaglego) | |
a) f_sin \in m*fpr/N, m \in {0,1,..,N-1} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tabela przejsc miedzy stanami | |
# q(t) z(t) q(t+1) | |
0 0 3 | |
0 1 1 | |
0 2 2 | |
1 0 1 | |
1 1 1 | |
1 2 1 | |
2 0 5 | |
2 1 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Laboratorum nr 3 - 23.11.2010 - Probkowanie i kwantowanie | |
1. Probkowanie | |
sinus | |
a) fpr > 2*f | |
b) fpr == 2*f | |
c) fpr < f | |
Jak wyglada sygnal w dziedzinie czasu i czestotliwosci? |