Skip to content

Instantly share code, notes, and snippets.

View ojczeo's full-sized avatar
🖖
awesoming stuff

ojczeo

🖖
awesoming stuff
View GitHub Profile
// ==UserScript==
// @name Busuu - Mute answers' SFXs
// @namespace http://tampermonkey.net/
// @version 1.0
// @author @ojczeo https://github.com/ojczeo
// @description Busuu - mute answers' SFXs
// @match https://www.busuu.com/dashboard
// @icon https://www.google.com/s2/favicons?sz=64&domain=busuu.com
// @license GNU GPLv3
// ==/UserScript==
@ojczeo
ojczeo / index.js
Last active August 25, 2023 03:19
audiowaveform for lambda - https://github.com/bbc/audiowaveform
// install first binaries from http://ffxsam.s3.amazonaws.com/public/audiowaveform-lambda.zip
// @author Andrzej Ojczenasz https://github.com/ojczeo
// @version '1.0.0'
'use strict';
process.env.PATH = process.env.PATH + ':' + process.env.LAMBDA_TASK_ROOT + '/bin';
function getExtension(filename) {
var ext = path.extname(filename||'').split('.');
return ext[ext.length - 1];
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@ojczeo
ojczeo / patch-edid.md
Created April 9, 2016 11:29 — forked from ejdyksen/patch-edid.md
A script to fix EDID problems on external monitors in Mac OS. Source: http://embdev.net/topic/284710

patch-edid.rb

A script to fix EDID problems on external monitors in Mac OS.

  1. Connect the problem monitor.

  2. Download this script into your /System/Library/Displays/Overrides (note: this file is only writeable by root, so some commands require sudo).

// Block Grid
// Technique adapted from Foundation 5 for Bootstrap 3.
// https://github.com/zurb/foundation/blob/f755d8704123f86c281ede0b171881e2672f150d/scss/foundation/components/_block-grid.scss
// Original LESS Version by Christopher Mitchell (https://gist.github.com/ChrisTM)
// Converted to SCSS by Rasmus Jürs (https://github.com/Jursdotme)
// https://gist.github.com/Jursdotme/67abe379d4a357233d3c
// https://gist.github.com/juukie/bcd1ef59ba6dd62ce968#file-block-grid-sass
[class*="block-grid-"]