Skip to content

Instantly share code, notes, and snippets.

View atiq-cs's full-sized avatar
💭
Head's on the cloud

Atiq Rahman atiq-cs

💭
Head's on the cloud
View GitHub Profile
@atiq-cs
atiq-cs / choco-batch-install-upgrade.ps1
Last active February 8, 2021 20:20
choco install upgrade in batch commands
# moved to https://github.com/atiq-cs/Scripts-And-Utilities/wiki/choco-batch-install-or-upgrade
@atiq-cs
atiq-cs / choco_install_default_location.log
Created August 4, 2018 21:54
No matter what CL option we are trying install is going to default location
PS > choco install googlechrome -ia "'INSTALLFOLDER=D:\PFiles_x64\choco\chrome'" -y
Chocolatey v0.10.11
Installing the following packages:
googlechrome
By installing you accept licenses for the packages.
Progress: Downloading GoogleChrome 68.0.3440.8400... 100%
GoogleChrome v68.0.3440.8400 [Approved]
googlechrome package files install completed. Performing other installation steps.
WARNING: Unable to find the architecture of the installed Google Chrome application
@atiq-cs
atiq-cs / choco_install_uninstall.log
Last active December 16, 2018 04:05
Choco successful operation log
# Even though it does not say so, it does install to proper location
$ choco install keepass -ia "'/DIR=D:\PFiles_x64\choco\keepass'"
Chocolatey v0.10.11
Installing the following packages:
keepass
By installing you accept licenses for the packages.
Progress: Downloading keepass.install 2.39.1... 100%
Progress: Downloading keepass 2.39.1... 100%
keepass.install v2.39.1 [Approved]
@atiq-cs
atiq-cs / choco_errors.log
Created August 4, 2018 21:35
Chocolatey package install errors
$ choco uninstall pdftk-server
Chocolatey v0.10.10
Uninstalling the following packages:
pdftk-server
pdftk-server v2.02
WARNING: pdftk-server has already been uninstalled by other means.
Running auto uninstaller...
Skipping auto uninstaller - The uninstaller file no longer exists. ""C:\Program Files (x86)\PDFtk Server\unins000.exe""
pdftk-server has been successfully uninstalled.
@atiq-cs
atiq-cs / mvc-ef-db-demo.log
Created July 6, 2018 19:50
MVC with EF SQL DB hello world demo
$ dotnet ef -v migrations add InitialCreate
Using project 'D:\git_ws\net-core-demos\P2_MVC_SQLDB\P2_MVC_SQLDB.csproj'.
Using startup project 'D:\git_ws\net-core-demos\P2_MVC_SQLDB\P2_MVC_SQLDB.csproj'.
Writing 'D:\git_ws\net-core-demos\P2_MVC_SQLDB\obj\P2_MVC_SQLDB.csproj.EntityFrameworkCore.targets'...
dotnet msbuild /target:GetEFProjectMetadata /property:EFProjectMetadataFile=C:\Users\atiqc\AppData\Local\Temp\tmp8E9B.tmp /verbosity:quiet /nologo D:\git_ws\net-core-demos\P2_MVC_SQLDB\P2_MVC_SQLDB.csproj
Writing 'D:\git_ws\net-core-demos\P2_MVC_SQLDB\obj\P2_MVC_SQLDB.csproj.EntityFrameworkCore.targets'...
dotnet msbuild /target:GetEFProjectMetadata /property:EFProjectMetadataFile=C:\Users\atiqc\AppData\Local\Temp\tmp90FD.tmp /verbosity:quiet /nologo D:\git_ws\net-core-demos\P2_MVC_SQLDB\P2_MVC_SQLDB.csproj
dotnet build D:\git_ws\net-core-demos\P2_MVC_SQLDB\P2_MVC_SQLDB.csproj /verbosity:quiet /nologo
Build succeeded.
@atiq-cs
atiq-cs / mysql_install.log
Created June 29, 2018 02:21
A choco install attempt for MySQL (Community Server) 5.7.18 on 2018-06-28
C:> choco install mysql
Chocolatey v0.10.11
Installing the following packages:
mysql
By installing you accept licenses for the packages.
Progress: Downloading mysql 5.7.18... 100%
mysql v5.7.18 [Approved]
mysql package files install completed. Performing other installation steps.
Get-BinRoot is going to be deprecated in v1 and removed in v2. It has been replaced with Get-ToolsLocation (starting with v0.9.10), however many packages no longer require a special separate directory since package folders no longer have versions on them. Some do though and should continue to use Get-ToolsLocation.
@atiq-cs
atiq-cs / gradle build.log
Last active June 28, 2018 22:28
First time spring hello world build log with gradle 2018-06-28
$ Write-Host $Env:Path
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\WINDOWS\System32\OpenSSH;D:\PFiles_x64\choco\Node;D:\PFiles_x64\choco\Node\;D:\PFiles_x64\choco\git\cmd;D:\PFiles_x64\choco\jdk10\bin;D:\PFiles_x64\PT\gradle\bin;D:\PFiles_x64\PT\spring\bin;
$ java --version
java 10.0.1 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
$ spring --version
Spring CLI v2.0.3.RELEASE
@atiq-cs
atiq-cs / mp4 media info.log
Created June 28, 2018 20:08
Media info for an mpeg 4 file that Windows Movies and TV always fail to play last update 2018-06-28
General
Complete name : S01E01.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/mp41)
File size : 278 MiB
Duration : 59 min 45 s
Overall bit rate : 651 kb/s
Movie name : Open TV Media
Description : Open TV Media
@atiq-cs
atiq-cs / UpdateTradeACKNAKDB.cs
Created June 11, 2018 03:04
A database OOP Questions from Amitav vai
/*
CREATE TABLE [tSWIFT_History_Trades](
[Id] [bigint] IDENTITY(1,1) NOT NULL,
[BatchId] [varchar](25) NOT NULL,
[TradeId] [varchar](25) NOT NULL,
[Account] [varchar](25) NULL,
[TranType] [varchar](50) NULL,
[TradeDate] [int] NULL,
[SettleDate] [int] NULL,
[Exch] [varchar](50) NULL,
@atiq-cs
atiq-cs / Topo.cs
Created May 30, 2018 00:51
Example Topological Sort
Class GraphDemo {
void DFS(int u) {
if (HasCycle)
return ;
if (color[u] == GRAY) {
HasCycle = true;
return ;
}
if (color[u] == BLACK)
return ;