Skip to content

Instantly share code, notes, and snippets.

Graduating in 3... 2... 1...

Daniel Dušek dusekdan

Block or report user

Report or block dusekdan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dusekdan /
Created Apr 21, 2019
Scrapes the Mueller report from the wired's embedded article reader.
Wired Article with embeded web-reader:
How to use this script:
- Python3 & installed requests package (run: 'pip install requests')
- Create "report" folder in the same directory as this script
- run: 'python'
import os
import requests
dusekdan /
Created Mar 15, 2019
Sending Messages to Game Windows Through DirectInput and Win32API
import os
import ctypes
import win32api
w = WindowMgr()
PUL = ctypes.POINTER(ctypes.c_ulong)
class KeyBdInput(ctypes.Structure):
_fields_ = [("wVk", ctypes.c_ushort),
("wScan", ctypes.c_ushort),
dusekdan /
Created Mar 15, 2019
Snippet of python code to help working with Windows under win32gui.
import win32gui
import re
class WindowMgr:
"""Encapsulates some calls to the winapi for window management"""
def __init__ (self):
self._handle = None

Keybase proof

I hereby claim:

  • I am dusekdan on github.
  • I am dusekdan ( on keybase.
  • I have a public key ASAl4ufteQh0y0tFaOVvsM9y-yTQYwUVC2IH2D4H2USl4go

To claim this, I am signing this object:

View test-gist-hash.js
eval(document.domain); // oh shit
View LaravelSecurityHeadersMiddleware.php
namespace App\Http\Middleware;
use Closure;
class SecureHeaders
// Enumerate headers which you do not want in your application's responses.
// Great starting point would be to go check out @Scott_Helme's:
private $unwantedHeaderList = [
View SecurityHeadersConstant.php
header('X-XSS-Protection: 1; mode=block');
header('X-Content-Type: nosniff');
header('X-Frame-Options: DENY');
// If you have sensitive information in any of your URLS, use 'no-referrer' as a value instead)
header('Referrer-Policy: no-referrer-when-downgrade');
import sys
import os
import datetime
from shutil import copy
# By far the easiest way to get song duration is to use mutagen library. You
# can install it using PIP as follows:
# pip install mutagen
from mutagen.mp3 import MP3
from mutagen import MutagenError

Vypracování otázek z první přednášky

2.01: Sebereflexe a sebeřízení

2.01.1 Peníze:

  • A. Nefungují jako motivace, pouze jako faktor hygieny, tedy stimulace.
  • B. Jsou stimulantem, protože nemohou vyvolat pocit motivace.
  • C. Mohou motivovat i stimulovat, byť je schopnost motivace omezena.
  • D. Fungují jako nejsilnější faktor motivace i stimulace zároveň.

2.01.2 Ke které behaviorální kompetenci se vztahuje následující chování: "Kritika ho uráží anebo pobuřuje, na útoky reaguje agresivně, často reaguje emocionálně a nekontroluje se. Vůči ostatním je zaujatý.":

View SpotifyFix
# Spotify fix
You can’t perform that action at this time.