Skip to content

Instantly share code, notes, and snippets.

View ertrzyiks's full-sized avatar

Mateusz Derks ertrzyiks

View GitHub Profile
@ertrzyiks
ertrzyiks / git.bat
Last active December 30, 2015 18:49
Windows Git bash walkaround when PATH variable is too long to keep more folders.
@echo off
SET TARGET_PATH=C:\Program Files (x86)\Git\bin\
call "%TARGET_PATH%%~n0" %*
@ertrzyiks
ertrzyiks / voteforboss
Last active August 29, 2015 13:56
Let players vote for boss!
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Vote for Boss"
#define VERSION "1.1.0"
#define AUTHOR "R3X"
#define BOSS_LIMIT_DURATION 2 * 60 * 60
new giBossLimitTime = 0;
@ertrzyiks
ertrzyiks / Dockerfile
Last active August 29, 2015 14:07
Docker and Vagrant configuration on OS X
FROM dockerfile/nginx
@ertrzyiks
ertrzyiks / index.jade
Last active November 10, 2018 21:41
Preview of angular material themes
each val in ['amber', 'blue-grey', 'blue','cyan', 'deep-orange', 'deep-purple', 'green', 'grey', 'indigo', 'light-blue-dark', 'light-green', 'lime', 'orange', 'pink', 'purple', 'red', 'teal', 'yellow']
md-toolbar('md-theme'=val)
h2.md-toolbar-tools
span=val
@ertrzyiks
ertrzyiks / gist:c8763605282348756249
Last active August 29, 2015 14:12
Karma, requirejs, phantom for CI
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine', 'requirejs'],
files: [
{pattern: 'src/app/**/*.js', included: false},
{pattern: 'test/**/*.spec.js', included: false},
'test/test-main.js'
@ertrzyiks
ertrzyiks / sync.js
Created April 30, 2015 10:26
Middleware for backbone.sync
define(['backbone'], function (Backbone) {
"use strict";
var middleware = [],
BackboneSync = Backbone.sync;
function passThroughMiddlewares(list, data, done) {
if (0 === list.length) {
done(null, data);
return;
@ertrzyiks
ertrzyiks / check_verification_code.sh
Created April 12, 2016 11:33
Authy sandbox phone verification check
#!/bin/sh
curl "http://sandbox-api.authy.com/protected/json/phones/verification/check?api_key=d57d919d11e6b221c9bf6f7c882028f9&verification_code=0000&phone_number=111-111-1111&country_code=1"
@ertrzyiks
ertrzyiks / README.md
Created February 10, 2021 14:54
Chrome extension that throws exception handled by Rollbar

It creates a browser action that throws an exception captured by Rollbar

  1. Go to extensions
  2. Enable developer mode
  3. Load this extensions from a folder