Skip to content

Instantly share code, notes, and snippets.

@ddksr
ddksr / tweaks-archlinux-gnome
Last active September 23, 2020 06:07
Gnome Archlinux Tweaks
# GDM screen scale
sudo -u gdm dbus-launch gsettings set org.gnome.desktop.interface scaling-factor 1
# bose headphones
yay -S pulseaudio-bluetooth-a2dp-gdm-fix
@ddksr
ddksr / sql-clicks.org
Last active March 14, 2019 09:50
sql-clicks
  • date (date)
  • src_url (varchar)
  • dst_url (varchar)
  • cookie_id (varchar, NULL if unknown)
@ddksr
ddksr / archlinux-snippets.md
Created January 5, 2018 07:29
Archlinux snippets
@ddksr
ddksr / hackernewspp.org
Created December 18, 2017 09:37
hackernewspp.org
1. req2. req (q: 1)3. req (q: 3)
a, 4:00a, 4:00f, 4:11
b, 3:55e, 3:57a, 4:00
c, 3:40b, 3:55e, 3:57
d, 2:10c, 3:40d, 2:10
d, 2:10
@ddksr
ddksr / bash-snippets.sh
Last active November 17, 2015 14:56
Favorite bash snippets
# In a file with urls, count different status codes
{ for line in `cat urls.txt`; do curl -I $line 2> /dev/null | head -n 1 | egrep -o '[0-9]{3}' ; done; } | sort | uniq -c
# Get titles from urls from clipboard
urls=`xclip -o | tr '\n' ' '`; for url in $(echo $urls); do clean_url=$(echo -e "${url}" | tr -d '[[:space:]]'); tmp=$(curl "$clean_url" 2> /dev/null | egrep -o '<title>.*</title>' | egrep -o '>.*<'); echo ${tmp:1:-2}; done;

Uvod

  • [x] predstavi se
  • [x] prilagajanje wp-ja: teme in plugini. razlika?
    • [x] actions
    • [x] filters
    • [x] the loop

Teme

  • [x] style.php - metapodatki teme
  • [x] functions.php - programerske nastavitve teme
    • [x] poglej featured image
@ddksr
ddksr / izpiski.org
Created February 7, 2015 16:11
CVWW presentation

Highlights

  • multi-image photogrammetry is becoming the most accurate and cost effective method of documentation in underwater archeology
  • a 3d point cloud is difficult to use directly for analysis and comparison of object shapes
  • volumetric shape models can address some of this difficulties
  • superquadric volumetric shape models can be automatically recovered from a point cloud
  • superquadric models offer an abstraction level suitable for reasoning about a scene

Intro

  • stereo and photogrammetry in 1960s George Bass
  • 3D available only after the field work was already finished
  • documentation performed mostly manually - imperfections
@ddksr
ddksr / dis.py
Created February 1, 2015 11:38
DIS script
#!/usr/bin/env python3
"""DIS slovarček api
Usage:
dis [options] [QUERY [QUERY ...]]
Options:
-h --help Show this screen.
--version Show version.
"""
@ddksr
ddksr / termania.py
Created February 1, 2015 11:38
Termania script
#!/usr/bin/env python3
"""Termania api
Usage:
termania [options] [QUERY [QUERY ...]]
Options:
-h --help Show this screen.
--version Show version.
"""
@ddksr
ddksr / pjson.py
Last active August 29, 2015 14:13
Script for parsing jsons in bash
#!/bin/python
"""
pjson - simple script for parsing jsons with python
Json input needed with stdin.
Usage:
pjson key1 key2 key3 ...
Examples: