Skip to content

Instantly share code, notes, and snippets.

View srikantpatnaik's full-sized avatar

Srikant srikantpatnaik

  • Mumbai
  • 18:17 (UTC -12:00)
View GitHub Profile
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
@srikantpatnaik
srikantpatnaik / dmesg
Created October 12, 2018 18:49
dmesg BT-enabled kernel 4.19rc7 for RDP ThinBook
[ 0.000000] Linux version 4.19.0-rc7-iitb-beta (sri@home) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)) #1 SMP Fri Oct 12 19:03:44 IST 2018
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.19.0-rc7-iitb-beta root=UUID=c954d0a4-11bd-4ff8-ab01-2ef8a259f6cf ro quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000008efff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000008f000-0x000000000008ffff] ACPI NVS
@srikantpatnaik
srikantpatnaik / config
Created October 12, 2018 18:47
config file 4.19-rc7 with support for Bluetooth
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.19.0-rc7 Kernel Configuration
#
#
# Compiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=50400
@srikantpatnaik
srikantpatnaik / config
Created October 12, 2018 03:03
Config file of Kernel 4.19rc7 used in RDP ThinBook
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.19.0-rc7 Kernel Configuration
#
#
# Compiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=50400
@srikantpatnaik
srikantpatnaik / lsmod
Created September 18, 2018 13:19
RDP_11_inch_cherrytrail_laptop_with_r8723bs_bytcrrt5651
Module Size Used by
cmac 16384 0
rfcomm 90112 14
bnep 24576 2
hci_uart 98304 1
btqca 16384 1 hci_uart
btintel 24576 1 hci_uart
bluetooth 630784 40 btqca,btintel,hci_uart,bnep,rfcomm
ecdh_generic 24576 1 bluetooth
serdev 20480 1 hci_uart
@srikantpatnaik
srikantpatnaik / dmesg
Created September 18, 2018 13:18
RDP_11_inch_cherrytrail_laptop_with_r8723bs_bytcrrt5651-dmesg
[ 0.000000] Linux version 4.18.5 (isla@pc1070) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)) #2 SMP Tue Aug 28 01:21:33 IST 2018
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.18.5 root=UUID=e4d5bae6-6a5c-4d6f-9325-736961d24c98 ro quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000008efff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000008f000-0x000000000008ffff] ACPI NVS
@srikantpatnaik
srikantpatnaik / syslog
Created September 18, 2018 13:08
RDP_11_inch_cherrytrail_laptop_with_r8723bs_bytcrrt5651
This file has been truncated, but you can view the full file.
Sep 18 07:01:11 rdp liblogging-stdlog: [origin software="rsyslogd" swVersion="8.24.0" x-pid="520" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Sep 18 07:01:11 rdp anacron[3777]: Job `cron.daily' terminated
Sep 18 07:01:11 rdp anacron[3777]: Normal exit (1 job run)
Sep 18 07:01:11 rdp systemd[1]: anacron.timer: Adding 4min 5.248809s random time.
Sep 18 07:02:05 rdp kernel: [34927.554753] evbug: Event. Dev: input4, Type: 2, Code: 0, Value: -3
Sep 18 07:02:05 rdp kernel: [34927.554765] evbug: Event. Dev: input4, Type: 2, Code: 1, Value: -1
Sep 18 07:02:05 rdp kernel: [34927.554771] evbug: Event. Dev: input4, Type: 0, Code: 0, Value: 0
Sep 18 07:02:05 rdp kernel: [34927.562891] evbug: Event. Dev: input4, Type: 2, Code: 0, Value: -6
Sep 18 07:02:05 rdp kernel: [34927.562903] evbug: Event. Dev: input4, Type: 2, Code: 1, Value: -3
Sep 18 07:02:05 rdp kernel: [34927.562909] evbug: Event. Dev: input4, Type: 0, Code: 0, Value: 0
@srikantpatnaik
srikantpatnaik / lcd-keypad.ino
Created January 2, 2017 05:17
Arduino code for lcd-keypad interfacing
#include <Keypad.h>
#include <LiquidCrystal.h>
#include <string.h>
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
char keys[4][4] = { //declare an array
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
@srikantpatnaik
srikantpatnaik / freedcam-wb1.log
Created September 29, 2016 15:25
Freedcam white balance test log on oneplus one
09-29 20:53:49.457 8289-8289/? I/art: Late-enabling -Xcheck:jni
09-29 20:53:49.492 8289-8295/? I/art: Debugger is no longer active
09-29 20:53:49.601 8289-8289/? I/InstantRun: Instant Run Runtime started. Android package is troop.com.freedcam, real application class is null.
09-29 20:53:49.722 8289-8289/? I/LoadedApk: No resource references to update in package common
09-29 20:53:49.723 8289-8289/? I/LoadedApk: No resource references to update in package com.cyngn.hexo
09-29 20:53:49.725 8289-8289/? I/LoadedApk: No resource references to update in package com.cyngn.hexo
09-29 20:53:49.884 8289-8289/? D/ActivityAbstract: createHandlers()
09-29 20:53:50.059 8289-8325/? V/RenderScript: 0x9ed46000 Launching thread(s), CPUs 4
09-29 20:53:50.079 8289-8325/? V/RenderScript: Successfully loaded runtime: libRSDriver_adreno.so
09-29 20:53:50.150 8289-8289/? D/ActivityFreeDcamMain: createHandlers()
@srikantpatnaik
srikantpatnaik / freedcam-dng.log
Created September 29, 2016 14:46
Freedcam dng test log on oneplus one
09-29 20:13:00.069 17408-17408/troop.com.freedcam I/chatty: uid=10169(troop.com.freedcam) expire 96 lines
09-29 20:13:00.671 17408-17436/troop.com.freedcam I/chatty: uid=10169(troop.com.freedcam) expire 2 lines
09-29 20:13:01.018 17408-17444/troop.com.freedcam I/chatty: uid=10169(troop.com.freedcam) RenderThread expire 3 lines
09-29 20:13:02.231 17408-17462/troop.com.freedcam I/chatty: uid=10169(troop.com.freedcam) AsyncTask #4 expire 1 line
09-29 20:13:02.237 17408-17464/troop.com.freedcam I/chatty: uid=10169(troop.com.freedcam) AsyncTask #5 expire 3 lines
09-29 20:13:02.550 17408-17408/troop.com.freedcam I/chatty: uid=10169(troop.com.freedcam) expire 227 lines
09-29 20:13:02.686 17408-17408/troop.com.freedcam D/ParametersHandler: SetParametersToCam
09-29 20:13:02.693 17408-17408/troop.com.freedcam D/PictureFormatHandler: IsSupported:true
09-29 20:13:02.693 17408-17408/troop.com.freedcam D/AbstractParameterHandler: PictureFormatHandler load settings: pictureformat
09-29 20:13:02.693 17408-17408/troop.com.fre