Skip to content

Instantly share code, notes, and snippets.

Tom Vincent tlvince

Block or report user

Report or block tlvince

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tlp-stat
--- TLP 0.9.903 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
View tlp-config
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
CPU_SCALING_GOVERNOR_ON_AC=performance
CPU_SCALING_GOVERNOR_ON_BAT=powersave
CPU_HWP_ON_AC=balance_performance
View 4.10.10-oops-i915.txt
Apr 17 17:26:56 arch kernel: BUG: unable to handle kernel paging request at 0000000000002d00
Apr 17 17:26:56 arch kernel: IP: gen8_emit_flush_render+0xba/0x2e0 [i915]
Apr 17 17:26:56 arch kernel: PGD 0
Apr 17 17:26:56 arch kernel:
Apr 17 17:26:56 arch kernel: Oops: 0002 [#1] PREEMPT SMP
Apr 17 17:26:56 arch kernel: Modules linked in: bbswitch(O) msr fuse ctr ccm snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic mousedev ipt_REJECT nf_reject_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack iptable_filter arc4 iwlmvm snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core iTCO_wdt snd_soc_sst_match mac80211 i915 iTCO_vendor_support intel_rapl snd_soc_core x86_pkg_temp_thermal snd_compress snd_pcm_dmaengine drm_kms_helper intel_powerclamp ac97_bus nls_iso8859_1 coretemp iwlwifi nls_cp437 snd_hda_intel snd_hda_codec vfat kvm_intel snd_hda_core fat snd_hwdep cfg80211 drm snd_pcm kvm evdev intel_gtt input_leds snd_timer irqbypass syscopyarea sysfillrect snd intel_c
@tlvince
tlvince / _README.md
Created Apr 1, 2016 — forked from schickling/_README.md
Script to import and export docker-machine configurations to sync between hosts/collaborators
View _README.md

docker-machine import/export

Script to import and export docker-machine configurations to sync between hosts/collaborators

Export (on host A)

$ docker-machine ls
NAME       ACTIVE   DRIVER         STATE     URL                            SWARM   DOCKER    ERRORS
dev        -        digitalocean   Running   tcp://example.com:2376                 v1.10.1
View aggressive-couch.txt
❯ couchdb
Apache CouchDB 1.6.1 (LogLevel=info) is starting.
[error] [<0.118.0>] ** Generic server couch_stats_aggregator terminating
** Last message in was collect_sample
** When Server state == {{-576460746473524,#Ref<0.0.1.205>},1000}
** Reason for termination ==
** {badarg,[{ets,match_object,[stats_hit_table,'_'],[]},
{ets,tab2list,1,[{file,"ets.erl"},{line,710}]},
{couch_stats_aggregator,handle_call,3,
[{file,"couch_stats_aggregator.erl"},
View keybase.md

Keybase proof

I hereby claim:

  • I am tlvince on github.
  • I am tlvince (https://keybase.io/tlvince) on keybase.
  • I have a public key whose fingerprint is 6234 A657 E1D2 EB06 32AF 3E62 AB18 4CDB E6AE ACDE

To claim this, I am signing this object:

@tlvince
tlvince / index.html
Created Oct 16, 2015
Reduced test case for angular-eha.couchdb-auth
View index.html
<html ng-app="test">
<body>
<script src="https://cdn.jsdelivr.net/angularjs/1.4.6/angular.min.js"></script>
<script src="https://cdn.jsdelivr.net/pouchdb/4.0.0/pouchdb.min.js"></script>
<script src="https://cdn.jsdelivr.net/localforage/1.2.2/localforage.min.js"></script>
<script src="https://cdn.jsdelivr.net/lodash/3.5.0/lodash.min.js"></script>
<script src="https://cdn.rawgit.com/nolanlawson/pouchdb-authentication/master/dist/pouchdb.authentication.min.js"></script>
<script src="https://cdn.jsdelivr.net/restangular/1.4.0/restangular.min.js"></script>
<script src="https://cdn.rawgit.com/ocombe/angular-localForage/master/dist/angular-localForage.min.js"></script>
<script src="https://cdn.rawgit.com/eHealthAfrica/angular-eha.couchdb-auth/master/dist/couchdb-auth.min.js"></script>
@tlvince
tlvince / clone-ddocs.sh
Created Sep 25, 2015
Clone all design docs of a given CouchDB DB. Requires node and couchapp on PATH
View clone-ddocs.sh
#!/usr/bin/env bash
set -euo pipefail
url=${1:-}; [[ $url ]] || { echo "$0 http://couchdb.example.com/db" && exit 1; }
curl $url'/_all_docs?startkey="_design/"&endkey="_design/\uffff"' | \
node -pe "JSON.parse(require('fs').readFileSync('/dev/stdin')).rows.map(function(row){return row.id}).join('\n')" | \
while read ddoc; do couchapp clone "$url/$ddoc"; done
View index.html
<!DOCTYPE html>
<html ng-app="app">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>angular-pouchdb-firefox</title>
</head>
<body>
<div ng-controller="AppCtrl as ctrl">
<pre ng-bind="ctrl.info | json"></pre>
@tlvince
tlvince / gist:b0714b8fe271efe08d42
Created May 23, 2015
Digikam OS X pkg v5: tables view crash
View gist:b0714b8fe271efe08d42
Application: digiKam (digikam), signal: Segmentation fault: 11
(lldb) process attach --pid 3285
Process 3285 stopped
* thread #1: tid = 0x17cf4d, 0x00007fff84c26902 libsystem_kernel.dylib`__wait4 + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff84c26902 libsystem_kernel.dylib`__wait4 + 10
libsystem_kernel.dylib`__wait4:
-> 0x7fff84c26902 <+10>: jae 0x7fff84c2690c ; <+20>
0x7fff84c26904 <+12>: movq %rax, %rdi
0x7fff84c26907 <+15>: jmp 0x7fff84c21c78 ; cerror
0x7fff84c2690c <+20>: retq
You can’t perform that action at this time.