Skip to content

Instantly share code, notes, and snippets.

😑
Expressionless master

erm3nda erm3nda

😑
Expressionless master
Block or report user

Report or block erm3nda

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
@erm3nda
erm3nda / install_opencv.sh
Created Aug 6, 2019
Install opencv in Ubuntu or Debian
View install_opencv.sh
######################################
# INSTALL OPENCV ON UBUNTU OR DEBIAN #
######################################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |------------------------------------------------------|
# | OS | OpenCV | Test | Last test |
# |------------------|--------------|------|-------------|
# | Ubuntu 18.04 LTS | OpenCV 3.4.2 | OK | 18 Jul 2018 |
# | Debian 9.5 | OpenCV 3.4.2 | OK | 18 Jul 2018 |
@erm3nda
erm3nda / source_to_pdf.sh
Created Jul 26, 2019
Convert source code files to single PDF with all code
View source_to_pdf.sh
#!/bin/bash
### this script needs:
### python module pygmentize, wkhtmltopdf and ghostscript
### works for any source code, just modify -l python, and any .py reference to your choice
# Change this to the repository directory
REPOSITORY=$1
# Iterate over the repository
View reboot_to_linux.cmd
@echo off
:: This program needs the following things to work
:: sed with some dll dependancies -> https://mega.nz/#!IRY0hCCK!tV5vZd3rsmTf6ZCrx-JfP8MpN9ztYfDHxtXVdDBbtbw
:: LinuxFS by Paragon -> http://dl.paragon-software.com/demo/linuxwin_trial.msi :: Trial just slow down speed, is OK for us
:: You have to boot into Linux and save current grubenv as grubenv.bak, otherwise grub will load saved one
"C:\Program Files (x86)\Paragon Software\LinuxFS for Windows\extmounter" /mount disk1 D:
@erm3nda
erm3nda / rebootw_to_windows.sh
Last active Jul 16, 2019
Reboot Linux and start custom entry from GRUB menu one-time
View rebootw_to_windows.sh
#!/bin/bash
# read your current table running `efibootmgr`
# set index 0001 as next_entry, check yours
efibootmgr -n 0001
reboot
@erm3nda
erm3nda / clipboard.js
Created Jul 2, 2019
Clipboard Javascript
View clipboard.js
// Compatible for most of the current browsers
function copyText(text){
function selectElementText(element) {
if (document.selection) {
var range = document.body.createTextRange();
range.moveToElementText(element);
range.select();
} else if (window.getSelection) {
var range = document.createRange();
View wpa_cli_wps_automation.sh
#!/bin/bash
# automate WPS Push Button using wpa_supplicant
# see also: https://w1.fi/cgit/hostap/plain/wpa_supplicant/README-WPS
# make this script run at boot-time
INHIBIT="/etc/wpa_supplicant/wps_inhibit"
if [ -e $INHIBIT ]; then
exit 0
fi
@erm3nda
erm3nda / customizedVerticalSwipe.reg
Created Jun 14, 2019 — forked from antys10g/customizedVerticalSwipe.reg
Dell m4700 alps touchpad verticall swipe customization
View customizedVerticalSwipe.reg
;On Dell precision m4700 there is alps touch pad with driver version : 10.1207.101.109,
;which supports up to three fingers, but doesn't support windows precision(type) touch pad
;(replacing with generic alps precision drivers don't work),
;multiswipe.com doesn't work either,
;so there is no way of customizing gestures in convenient way.
;
;In my case I wanted to achieve three fingers horizontal swipe to change between
;window10 virtual desktops like Ctrl+Windows+Arrow Left/Right do.
;
;If you want to customize your alps touch pad 2 finger vertical swipe
@erm3nda
erm3nda / Gestures_2-3TapClick.reg
Created Jun 13, 2019 — forked from MerlinSmiles/Gestures_2-3TapClick.reg
Dell ALPS - Registry hack to add right-click as a 2 finger tap and middle-click as a 3 finger tap gesture
View Gestures_2-3TapClick.reg
Windows Registry Editor Version 5.00
; 2-tap right click and 3-tap middle click
; current user
[HKEY_CURRENT_USER\SOFTWARE\Alps\Apoint\Gesture]
"2TapSupport"=dword:00000003
"2TapShow"=dword:00000009
"Enable2Tap"=dword:00000001
"2TapFunc"=dword:0000000d
View disable-windows-gamedvr.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR]
"AllowGameDVR"=dword:00000000; set to 1 or delete this entry to re-enable it.
@erm3nda
erm3nda / virtualbox_physical_disk.md
Last active Jun 14, 2019
VirtualBox create vmdk disk from physical drive
View virtualbox_physical_disk.md

For Windows

VBoxManage internalcommands createrawvmdk -filename "C:\Users<user_name>\VirtualBox VMs<VM_folder_name><file_name>.vmdk" -rawdisk \.\PhysicalDrive0

For Linux

VBoxManage internalcommands createrawvmdk -filename "</path/to/file>.vmdk" -rawdisk /dev/sda

To access other partitions, just append -partitions 1,2 to the command

You can’t perform that action at this time.