Skip to content

Instantly share code, notes, and snippets.

View TheArhaam's full-sized avatar
🥼
EL. PSY. KONGROO.

Arhaam Patvi TheArhaam

🥼
EL. PSY. KONGROO.
View GitHub Profile
const matic_raw = require("./maticjs")
const config = require("./config.json")
const ext_mngr = require("./maticjs/lib/common/ExitManager")
// console.log(ext_mngr)
const root_chain = require("./maticjs/lib/root/RootChain.js")
// console.log(root_chain)
const { default: ExitManager } = require("./maticjs/lib/common/ExitManager")
const { default: RootChain } = require("./maticjs/lib/root/RootChain.js")
const params = {
network: "testnet",
@sujeetkv
sujeetkv / npm-with-private-repo.md
Last active March 19, 2025 12:14
Use private repo as npm dependency.

Use private repo as npm dependency

Create Deploy-Token (Access-Token) for particular private repo and use it in dependency as following:

{
    "dependencies": {
        "package-name": "git+https://<username>:<access_token>@github.com/username/repository#{branch|tag}"
    }
}
@tony-gutierrez
tony-gutierrez / AWS_Single_LetsEncrypt.yaml
Last active March 7, 2024 11:29
AWS Elastic Beanstalk .ebextensions config for single instance free SSL using letsencrypt certbot and nginx. http://bluefletch.com/blog/domain-agnostic-letsencrypt-ssl-config-for-elastic-beanstalk-single-instances/
# Dont forget to set the env variable "certdomain", and either fill in your email below or use an env variable for that too.
# Also note that this config is using the LetsEncrypt staging server, remove the flag when ready!
Resources:
sslSecurityGroupIngress:
Type: AWS::EC2::SecurityGroupIngress
Properties:
GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
IpProtocol: tcp
ToPort: 443
@harto
harto / before.js
Created April 20, 2016 17:33
Mocha before() & beforeEach() execution order with nested describe()
'use strict';
describe('mocha before hooks', function () {
before(() => console.log('*** top-level before()'));
beforeEach(() => console.log('*** top-level beforeEach()'));
describe('nesting', function () {
before(() => console.log('*** nested before()'));
beforeEach(() => console.log('*** nested beforeEach()'));
it('is a nested spec', () => true);
});