Skip to content

Instantly share code, notes, and snippets.

Mayrun mayrund

Block or report user

Report or block mayrund

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
mayrund / windows_must_have_apps
Last active Nov 17, 2015
# windows must have apps #
View windows_must_have_apps
# Generic
* Beyond Compare
* grepWin - find and replace tool
* BareTail - A free real-time log file monitoring tool
* TreeSize Free - Quickly Scan Directory Sizes and Find Space Hogs
* Lockhunter - release locked files
* CDBurnerXP - burn cd/dvd and create iso files
* VirtualCloneDrive - mount iso files
* WinRAR / 7zip
View flask new project
mkdir projectName
cd projectName
virtualenv --no-site-package venv
pip install flask
mkdir static
mkdir templates
mayrund / removeWord.js
Created Aug 4, 2015
remove text from json collection
View removeWord.js
function transform(data) {
// filter functions are passed the whole API response object
// you may manipulate or add to this data as you want
// query parameters exist in the global scope, for example:
// query.myparam == 'test'; // true
function removeWord(text, wordToRemove) {
text = text.replace(wordToRemove, '')
View scrapy new virtualenv
virtualenv --distribute venv
source venv/bin/activate
pip install scrapy-redis
git clone
cd scrapy-redis
python install
View ftp_brute_force.rb
require 'socket'
def tcpconnect(username, password)
temp_data = ''
s =$host, 21)
temp_data = s.gets
s.puts("USER #{username}\r\n")
View osx_cli_tricks
# list all open network connections by PID
lsof -i | grep -E "(LISTEN|ESTABLISHED)"
mayrund / Logwatch installation
Created Jul 10, 2015
Logwatch installation
View Logwatch installation
apt-get install logwatch
vim /etc/cron.daily/00logwatch
add this line:
/usr/sbin/logwatch --output mail --mailto --detail high
View Get first day of current quarter
#SSAS snippet
=dateadd("q",datepart("q",today())-1,CDate("1/1/" & today().year))
mayrund / loadWeb.html
Created Apr 25, 2015
Load site external
View loadWeb.html
<form name="search" action="loadWeb.php" method="post">
<input type="text" name="search" />
<input type="submit" value="Go!" />
View Karabiner Swap Control and Command Keys
<name>Swap Control and Command keys</name>
<autogen>__KeyToKey__KeyCode::TAB, ModifierFlag::COMMAND_R,KeyCode::TAB, ModifierFlag::CONTROL_L</autogen>
You can’t perform that action at this time.