Skip to content

Instantly share code, notes, and snippets.

@ebela
ebela / mostmatch.php
Created August 17, 2021 19:11
compare string with array of strings
<?php
$categroies = array("O","OR","J","JD","JS","H","HD","HDKO");
var_dump($categroies);
sort($categroies);
@ebela
ebela / child.sh
Last active August 17, 2021 17:41
bash script kill the process with the next pid
#!/bin/bash
echo "Child start with pid $$"
while true
do
echo "in while...."
echo -n "..tic."
sleep 2;
echo "..toc.."
//hungarian bank account number format 3x8 number.
function bank_account_number_check($iban) {
function checkblock($num) {
//echo 'check '.$num.PHP_EOL;
$multitable=[9,7,3,1];
$sum = 0;
for ( $i=0; $i<strlen($num);$i++) {
@ebela
ebela / wpclasses.txt
Created August 13, 2016 14:43 — forked from awakekat/wpclasses.txt
Wordpress Style Classes
# Body Styles
.rtl {}
.home {}
.blog {}
.archive {}
.date {}
.search {}
.paged {}
.attachment {}
.error404 {}
@ebela
ebela / reclaimWindows10.ps1
Created August 13, 2016 14:38 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Forked from http://pastebin.com/gQxCUkLP
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Original Version: 1.4, 2016-01-16
# Tweaked based on personal preferences for @alirobe 2016-03-23 - v1.4.1
# NOTE: MAKE SURE YOU READ THIS SCRIPT CAREFULLY BEFORE RUNNING IT + ADJUST COMMENTING AS APPROPRIATE
# This script will reboot your machine when completed.
##########
# Ask for elevated permissions if required