Skip to content

Instantly share code, notes, and snippets.

@qbit
qbit / snap.pub
Created January 30, 2017 13:34
PGP sig for snap's public key (new gpg key)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
untrusted comment: github.com/qbit/snap public key
RWQVGN6sUjQQA5uYpANGLLKQMAERZ43otLePFSVqNFGGtf/qBez7G1WU
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJYj0CJAAoJECeRYKsb4SNrwRQQAMNAk7l5F0W5KyR8FfPfcu2X
qk6o7nXdSWThXZpKb+0gR1jvZNTnboXaUU8MAiyDG7/UmV3pACNiztgrxENpLKJp
m0rWUE/uQTKya/mdJ7bDrfE8h/1pPUj1vOTRg0cEYBbMV2f9LyiiKEruMPoIAcO4
@qbit
qbit / keybase.snap.sig
Created January 30, 2017 13:39
Keybase sig for snap's public key
BEGIN KEYBASE SALTPACK SIGNED MESSAGE. kXR7VktZdyH7rvq v5wcIkHbsHnI3cK pnp15H6RdCHeGu9 39jurSSzVgREF4M PtQQl2KupUhfCV4 pkM7lolQY55JbaH fcVB8NqEcqnbhGB 1Qws7IAetxrx3e0 Tl5Dn41ztEQZyWR GjJSKjGFo81XMmz zHeU3lVkpKDaRwF ADjsfKgSVDXwNLj yaYM6vfMtyt7qvV bUFi78jxKbD2PgJ zT37YRpmgzcw4Id LVik1pgUAP4PWQ1 ZkaC0PQbLIJS16r JawGuLAtWKgGcAd SHEIqw6ngBqhWJ9 NX3OEwtE68nHYJL EGfvtNeKgS7i5Gw O4gta1iBojbB4i3 oNejdbsDGYiRvgj fkXXAR8IQido4lk tXLGo5FiAOdR0wX 26gJr8VTXULcWfb 8b30E3bBWn48MpC WbdXPLekvv4tNIr i4. END KEYBASE SALTPACK SIGNED MESSAGE.
@qbit
qbit / sctd
Created February 4, 2017 00:57
Shell script daemon for sct
#!/bin/sh
S=4500
INC=2
SCT=/usr/local/bin/sct
DEBUG=false
if [ ! -e "$SCT" ]; then
echo "Please install sct!"
exit 1;
@qbit
qbit / reclaimWindows10.ps1
Last active March 12, 2017 15:00 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@qbit
qbit / electrong.cloc
Created October 23, 2017 21:53
66846bff975f92dd721d5ca29f332edf3795f1c0
100 files
200 files
300 files
400 files
500 files
600 files
700 files
800 files
900 files
1000 files
---------------------------------------------------------------------------------------
Language files blank comment code
---------------------------------------------------------------------------------------
C 16045 1151514 1394479 6409501
C++ 9027 380730 428645 2129520
C/C++ Header 12480 401032 766593 2026578
Perl 4122 157859 208622 982209
HTML 903 33457 6243 471775
Bourne Shell 1298 62248 76580 469701
Markdown 259 46737 0 402916
@qbit
qbit / comparison.md
Created October 24, 2017 01:05
Comparison of chromium+electron and OpenBSD src trees.

Electron

-----------------------------------------------------------------------------------
Language                         files          blank        comment           code
-----------------------------------------------------------------------------------
C++                                312           9711           4385          46244
Markdown                           513          18985              0          43674
JavaScript                         199           2979           1012          22966
C/C++ Header                       337           5855           4674          19227
Objective C++                       47           1573            713           6642
@qbit
qbit / chromium.cloc
Created October 24, 2017 20:44
61.0.3163.100
209497 text files.
189366 unique files.
55583 files ignored.
20 errors:
Line count, exceeded timeout: ./base/metrics/field_trial_unittest.cc
Line count, exceeded timeout: ./chrome/browser/chromeos/file_manager/file_tasks_unittest.cc
Line count, exceeded timeout: ./chrome/browser/policy/policy_browsertest.cc
Line count, exceeded timeout: ./chrome/browser/printing/cloud_print/privet_http_unittest.cc
Line count, exceeded timeout: ./chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
Line count, exceeded timeout: ./components/drive/service/drive_api_service.cc
diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c
index f3622017830..97b21f01e58 100644
--- a/usr.bin/tmux/cmd-set-option.c
+++ b/usr.bin/tmux/cmd-set-option.c
@@ -254,6 +254,7 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item)
if (strcmp(name, "monitor-silence") == 0)
alerts_reset_all();
if (strcmp(name, "window-style") == 0 ||
+ strcmp(name, "window-inactive-style") == 0 ||
strcmp(name, "window-active-style") == 0) {
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Device name: ren
Device ID: EVKTGGMDSY
Device key: tCIl B3j7 CsXe 9FxW pXHW 2kRp iZ1Q Cmmq PB2m s8EQ sdA
Device name: nuc
Device ID: HWXYJTRKSW
Device key: aLCp +f3N Z6OT Cxvm 4DPo TTj5 ODyB actd tWQZ hfle Bnc