Skip to content

Instantly share code, notes, and snippets.

View ApoTheOne's full-sized avatar

Anurag ApoTheOne

  • Dehradun, Uttarakhand, India
View GitHub Profile
@ApoTheOne
ApoTheOne / Publish command for .Net core (dotnet core) website or api
Last active August 30, 2018 07:53
.NET Core CLI Command to generate executable files for Windows & Ubuntu
dotnet publish -c Release -r win10-x64 -o "C:/Publish"
dotnet publish -c Release -r ubuntu.16.10-x64
@ApoTheOne
ApoTheOne / Issue with downloading Vs Code debugger or omnisharp required for debugging C# in VS code - mostly behind corporate firewall
Last active August 30, 2018 07:52
OmniSharp for Windows and Debugger failed at stage install packages while Debugging .Net core project in Visual Studio Code
Error:
```
Installing C# dependencies...
Platform: win32, x86_64
Downloading package '.NET Core Debugger (Windows / x64)' Retrying from 'https://vsdebugger.blob.core.windows.net/coreclr-debug-1-14-7/coreclr-debug-win7-x64.zip'
Installing package '.NET Core Debugger (Windows / x64)'
Failed at stage: installPackages
Error: end of central directory record signature not found
@ApoTheOne
ApoTheOne / NodeJs commands
Last active May 31, 2021 13:00
NodeJs commands and IQ
node -v
node -p 'process.versions.v8'
node --v8-options | grep "in progress"
node --v8-options | less
node --v8-options | grep gc
// Manually call GC : Handle with care as it will pause all executions so use it wisely.
node --expose-gc -e "gc()"
node
@ApoTheOne
ApoTheOne / docker
Last active April 28, 2018 09:21
Docker commands
//Install Docker on Linux
wget -qO- https://get.docker.com/ | sh
//Update Docker in Windows
Install-Module DockerProvider -Force
Install-Package Docker -ProviderName DockerProvider -Force
//sudo service docker restart
// run a container,if image not present in cache then it gets "docker pull" automatically
@ApoTheOne
ApoTheOne / MD
Created April 10, 2018 10:01
Mark down examples from Github
# Heading 1 :fire:
## Heading 2 :smile:
#### heading 4 :+1:
Now some text with **bold** word.
Again some text with __bold__ word.
Now some text with *italic* word.
Again some text with _italic_ word.
Combining **bold and _italic_ words**.
@ApoTheOne
ApoTheOne / cloudSettings
Last active October 7, 2018 05:07
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-07T05:07:16.718Z","extensionVersion":"v3.1.2"}
@ApoTheOne
ApoTheOne / books.md
Last active July 19, 2019 06:16
Books for software engineers

Books for software engineers

  • Clean Code: A Handbook of Agile Software Craftsmanship
  • The Clean Coder: A Code of Conduct for Professional Programmers
  • The Pragmatic Programmer: From Journeyman to Master
  • The Phoenix Project: A Novel about IT, DevOps, and Helping your Business Win
  • Design Patterns: Elements of Reusable Object-Oriented Software
  • The Imposter's Handbook: A Primer for Self-Taught Programmers
  • Refactoring: Improving the Design of Existing Code
@ApoTheOne
ApoTheOne / Interesting reads
Last active October 11, 2018 15:48
Interesting reads
**Tuva**:
https://www.microsoft.com/en-us/research/project/tuva-richard-feynman/?from=http%3A%2F%2Fresearch.microsoft.com%2Ftuva
Stanford New: Fixed versus growth intelligence mindsets: It's all in your head, Dweck says
https://news.stanford.edu/pr/2007/pr-dweck-020707.html
http://antirez.com/news/112
https://hackernoon.com/learn-to-code-in-2018-get-hired-and-have-fun-along-the-way-b338247eed6a
@ApoTheOne
ApoTheOne / Regex websites
Created August 30, 2018 12:27
Regex websites
https://regexper.com
http://www.regexlib.com/
# Resolve error - Profile xyz not found with Serverless when using assumed roles and MFA
## While deploying using serverless:
`sls deploy -v --aws-profile assumeRole`
## Error description:
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
---