Skip to content

Instantly share code, notes, and snippets.

View cvetan's full-sized avatar

Cvetan Šimšić cvetan

View GitHub Profile
@cvetan
cvetan / instructions.md
Last active August 5, 2021 14:40
Using pkexec in XFCE

There instructions were first published in debian forum, here http://forums.debian.net/viewtopic.php?f=16&t=73497 but I added them here for easier access

Add policykit file

  • Add XML file on the path /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
    <action id="org.freedesktop.policykit.pkexec.run-synaptic">
@cvetan
cvetan / instructions.txt
Created November 4, 2018 21:52
Gnome 3 fix for nvidia-graphics
# file /etc/environment
CLUTTER_VBLANK=none
# max performance command
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1 > /dev/null
# fix tearing command
nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
# multiple monitors example
@cvetan
cvetan / serbia_zip_codes.csv
Created December 4, 2017 14:13 — forked from nebjak/serbia_zip_codes.csv
List of Serbia zip codes with cities in CSV
zip_code city
11000 Beograd
11010 Beograd Vozdovac
11030 Beograd Čukarica
11050 Beograd Zvezdara
11060 Beograd Palilula
11070 Novi Beograd
11080 Beograd Zemun
11090 Beograd Rakovica
11130 Kaluđerica
@cvetan
cvetan / serbia_zip_codes2.json
Created December 4, 2017 14:12 — forked from nebjak/serbia_zip_codes2.json
List of Serbia zip codes with cities in form of one JSON object per line
{ "city" : "Beograd", "_id" : 11000 }
{ "city" : "Beograd Vozdovac", "_id" : 11010 }
{ "city" : "Beograd Čukarica", "_id" : 11030 }
{ "city" : "Beograd Zvezdara", "_id" : 11050 }
{ "city" : "Beograd Palilula", "_id" : 11060 }
{ "city" : "Novi Beograd", "_id" : 11070 }
{ "city" : "Beograd Zemun", "_id" : 11080 }
{ "city" : "Beograd Rakovica", "_id" : 11090 }
{ "city" : "Kaluđerica", "_id" : 11130 }
{ "city" : "Rušanj", "_id" : 11194 }