Skip to content

Instantly share code, notes, and snippets.

View oksourav's full-sized avatar
:octocat:

Sourav Kumar Dash oksourav

:octocat:
View GitHub Profile
@chranderson
chranderson / nvmCommands.js
Last active October 20, 2025 20:28
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@DavidDeSloovere
DavidDeSloovere / upload.cs
Created November 17, 2016 14:13
SFTP upload with SSH.NET
const string host = "domainna.me";
const string username = "chucknorris";
const string password = "norrischuck";
const string workingdirectory = "/highway/hell";
const string uploadfile = @"c:\yourfilegoeshere.txt";
Console.WriteLine("Creating client and connecting");
using (var client = new SftpClient(host, port, username, password))
{
client.Connect();
@frankdejonge
frankdejonge / example.php
Created November 11, 2014 20:31
AWS SDK v3 s3Client setup
<?php
$client = S3Client::factory([
'key' => '...',
'secret' => '...',
'region' => 'eu-west-1',
'version' => 'latest',
'debug' => true,
]);