Skip to content

Instantly share code, notes, and snippets.

# download some random files from github
import app_fota
from misc import Power
fota = app_fota.new()
fota.download('https://raw.githubusercontent.com/Python-World/python-mini-projects/refs/heads/master/projects/AudioBook/Audio-book.py', '/usr/f.py') # Download
# fota.set_update_flag() # Set update flag
# Power.powerRestart() # Restart
@gprossliner
gprossliner / sp_histogram.sql
Last active August 27, 2019 13:18
sp_histogram: A helper SP to create dynamic histograms
/****** Object: StoredProcedure [dbo].[sp_histogram] Script Date: 27.08.2019 15:14:14 ******/
DROP PROCEDURE [dbo].[sp_histogram]
GO
/****** Object: StoredProcedure [dbo].[sp_histogram] Script Date: 27.08.2019 15:14:14 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
@gprossliner
gprossliner / BasicOAuth2HttpModule.cs
Created July 10, 2019 13:59
HttpModule to implement /api calls with primitive OAuth2 Autentication Flow (authorize and access_token with predefined client_id, client_secret)
using System;
using System.Collections.Specialized;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Web;
namespace BasicOAuth2HttpModule {
/*