Skip to content

Instantly share code, notes, and snippets.

View patkub's full-sized avatar
💭
🤔

Patrick Kubiak patkub

💭
🤔
View GitHub Profile
@patkub
patkub / Cheese Fix
Last active November 26, 2017 21:44
Cheese Fix
Exec=bash -c "export LIBV4LCONTROL_FLAGS=1 && cheese"
DBusActivatable=false
@patkub
patkub / responsive-img
Last active September 28, 2017 19:54
img responsive up to max size
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
img {
width: 100%;
height: auto;
max-width: 460px;
max-height: 345px;
@patkub
patkub / cnc1.nc
Created August 18, 2017 14:12
gcode
* Turret No. : 1 Diameter :.500 IN ENDMILL
*
* WARNING - New Code Generator File
* Check that all machine parameters have been correctly set, including
* 3D Rapid, Resolved Rapid, Absolute/Incremental, Arc Centres
* Ensure that word addresses and formats have been set correctly
* especially those for linear and angular axis movements
*
* These comments may be removed when Code Generator file is finished
*
zeroltetmo:/ $ dumpsys package com.resound.smart
Activity Resolver Table:
Non-Data Actions:
android.intent.action.MAIN:
3db0a91 com.resound.smart/com.gn.SplashActivity filter 4c0ddbe
Action: "android.intent.action.MAIN"
Category: "android.intent.category.LAUNCHER"
AutoVerify=false
Receiver Resolver Table:
@patkub
patkub / mms
Created March 26, 2017 04:33
mms backup
> find / -name "*mmssms*"
/data/data/com.google.android.gms/databases/icing_mmssms.db
/data/data/com.google.android.gms/databases/icing_mmssms.db-journal
/data/user_de/0/com.android.providers.telephony/databases/mmssms.db
/data/user_de/0/com.android.providers.telephony/databases/mmssms.db-journal
@patkub
patkub / settings list global [relevant]
Last active March 15, 2017 03:38
PureNexus settings dump
shamu:/sdcard/Download $ settings list global
power_menu_actions=power|reboot|screenshot|screenrecord|silent
Call formatDoc("C:\Users\patri\Documents\test.docx")
Function formatDoc(file)
'''
''' Format Word Document
'''
'''
''' Settings
'''
@patkub
patkub / Flash Kernel Stock Voltages.md
Last active October 25, 2016 19:38
Flash Kernel settings on nexus6

Flash Kernel 3.10.104-FLASH-1.3

Mhz,mV
300,680
422,700
652,730
729,740
883,760
960,830

@patkub
patkub / app.js
Created July 7, 2016 22:16
mdl ngRoute fix
var app = angular.module('app', []);
app.run(function ($scope, $timeout) {
$scope.$on('$viewContentLoaded', ()=> {
$timeout(() => {
componentHandler.upgradeAllRegistered();
})
})
});
@patkub
patkub / materialize_masonry_fix.js
Last active June 14, 2018 06:56
Make masonry compatible with materializecss' material box. Masonry requires imagesLoaded.
var msnry, openIMG;
imagesLoaded(grid, function() {
// init Isotope after all images have loaded
var $container = $('#grid').masonry({
itemSelector: '.grid-item',
columnWidth: '.grid-sizer',
percentPosition: true
});