Skip to content

Instantly share code, notes, and snippets.

View ChiranjeeviAdi's full-sized avatar

Chiranjeevi ChiranjeeviAdi

View GitHub Profile
@ChiranjeeviAdi
ChiranjeeviAdi / .env
Last active September 3, 2024 15:34
SFTP - Transfer file to server using fastapi
HOST=
USERNAME=
PASSWORD=
WRITE_PATH=folder_writable_path/
API_ENDPOINT=
@ChiranjeeviAdi
ChiranjeeviAdi / media-convertor.png
Last active September 20, 2021 05:23
AWS Architecture - Elastic Media Convertor to convert the mov,avi,mp4 updated videos into streamable video , along with thumbnail
media-convertor.png
@ChiranjeeviAdi
ChiranjeeviAdi / app.js
Last active March 12, 2018 17:24
Angularjs Directive For Displaying an Image Overlay
var app = ng.module('app', []);
app.directive("overlay", function($rootScope) {
return {
restrict: 'AE',
replace: true,
templateUrl: 'app/modules/layout/views/overlay.html',
link: function(scope, element, attrs){
$rootScope.overLayImage=attrs.image;
$rootScope.showoverlay = false;
}
@ChiranjeeviAdi
ChiranjeeviAdi / dbconnect.php
Last active November 1, 2024 17:04
(Datatables) Server Side Pagination using PHP,MYSQL,Jquery
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "testusersdb";
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
// set the PDO error mode to exception
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);