Skip to content

Instantly share code, notes, and snippets.

View kumar-rajeswaran's full-sized avatar
🎯
Focusing

Kumar kumar-rajeswaran

🎯
Focusing
View GitHub Profile
@kumar-rajeswaran
kumar-rajeswaran / xrandr.sh
Created October 13, 2023 10:00 — forked from debloper/xrandr.sh
Add system unrecognized but monitor supported resolution in X
#!/bin/bash
# Copyright (c) 2021 Soumya Deb <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@kumar-rajeswaran
kumar-rajeswaran / 0.SOLID
Last active October 4, 2023 10:03
SOLID in Software engineering
SOLID is an acronym representing five principles
that are intended to guide software design and make software
more understandable, flexible, and maintainable.
These principles are widely used in object-oriented programming,
and they form the foundation of good software design practices.
@kumar-rajeswaran
kumar-rajeswaran / react-node-aws-s3-presigned-url.js
Created February 6, 2023 10:28 — forked from katendeglory/react-node-aws-s3-presigned-url.js
How to PUT/GET Files to aws S3 directly from a React Client using a generated pre-signed url endpoint
// NODE-JS SIDE------------------------------------------------------------------------------------
const AWS = require('aws-sdk');
const s3 = new AWS.S3();
AWS.config.update({
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY
});
@kumar-rajeswaran
kumar-rajeswaran / get_token.cs
Created January 21, 2023 17:27 — forked from shravanthium/get_token.cs
C# Sample for OAuth 2.0 Access Token Request
using System.Net;
using System.Text;
using System;
using System.IO;
namespace OAuth2Password
{
static class Program
{
static void Main(string[] args)
{
@kumar-rajeswaran
kumar-rajeswaran / countries.json
Created March 31, 2022 06:25 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
SQL Server 2017
----------------
Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83
Developer - 22222-00000-00000-00000-00000
Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B
Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89
Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC
https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/
@kumar-rajeswaran
kumar-rajeswaran / IndianStates.json
Created August 11, 2020 18:34 — forked from vrajroham/IndianStates.json
Indian States and Union Territories in JSON format
{
"AP":"Andhra Pradesh",
"AR":"Arunachal Pradesh",
"AS":"Assam",
"BR":"Bihar",
"CG":"Chhattisgarh",
"Chandigarh":"Chandigarh",
"DN":"Dadra and Nagar Haveli",
"DD":"Daman and Diu",
"DL":"Delhi",
{
"countries": [
{
"country": "Afghanistan",
"states": ["Badakhshan", "Badghis", "Baghlan", "Balkh", "Bamian", "Daykondi", "Farah", "Faryab", "Ghazni", "Ghowr", "Helmand", "Herat", "Jowzjan", "Kabul", "Kandahar", "Kapisa", "Khost", "Konar", "Kondoz", "Laghman", "Lowgar", "Nangarhar", "Nimruz", "Nurestan", "Oruzgan", "Paktia", "Paktika", "Panjshir", "Parvan", "Samangan", "Sar-e Pol", "Takhar", "Vardak", "Zabol"]
},
{
"country": "Albania",
"states": ["Berat", "Dibres", "Durres", "Elbasan", "Fier", "Gjirokastre", "Korce", "Kukes", "Lezhe", "Shkoder", "Tirane", "Vlore"]
},