Skip to content

Instantly share code, notes, and snippets.

View dcrystalj's full-sized avatar

Tomaz dcrystalj

View GitHub Profile
@dcrystalj
dcrystalj / launch.json
Last active September 10, 2018 20:40
debugging
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
@dcrystalj
dcrystalj / tasks.json
Last active September 10, 2018 20:39
g++ build
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build & run",
"type": "shell",
"command": "g++ program.cpp -std=c++14 -o program.out && time ./program < in.txt",
"group": {
@dcrystalj
dcrystalj / cloudSettings
Last active December 24, 2017 08:27
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-24T08:27:36.000Z","extensionVersion":"v2.8.7"}
@dcrystalj
dcrystalj / yoga
Created May 16, 2014 16:35
yoga customize
miška
=====
HKEY_USERS>S-1-5-21-......1001>software>synaptics>SynTP>TouchpadPS2
then find the 2FingerTapAction entry on the right hand side of regedit and change the value from 0 to 2.
http://www.howtogeek.com/howto/windows-vista/disable-caps-lock-key-in-windows-vista/
@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
@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
diodon -> clipboard manager
redshift -> auto change screen temperature at night
xclip -> copy to clipboard from terminal
gcp -> copy with progress
# 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.
varnostna povezava SA
Je enosm. povezava med pošiljateljem in prejemnikom z določenimi var. storitvami.
VP enolično identificirajo trije parametri:
SPI (tip zascite)
IP
protokol (AH ali ESP)
AH: packet authentication
ESP: packet encryption plus (optionally auth)