It is not obvious how to delete all files (including sub-folders) if you read AWS CLI S3 documentation. But there is a trick by using AWS S3 sync command cd ANY_EMPTY_FOLDER_ON_YOU_COMPUTER aws s3 sync . s3://YOUR-BUCKET-NAME –delete Be careful! This effectively will empty your AWS S3 Bucket completely. You can do the same for nestedContinue reading “How to delete all files from S3 Bucket by using command line”
Author Archives: Konstantin Vlasenko
AWS re:Invent Feature Request
Recently, I went to AWS re:Invent 2018 for the second time. My first time was back in 2014 (when AWS Lambda was introduced). This time I decided to go to Las Vegas with my wife. So I did purchased a guest pass to AWS re:Play event. re:play itself was great. Highly recommend to attend itContinue reading “AWS re:Invent Feature Request”
AWS Lambda errors you don’t want to see
Just want to make a not for myself regarding the errors you might get in case of AWS outage or service degradation. It is what we got on June 22, 2017. We currently do not have sufficient capacity in the region you requested. { “errorMessage”: “We currently do not have sufficient capacity in the regionContinue reading “AWS Lambda errors you don’t want to see”
Microsoft Graph API: “Insufficient privileges to …” DELETE a Group
Recently, had a task to DELETE an Azure AD Group by using application client credentials. Custom application were registered in Azure AD. All possible permission were assigned to the application But the DELETE https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/group_delete request failed anyway with the error below { “error”: { “code”: “Authorization_RequestDenied”, “message”: “Insufficient privileges to complete the operation.”, “innerError”: { “request-id”:Continue reading “Microsoft Graph API: “Insufficient privileges to …” DELETE a Group”
Silent IIS UrlRewrite, ARR and FARM provisioning by #PowerShell
Recently, I had the task to run several fitnesse instances in on the single AWS EC2 instance. The requirement was what each fitnesse instance should be accessible trough port 80 (HTTP). IIS as reverse proxy came to the rescue. But there were one more requirement – IIS Reverse Proxy configuration should be automated. Here >> konstantinvlasenko/IISContinue reading “Silent IIS UrlRewrite, ARR and FARM provisioning by #PowerShell”
Silent install IIS UrlRewrite and ARR by #PowerShell
Create-Item c:/msi -Type Directory Invoke-WebRequest ‘http://download.microsoft.com/download/C/F/F/CFF3A0B8-99D4-41A2-AE1A-496C08BEB904/WebPlatformInstaller_amd64_en-US.msi’ -OutFile c:/msi/WebPlatformInstaller_amd64_en-US.msi Start-Process ‘c:/msi/WebPlatformInstaller_amd64_en-US.msi’ ‘/qn’ -PassThru | Wait-Process cd ‘C:/Program Files/Microsoft/Web Platform Installer’; .\WebpiCmd.exe /Install /Products:’UrlRewrite2,ARRv3_0′ /AcceptEULA /Log:c:/msi/WebpiCmd.log
Change local administrator password by command line
([ADSI]”WinNT://localhost/Administrator, user”).psbase.Invoke(“SetPassword”, ‘{PASSWORD}’)
How to stream video from Raspberry Pi camera and watch it live
sudo modprobe bcm2835-v4l2 cvlc v4l2:///dev/video0 –v4l2-width 1920 –v4l2-height 1080 –v4l2-chroma h264 –sout ‘#standard{access=http,mux=ts,dst=0.0.0.0:12345}’ source: http://raspberrypi.stackexchange.com/questions/23182/how-to-stream-video-from-raspberry-pi-camera-and-watch-it-live
Prepare your Amazon Linux for Sencha ExtJS 6.0 development
install unzip install java download ExtJS 6.0 GPL download SenchaCMD 6.0 unzip SenchaCMD unzip ExtJS 6.0 install SenchaCMD logout/login sudo yum install unzip sudo yum install java-1.7.0-openjdk curl http://cdn.sencha.com/ext/gpl/ext-6.0.0-gpl.zip -o ext-6.0.0-gpl.zip curl http://cdn.sencha.com/cmd/6.0.0.202/no-jre/SenchaCmd-6.0.0.202-linux-amd64.sh.zip -o SenchaCmd-6.0.0.202-linux-amd64.sh.zip unzip SenchaCmd-6.0.0.202-linux-amd64.sh.zip unzip ext-6.0.0-gpl.zip ./SenchaCmd-6.0.0.202-linux-amd64.sh Apache proxy for sencha app watch sudo yum -y install httpd sudo service httpd startContinue reading “Prepare your Amazon Linux for Sencha ExtJS 6.0 development”
Howto register AWS SAML metadata in SimpleSAMLphp
There is the page Configuring a Relying Party and Adding Claims. It explains how to get AWS metadata https://signin.aws.amazon.com/static/saml-metadata.xml Go to you SimpleSAMLphp Federation tab Click on XML to simpleSAMLphp metadata converter link Copy content of https://signin.aws.amazon.com/static/saml-metadata.xml Paste it into Metadata parser window. Click Parse button. Copy Converted metadata content Paste into Noteapd Add Auth Procc Filter (mentioned at https://groups.google.com/forum/#!topic/simplesamlphp/AgHEy-5vHdA) ‘authproc’ =>Continue reading “Howto register AWS SAML metadata in SimpleSAMLphp”