Skip to content

Instantly share code, notes, and snippets.

View mihai-vlc's full-sized avatar

Mihai Ionut Vilcu mihai-vlc

View GitHub Profile
@echo off
:: Created by: Shawn Brink
:: Created on: January 3rd 2017
:: Tutorial: https://www.tenforums.com/tutorials/73967-clock-taskbar-hide-show-seconds-windows-10-a.html
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V ShowSecondsInSystemClock /T REG_DWORD /D 1 /F
@mihai-vlc
mihai-vlc / install-pre-commit.sh
Created May 24, 2017 22:40 — forked from stefansundin/install-pre-commit.sh
Git pre-commit check to stop accidental commits to master and develop branches. There is also a variant with a core.whitespace check.
#!/bin/sh
# This gist contains pre-commit hooks to prevent you from commiting bad code or to the wrong branch.
# There are four variants that I have built:
# - pre-commit: stops commits to "master" and "develop" branches.
# - pre-commit-2: also includes a core.whitespace check.
# - pre-commit-3: the core.whitespace check and an EOF-newline-check.
# - pre-commit-4: only the core.whitespace check.
# Set desired version like this before installing:
# FILE=pre-commit
var $tempTextArea = $("<textarea>", { "class": 'RichEditor-tempTextArea', tabindex: -1 }).appendTo(document.body); $tempTextArea.focus(); $tempTextArea.remove();
/**
* Find comments elements on the page based on their content.
* @author Mihai Ionut Vilcu
* @date Apr 2016
*/
(function() {
findAllComments(/"slot".*global/, false);
function findAllComments(regex, log) {

BM Extender

BM functionality

  • sidebar menu
  • search functionality in the sidebar
  • fill the export input with some default value
  • action buttons with position fixed
  • highlight the current row in a table
  • keep the session active
  • small layout fixes
[Configuration]
InstallDir=c:\totalcmd
UseNewDefFont=0
firstmnu=2810
FirstTime=0
test=142
ShowHiddenSystem=2
UseLongNames=1
Small83Names=0
OldStyleTree=0
/**
* Search text in a dom structure and wrap the results with spans.
* @author Mihai Ionut Vilcu
* Oct 2015
*/
(function () {
/**
* Validates that the element has children and it's not in the banned list.
* @param {Node} el The element to be checked.
* @return {Boolean}

Semnarea unui certificat

cd /xampp/apache/bin
# 1. Generarea unei chei private
openssl genrsa -des3 -out server.key 1024
# 2. Generarea unui CSR (Certificate Signing Request)
openssl req -new -key server.key -config "C:\xampp\php\extras\openssl\openssl.cnf" -out server.csr
# 3. Stergere parola din cheie
copy server.key server.key.org

Find incorrect jquery selectors

input\[\w+(\$|\*|\^)='\w+(?!')\]?"

Useful VIM Tips

Configs

set backupdir=~/vimtmp,.
set directory=~/vimtmp,.