Skip to content

Instantly share code, notes, and snippets.

View imrvelj's full-sized avatar
Undefined is not a function

Ivan Mrvelj imrvelj

Undefined is not a function
View GitHub Profile
@imrvelj
imrvelj / install_intelr_graphic_linux_firmware.sh
Created October 20, 2017 11:40 — forked from zas/install_intelr_graphic_linux_firmware.sh
Fix "W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1.bin for module i915_bpo" (Ubuntu 16.04, kernel 4.4)
#!/bin/bash
cd
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2 && \
tar xvjf sklgucver61.tar.bz2 && cd skl_guc_ver6_1/ && sudo ./install.sh
cd
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/kbldmcver101.tar.bz2 && \
# Variables
set $mod Mod4
set $ws1 "1: "
set $ws2 "2: "
set $ws3 "3: "
set $ws4 "4: "
set $ws5 "5: "
set $ws6 "6: "
set $ws7 "7: "
[<16.04]
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make;
sudo apt update; sudo apt install ubuntu-make; umake web firefox-dev;
@imrvelj
imrvelj / hp_kaby_sky.sh
Created June 26, 2017 11:15
A script that determines what your course of action should be with the newly discovered HyperThreading bug.
#!/usr/bin/perl
# Copyright 2017 Uwe Kleine-König
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by the
# Free Software Foundation.
open(my $cpuinfo, "</proc/cpuinfo") or die "failed to open cpuinfo\n";
my $cpunum, $vendor, $family, $model, $stepping, $microcoderev, $hyperthreading;
Los Brito - El 4 5 6 ( watch?v=P2vDc7WxFs0 )
Skitz Ft. Buggsy - Born Inna System
Chick Corea and Gary Burton - Crystal Silence ( watch?v=p99xxR_2FdY )
PLUSTWO - Stop fantasy (1983)
DRS - This Ain't Love feat Calibre [Official Video]
OSHUN - Sango
Children Of Zeus - Still Standing (feat. DRS) (Lenzman Remix) (Official Video)
L' Entourloop - Time to Grow (feat. Gavlyn)
Archy Marshall - The Sea Liner MK 1
Little Richard - Hurry Sundown
When returned from a TransitionHookFn or TransitionStateHookFn, these values alter the running Transition:
False: the transition will be cancelled.
TargetState: the transition will be redirected to the new target state.
Promise: the transition will wait for the promise to resolve or reject. (see below)
If the promise is rejected (or resolves to false), the transition will be cancelled
If the promise resolves to a TargetState, the transition will be redirected
If the promise resolves to anything else, the transition will resume
Anything else: the transition will resume
@imrvelj
imrvelj / arch-linux-install
Created May 24, 2017 09:16 — forked from binaerbaum/arch-linux-install
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swiss-french keymap
export LD_PRELOAD="libpthread.so.0 libGL.so.1" /
export __GL_THREADED_OPTIMISATIONS=1 /
export __GL_SYNC_TO_VBLANK=0 /
export __GL_YIELD=USLEEP
https://bks8e8d1i9x4w4ks.v1.p.beameio.net
@imrvelj
imrvelj / .babelrc
Created March 20, 2017 14:44 — forked from JamieMason/.babelrc
Tree-Shaking with Babel 6, Webpack 2, and React.
{
"presets": [
["es2015", {
"es2015": {
"loose": true,
"modules": false
}
}], "react"
]
}