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 / 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;
[<16.04]
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make;
sudo apt update; sudo apt install ubuntu-make; umake web firefox-dev;
# 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: "
@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 && \
{
"Message": "An error has occurred.",
"ExceptionMessage": "An error occurred while updating the entries. See the inner exception for details.",
"ExceptionType": "System.Data.Entity.Infrastructure.DbUpdateException",
"StackTrace": " at System.Data.Entity.Internal.InternalContext.SaveChanges()\r\n at System.Data.Entity.Internal.LazyInternalContext.SaveChanges()\r\n at System.Data.Entity.DbContext.SaveChanges()\r\n at KODAKAPI.Controllers.KEX_ImagesController.DeleteKEX_Images(Int32 id)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellatio
{
"rulesDirectory": [
"dist/src"
],
"rules": {
"array-type": [true, "array"],
"arrow-return-shorthand": false,
"await-promise": false,
"adjacent-overload-signatures": false,
"align": [
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
https://www.youtube.com/watch?v=herNYSdJd0o&list=PL9dk_xtWpAkKs1-EKcvq-nKwdaaS-3czd
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce
sudo usermod -aG docker ${USER}
Flat Button
---
Height: 36dp
Minimum width: 88dp
Touch target height: 48dp
Corner radius: 2dp
Horizontal margin: 8dp
Horizontal padding: 8dp