Skip to content

Instantly share code, notes, and snippets.

View dcrystalj's full-sized avatar

Tomaz dcrystalj

View GitHub Profile
@dcrystalj
dcrystalj / rene descartes
Created February 21, 2017 20:50
Descartes reasoning in a nutshell
“Descartes maintains that we cannot accept anything as being true unless we can clearly and
distinctly perceive it. To achieve this can require the breaking down of a compound problem into as
many single factors as possible. Then we can take our point of departure in the simplest idea of all.
You could say that every single thought must be weighed and measured, rather in the way Galileo
wanted everything to be measured and everything immeasurable to be made measurable. Descartes
believed that philosophy should go from the simple to the complex. Only then would it be possible to
construct a new insight. And finally it would be necessary to ensure by constant enumeration and
control that nothing was left out. Then, a philosophical conclusion would be within reach.”
“It sounds almost like a math test.”
“Yes. Descartes was a mathematician; he is considered the father of analytical geometry, and he
@dcrystalj
dcrystalj / bootable-win-from-linux.sh
Created July 3, 2016 20:29 — forked from manpages/bootable-win-from-linux.txt
How to make bootable Windows USB from Linux
Install ms-sys
You will need ms-sys to write a Master Boot Record (MBR) to the USB drive.
Make sure you have installed the gcc, make, and gettext repository packages in order to compile the source code.
Download the latest source code from http://ms-sys.sourceforge.net/#Download.
Un-tar the source code and change into the source code directory:
tar xvzf ms-sys-2.3.0.tar.gz
# Path to your oh-my-zsh installation.
export ZSH=/home/dcrystalj/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
diodon -> clipboard manager
redshift -> auto change screen temperature at night
xclip -> copy to clipboard from terminal
gcp -> copy with progress
@dcrystalj
dcrystalj / .fonts.conf
Created January 7, 2016 23:08 — forked from odony/.fonts.conf
Updated version of the fonts.conf file mentioned in http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/ in order to get rid of most of the fontconfig warnings (mostly the "Having multiple values in <test> isn't supported and may not work as expected")
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@dcrystalj
dcrystalj / tmux 2.0.conf
Last active January 29, 2016 22:22
tmux 2.0
set -g default-shell /bin/zsh
set-option -g prefix C-k
unbind % # Remove default binding since we’re replacing
bind / split-window -h -c "#{pane_current_path}"
bind \ split-window -v -c "#{pane_current_path}"
setw -g monitor-activity on
set -g visual-activity on
set-option -g history-limit 20000
@dcrystalj
dcrystalj / gtkrc-2.0
Created December 25, 2015 21:23
pidgin settings
# This file automatically written by the Pidgin GTK+ Theme Control plugin.
# Any changes to this file will be overwritten by the plugin when told to
# write the settings again.
# The FAQ (http://developer.pidgin.im/wiki/FAQ) contains some further examples
# of possible pidgin gtkrc settings.
gtk-font-name = "Calibri 10"
style "purplerc_style"
{
GtkIMHtml::hyperlink-color = "#7B9DFD"
GtkIMHtml::hyperlink-visited-color = "#5F85FF"
@dcrystalj
dcrystalj / app.py
Created December 25, 2015 15:19
flask init app with CORS support
from flask import Flask, Response
from flask.ext.cors import CORS
import os.path
import logging
def root_dir(): # pragma: no cover
return os.path.abspath(os.path.dirname(__file__))
def get_file(filename): # pragma: no cover
try:
@dcrystalj
dcrystalj / instructions
Created December 25, 2015 15:00
remote screen sharing to 2 rpi
WIFI
https://dl.dropboxusercontent.com/u/80256631/mt7601-4.1.9-819.tar.gz
wifi driverji: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=114138&p=807345
https://gist.github.com/simlun/1b27b14d707abbba8fc1
http://unix.stackexchange.com/questions/121523/check-if-interface-eth0-is-up-configured
sudo rpi-update a51e2e072f2c349b40887dbdb8029f9a78c01987
@dcrystalj
dcrystalj / .zshrc
Created December 25, 2015 14:59
zshrrc windows 10 settings msys2
# Path to your oh-my-zsh installation.
export ZSH=/home/tomaz/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="gallois"
# Uncomment the following line to use case-sensitive completion.