Skip to content

Instantly share code, notes, and snippets.

@ruselknow
ruselknow / createS3Bucket.sh
Created October 17, 2019 22:59
localstack.yml
aws --endpoint-url=http://localhost:4572 s3 mb s3://demo-bucket
aws --endpoint-url=http://localhost:4572 s3api put-bucket-acl --bucket demo-bucket --acl public-read
aws --endpoint-url="http://localhost:4572" s3 ls
@ruselknow
ruselknow / README.md
Created October 17, 2019 22:36 — forked from crypticmind/README.md
Setup lambda + API Gateway using localstack
@ruselknow
ruselknow / docker.sh
Last active October 17, 2019 22:09
docker commands
#stop all containers:
docker kill $(docker ps -q)
#remove all containers
docker rm $(docker ps -a -q)
#remove all docker images
docker rmi $(docker images -q)
#remove all docker volumes
@ruselknow
ruselknow / code.sh
Created October 15, 2019 08:14
vs code cli
code -n [open new instance]
code -r [reuse instance]
code -folder path [open folder]
code -file path [open file]
@ruselknow
ruselknow / posh-git.ps1
Last active November 25, 2018 15:34
Install posh-git to PowerShell
PowerShellGet\Install-Module posh-git -Scope CurrentUser
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm
Import-Module posh-git
Add-PoshGitToProfile
@ruselknow
ruselknow / gist:6c45658c36af72e06960
Created February 17, 2015 09:14
ubuntu server gui install
sudo apt-get install ubuntu-desktop
sudo apt-get install gnome-desktop-environment
For KDE change gnome-desktop-environment to kubuntu-desktop.
For XFCE enter xubuntu-desktop.
@ruselknow
ruselknow / base64
Last active December 21, 2016 18:59
using System;
using System.IO;
using System.Text;
using System.Web;
using System.Web.Mvc;
namespace SomeNamespace.Controllers
{
public class ImagesController : Controller
{
@ruselknow
ruselknow / gist:2519678
Created April 28, 2012 15:00
Create class by name
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Derived
{