Skip to content

Instantly share code, notes, and snippets.

View rexcze-zz's full-sized avatar

Jakub Bittner rexcze-zz

View GitHub Profile
dnf update -y firefox flash-plugin
#!/bin/bash
#This script needs to be run by root or with root privileges (which is far better)
#check distribution to use right tools
if [ -f /etc/redhat-release ]; then
PKG="rpm -qf"
else
PKG="dpkg -S"
fi
#!/usr/bin/ruby
require 'rubygems'
require 'nokogiri'
#require 'elasticsearch'
class Clanek
def initialize()
end
@rexcze-zz
rexcze-zz / 99-touchscreen.conf
Created October 4, 2015 20:43
/etc/X11/xorg.conf.d/
Section "InputClass"
Identifier "touchscreen"
#Driver "Synaptics"
Driver "wacom"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event8"
Option "Mode" "ABSOLUTE"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
@rexcze-zz
rexcze-zz / gist:fc67166e0fe3ef969e52
Last active August 29, 2015 14:24
Adobre reader wine
#install wine and others
sudo dnf install wine cabextract wget
#install winetricks
sudo wget http://winetricks.org/winetricks -O /usr/bin/
sudo chmod +x /usr/bin/winetricks
###ADOBE
wget https://ardownload2.adobe.com/pub/adobe/reader/win/11.x/11.0.00/cs_CZ/AdbeRdr11000_cs_CZ.exe
export WINEPREFIX="${HOME}/.reader"
@rexcze-zz
rexcze-zz / cz.ini
Last active August 29, 2015 14:15
rainloop czech
[LOGIN]
LABEL_EMAIL = "Email"
LABEL_LOGIN = "Login"
LABEL_PASSWORD = "Heslo"
LABEL_SIGN_ME = "Pamatuj si mě"
LABEL_VERIFICATION_CODE = "Ověřovací kód"
LABEL_DONT_ASK_VERIFICATION_CODE = "Don't ask for the code for 2 weeks"
BUTTON_SIGN_IN = "Přihlásit se"
TITLE_SIGN_IN_GOOGLE = "Přihlásit se pomocí Google"
TITLE_SIGN_IN_FACEBOOK = "Přihlásit se pomocí Facebook"
@rexcze-zz
rexcze-zz / gist:10293738
Last active August 29, 2015 13:58
docker xspice
#running
JOB=$( sudo docker run -d -p 5901 fedora20/kde Xspice --disable-ticketing --xsession /usr/bin/startkde :1 --port 5901)
PORT=$( sudo docker port $JOB 5901 | awk -F: '{ print $2 }')
remote-viewer spice://localhost:${PORT}
#run in commandline
sudo docker run -i fedora20/kde /bin/bash
#commit changes
sudo docker commit `sudo docker ps|grep "fedora20/kde:latest"|awk '{ print $1}'` fedora20/kde:latest
@rexcze-zz
rexcze-zz / vpnaddclient
Created April 4, 2013 15:14
openvpn client automatization script
#!/bin/bash
#autor j.bittner
set -e
CAHOME="/etc/openvpn/easy-rsa"
/bin/echo -en "Insert clients name. Format name.domain.tld \n"
read KLIENTNAME
/bin/echo -en "Insert VPN IP address of new client"
# Maintainer: Jakub Bittner
pkgname=SAC
pkgver=8.1
pkgrel=2
pkgdesc="eToken PKI client"
arch=('i686')
url="http://www.safenet.com"
license=('custom')
depends=('pcsclite')
makedepends=('libarchive>=2.4.12' 'unzip')
@rexcze-zz
rexcze-zz / gsbcheck.sh
Created May 24, 2012 17:37
bash google safebrowsing checkout
#!/bin/bash
#response
#200 - phising, malware, both
#204 - OK
#400 - bad request
#401 Not Authorized
#503 Service unavailable
#Content-Length: 7 = malware
#Content-Length: 8 = phishing