Skip to content

Instantly share code, notes, and snippets.

View x4x's full-sized avatar
🐱
Focusing

x4x

🐱
Focusing
View GitHub Profile
@x4x
x4x / events2.py
Last active August 29, 2015 14:19
enhanced assotative event handler
#!/usr/bin/python2.7
# -*- coding: utf-8 -*-
class Handler(list):
"""minamal event hendler baste on a list
Usage:
def b(x):
print(x*2)
a= handler()
@x4x
x4x / keybase.md
Last active August 11, 2019 23:41
Keybase

Keybase proof

I hereby claim:

  • I am x4x on github.
  • I am x4x (https://keybase.io/x4x) on keybase.
  • I have a public key whose fingerprint is 3239 3F60 ED77 9078 0530 8EC0 CBA9 CFBE 763F 17A0

To claim this, I am signing this object:

@x4x
x4x / handler.cpp
Last active October 21, 2016 08:55
minimalistic list event handler in C++
/**
* minimalistic event handler
* @author x4x
* @version 0.2a
**/
#include <iostream>
using namespace std;
//#include <cstddef>
#include <stddef.h>
@x4x
x4x / GRUB-Reparatur-chroot.sh
Last active September 23, 2022 02:18
GRUB Reparatur chroot
#!/bin/bash
# different keymaps:
# /usr/share/keymaps/i386/
# /usr/share/kbd/keymaps/i386/
# /usr/share/X11/xkb/symbols/
#loadkeys de
setxkbmap de
@x4x
x4x / xubuntu-install.sh
Last active January 6, 2018 15:38
install my programes for Xubuntu
#!/bin/bash
sudo -s
apt-get update
apt-get upgrade -y
apt-get install grub -y
apt-get install build-essential git -y
apt-get install p7zip p7zip-full p7zip-rar -y
@x4x
x4x / uMatrix.txt
Created December 24, 2017 00:07
firefox uMatrix config
https-strict: behind-the-scene false
matrix-off: about-scheme true
matrix-off: behind-the-scene true
matrix-off: chrome-extension-scheme true
matrix-off: chrome-scheme true
matrix-off: localhost true
matrix-off: moz-extension-scheme true
matrix-off: opera-scheme true
matrix-off: wyciwyg-scheme true
referrer-spoof: behind-the-scene false
@x4x
x4x / BHsendDA.sh
Created February 7, 2018 09:46
Test for EVA700 Bayern/Hessen Network Protokoll
#!/bin/bash
# test for EVA700 Bayern/Hessen Protokoll
usage="$(basename "$0") [-h] [-c n] -- Bayern/Hessen Protokoll network test.\n
\n
where:\n
-h show this help text\n
-c run for number of counts"
# get parameters
@x4x
x4x / pipe_bash.sh
Last active June 21, 2018 09:18
a job queue in bash
#!/bin/bash
# Author: x4x
# Create a job queue for bash.
set -o errexit
set -o nounset
FIFO=/tmp/shfifo0
n=0
MARK='\033[0;35m'
@x4x
x4x / .env
Last active July 7, 2023 15:52 — forked from plajjan/docker-compose.yml
NIPAP docker compose
NIPAP_USERNAME=www
NIPAPD_PASSWORD=nipapP4ssw0rd
WWW_USERNAME=admin
WWW_PASSWORD=123456
POSTGRES_PASSWORD=S3cretDBPas5
@x4x
x4x / winbugfix-ADV200006.bat
Last active March 25, 2020 21:32
winbugfix-ADV200006
@echo OFF
rem fix for win bug https://portal.msrc.microsoft.com/en-us/security-guidance/advisory/adv200006
rem x4x 20200324
net stop webclient
sc config webclient start= disabled
rem disable prevew in explorer
REG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoReadingPane /t REG_DWORD /d 1 /F
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows" /v DisableATMFD /t REG_DWORD /d 1 /F