Skip to content

Instantly share code, notes, and snippets.

View pramilgawande's full-sized avatar
🎯
Focusing

Pramil Gawande pramilgawande

🎯
Focusing
View GitHub Profile
#### Setup
- Dotnet 3.1
- https://dotnet.microsoft.com/download (SDK required for development)
- SQL Server Download links (minium sql express required)
- https://www.microsoft.com/en-gb/sql-server/sql-server-downloads
- https://www.sqlshack.com/how-to-install-sql-server-express-edition/ (How to install SQL Express)
- SQL Server 2019 Express Edition (English): (Short Direct Links)
- Basic (~249 MB): https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SQLEXPR_x64_ENU.exe
- Advanced (~790 MB): https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SQLEXPRADV_x64_ENU.exe
@pramilgawande
pramilgawande / YouTube_Video_ID_By_URL.js
Created September 22, 2021 07:56 — forked from deunlee/YouTube_Video_ID_By_URL.js
Get YouTube Video ID by URL (+ URL examples)
function getYouTubeVideoIdByUrl(url) {
const reg = /^(https?:)?(\/\/)?((www\.|m\.)?youtube(-nocookie)?\.com\/((watch)?\?(feature=\w*&)?vi?=|embed\/|vi?\/|e\/)|youtu.be\/)([\w\-]{10,20})/i
const match = url.match(reg);
if (match) {
return match[9];
} else {
return null;
}
}
Reference URL
https://jayden-chua.medium.com/setting-up-an-ftp-server-on-ubuntu-18-04-on-aws-79bd55ab32bb
Setup plain simple FTP
So assuming you already have have a working instance of the free tier EC2 instance on AWS, or some other cloud provider, let’s start.
1. Install vsftpd
Just install from apt-get on ubuntu with the following commands
$ sudo apt-get update && sudo apt-get install vsftpd
After the installation, the FTP server service should up and running so just check it with
@pramilgawande
pramilgawande / keepawake.ps1
Created December 5, 2022 15:09 — forked from jamesfreeman959/keepawake.ps1
A very simple PowerShell script to keep a Windows PC awake and make lync think the user is active on the keyboard
# Useful references:
#
# https://superuser.com/questions/992511/emulate-a-keyboard-button-via-the-command-line
# https://ss64.com/vb/sendkeys.html
# https://social.technet.microsoft.com/Forums/windowsserver/en-US/96b339e2-e9da-4802-a66d-be619aeb21ac/execute-function-one-time-in-every-10-mins-in-windows-powershell?forum=winserverpowershell
# https://learn-powershell.net/2013/02/08/powershell-and-events-object-events/
#
# Future enhancements - use events rather than an infinite loop
$wsh = New-Object -ComObject WScript.Shell
while (1) {