Skip to content

Instantly share code, notes, and snippets.

alex-eri alex-eri

Block or report user

Report or block alex-eri

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
View extend-trial-jetbrains-windows.bat
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
View cfg
switch0_cpu=6
switch0_vlan1="0"
switch0_vlan1_id=1
switch0_vlan2="1 2"
switch0_vlan2_id=2
switch0_vlan3="3 4"
switch0_vlan3_id=317
switch0_port0_pvid=${switch0_vlan1_id}
View grub kali live
menuentry 'Kali GNU/Linux' --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
echo 'Loading Linux ...'
linux /debian/kali/live/vmlinuz live-media-path=/debian/kali/live/ boot=live components splash username=root hostname=kali persistence
echo 'Loading initial ramdisk ...'
initrd /debian/kali/live/initrd.img
View pyqt wifi scan
from PyQt5.QtDBus import QDBusAbstractInterface, QDBusConnection
class Properties(QDBusAbstractInterface):
def __init__(self, parent=None):
super().__init__(parent.service(), parent.path(),
'org.freedesktop.DBus.Properties', parent.connection(), parent)
def __getitem__(self, name):
r = self.call('Get', self.parent().interface(), name)
if r:
View ls_ipk_kernel-module
ls kernel-module*
kernel-module-6lowpan-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk
kernel-module-8021q-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk
kernel-module-8139cp-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk
kernel-module-8139too-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk
kernel-module-act-mirred-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk
kernel-module-af-key-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk
kernel-module-ah4-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk
kernel-module-alx-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk
kernel-module-anubis-4.14.67-yocto-standard_4.14.67+git0+3435617380_084af9624d-r0_genericx86_64.ipk
View kavychki
postgres=# create function lala () returns numeric LANGUAGE plpgsql as $$ begin return 1; end;$$;
CREATE FUNCTION
postgres=# select lala();
lala
------
1
(1 row)
postgres=# select "lala"();
lala
@alex-eri
alex-eri / tun-ping-win.py
Created Jul 14, 2018 — forked from glacjay/tun-ping-win.py
Reading/Writing OpenVPN's TUN/TAP Device under Windows using Python.
View tun-ping-win.py
import _winreg as reg
import win32file
adapter_key = r'SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}'
def get_device_guid():
with reg.OpenKey(reg.HKEY_LOCAL_MACHINE, adapter_key) as adapters:
try:
@alex-eri
alex-eri / wkhtmltopdf-debian.patch
Created May 30, 2017
wkhtmltopdf debian for dpkg-buildpackage
View wkhtmltopdf-debian.patch
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..8737890
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,11 @@
+Wkhtmltopdf without X server
+----------------------------
+
+Due to its dependency on Qt-WebKit, wkhtmltopdf requires an X11 server to
View A minimal Gtk+ Webkit based browser with Inspector in Python
import sys
import os
from gi.repository import Gtk, Gdk, WebKit
class Browser(Gtk.Window):
def __init__(self, *args, **kwargs):
super(Browser, self).__init__(*args, **kwargs)
You can’t perform that action at this time.