Skip to content

Instantly share code, notes, and snippets.

View avinashkoyyana's full-sized avatar

avinash avinashkoyyana

View GitHub Profile
@ageorgios
ageorgios / broadlinkcodes.txt
Created April 23, 2019 19:03
Broadlink RM codes for Samsung TV
DUAL I II
TVIR0 = 26004600949312381238123812131213121312131213123812381238121312131213121312131213121312131213121312131213121312381238123812381238123812381238120005a40d0500000000000000000000000000000000
HDMI
TVIR1 = 26004600949312381238123812131213121312131213123812381238121312131213121312131238121312131213121312131213121312131238123812381238123812381238120005a40d0500000000000000000000000000000000
POWER?
TVIR2 = 26004600949312381238123812131213121312131213123812381238121312131213121312131213123812131213121312131213121312381213123812381238123812381238120005a40d0500000000000000000000000000000000
SLEEP TIMER
############## Configuration.yaml ###################
konnected:
access_token: !secret konnected_token
api_host: http://192.168.1.71:8123
devices:
- id: dc4ggggb4c4
binary_sensors:
- zone: 1
type: door
name: Front Door
@sidd607
sidd607 / price_tracker.py
Last active February 27, 2019 09:19
Tracks the profit/loss of cryptco currencies through koinex ticker API
#!/usr/bin/env python
"""
author: sidd607@gmail.com
version: 0.0.1
Reads the buy details from a csv file (coins.csv) and calculates the wallets profit
Uses Koinex API tracker
csv format
Coin,Date,Quantity,BuyPrice,Cost
import tensorflow.contrib.slim as slim
total_layers = 25 #Specify how deep we want our network
units_between_stride = total_layers / 5
def denseBlock(input_layer,i,j):
with tf.variable_scope("dense_unit"+str(i)):
nodes = []
a = slim.conv2d(input_layer,64,[3,3],normalizer_fn=slim.batch_norm)
nodes.append(a)
import tensorflow as tf
import numpy as np
import tensorflow.contrib.slim as slim
total_layers = 25 #Specify how deep we want our network
units_between_stride = total_layers / 5
def highwayUnit(input_layer,i):
with tf.variable_scope("highway_unit"+str(i)):
H = slim.conv2d(input_layer,64,[3,3])
import tensorflow as tf
import numpy as np
import tensorflow.contrib.slim as slim
total_layers = 25 #Specify how deep we want our network
units_between_stride = total_layers / 5
def resUnit(input_layer,i):
with tf.variable_scope("res_unit"+str(i)):
part1 = slim.batch_norm(input_layer,activation_fn=None)
@alysonla
alysonla / active-issues.sql
Last active September 19, 2023 11:21
Queries that power the open source section of the 2016 Octoverse report https://octoverse.github.com/2016/
-- Active issues
-- Count of total active issues in the specified time frame
-- Source: githubarchive public data set via Google BigQuery http://githubarchive.org/
SELECT
COUNT(DISTINCT JSON_EXTRACT_SCALAR(events.payload, '$.issue.id')) AS events_issue_count
FROM (SELECT * FROM TABLE_DATE_RANGE([githubarchive:day.],TIMESTAMP('2015-09-01'),TIMESTAMP('2016-08-31')))
AS events
-- 10,723,492 active issues
@tresf
tresf / CFG.html
Last active October 21, 2022 03:40
FGL Printing Examples
<F3>
<RC10,10>Serial Number = <VA1>
<RC60,10>Firmware = <VA7>
<RC110,10>Special Head = <VA18>
<RC160,10>Font File = <VA2>
<RC210,10>Printer Type = <VA11>
<RC260,10>DPI = <VA17>
<RC310,10>Expansion Mem = <VA50>
<RC360,10>Path Type = <VA19>
<RC410,10>Ticket Type = <VA13>
@arthurattwell
arthurattwell / dialog.html
Last active August 1, 2022 09:54
Google Sheets script to allow multi-select in cells with data-validation (adapted from https://www.youtube.com/watch?v=dm4z9l26O0I)
<div style="font-family: sans-serif;">
<? var data = valid(); ?>
<form id="form" name="form">
<? if(Object.prototype.toString.call(data) === '[object Array]') { ?>
<? for (var i = 0; i < data.length; i++) { ?>
<? for (var j = 0; j < data[i].length; j++) { ?>
<input type="checkbox" id="ch<?= '' + i + j ?>" name="ch<?= '' + i + j ?>" value="<?= data[i][j] ?>"><?= data[i][j] ?><br>
<? } ?>
<? } ?>
<? } else { ?>
@alirobe
alirobe / reclaimWindows10.ps1
Last active July 3, 2024 09:36
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###