Skip to content

Instantly share code, notes, and snippets.

View Manjit2003's full-sized avatar
🇮🇳
Bhartiya

Manjeet Pardeshi Manjit2003

🇮🇳
Bhartiya
View GitHub Profile
setTimeout(function() {
function getAllModules() {
return new Promise((resolve) => {
const id = _.uniqueId("fakeModule_");
window["webpackJsonp"](
[],
{
[id]: function(module, exports, __webpack_require__) {
resolve(__webpack_require__.c);
}
@amazingandyyy
amazingandyyy / golang-deploy-to-aws-ec2.md
Last active February 22, 2023 04:30
Some useful commmands you will need to build your goloang binary and deploy to aws-ec2

Some useful commmands you will need to build your goloang binary and deploy to aws-ec2

build golang

$ GOOS=linux GOARCH=amd64 go build -o [binary-name]
  • type go env to check your environment variables
  • GOOS stands for Go OS, depends on what ec2 machine you rent, you might have different os setting
  • GOARCH stands for Go Archetecture
  • -o only allowed when compiling a single package, define the name of output file
@0xjac
0xjac / private_fork.md
Last active April 27, 2025 12:31
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git