Skip to content

Instantly share code, notes, and snippets.

View Igloczek's full-sized avatar

Bartek Igielski Igloczek

  • Bielsko-Biała, Poland
  • 09:31 (UTC +01:00)
  • X @igloczek
View GitHub Profile
@tkadlec
tkadlec / perf.js
Created April 23, 2015 11:54
Super simple example of adding perf timing to the page display during dev work
(function () {
var perfBar = function(budget) {
window.onload = function() {
window.performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {};
var timing = window.performance.timing,
now = new Date().getTime(),
output, loadTime;
@KamilBalwierz
KamilBalwierz / admin.sql
Last active August 29, 2015 14:16
Create admin user Magento
LOCK TABLES `admin_role` WRITE , `admin_user` WRITE;
SET @PASSWORD = "password";
SET @FIRSTNAME = "Firstname";
SET @LASTNAME = "Lastname";
SET @USERNAME = "myuser";
SET @EMAIL = "[email protected]";
SET @SALT = "rp";
SET @PASS = CONCAT(MD5(CONCAT( @SALT , @PASSWORD) ), CONCAT(":", @SALT ));
@nicktoumpelis
nicktoumpelis / repo-rinse.sh
Created April 23, 2014 13:00
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive