Skip to content

Instantly share code, notes, and snippets.

View mayrund's full-sized avatar

May run mayrund

View GitHub Profile
#SSAS snippet
=dateadd("q",datepart("q",today())-1,CDate("1/1/" & today().year))
@mayrund
mayrund / loadWeb.html
Created April 25, 2015 23:58
Load site external
<html>
<head>
</head>
<body>
<form name="search" action="loadWeb.php" method="post">
<input type="text" name="search" />
<input type="submit" value="Go!" />
</body>
</html>
<item>
<name>Swap Control and Command keys</name>
<identifier>private.swap_control_and_command</identifier>
<autogen>__KeyToKey__KeyCode::CONTROL_L,KeyCode::COMMAND_R</autogen>
<autogen>__KeyToKey__KeyCode::TAB, ModifierFlag::COMMAND_R,KeyCode::TAB, ModifierFlag::CONTROL_L</autogen>
</item>
@mayrund
mayrund / tricks-n-tips
Created April 7, 2015 15:15
Linux tricks
Repeat the previous line: !!
@mayrund
mayrund / gist:d91886a9d834a57b1562
Last active August 29, 2015 14:14
FW & Webmin IP alteration
sudo nano /etc/iptables.up.rules
sudo iptables-restore /etc/iptables.up.rules
sudo nano /etc/webmin/miniserv.conf
sudo service webmin restart
@mayrund
mayrund / check network speed
Last active December 26, 2015 01:48
Check network speed against cachefly without writing data to physical drive.
linux: wget http://cachefly.cachefly.net/100mb.test -O /dev/null
osx: curl -L -o /dev/null http://cachefly.cachefly.net/100mb.test $ dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync