Node version of Ngrok -> Surge

Getting started npm install -g surge surge -h Welcome to surge! (surge.sh) Login (or create surge account) by entering email & password. email: [email protected] password:***** Running as [email protected] project: /directory/project/ domain: test.surge.sh upload: [===========] 100% eta: 0.0s (4 files, 209007 bytes) CDN: [====================] 100% encryption: *.surge.sh, surge.sh (324 days) IP: […]

Running a Linux Commands on Start-Up

1. Overview In this tutorial, we’ll see how we can run a command or a script when a Linux system starts up. We’ll cover different methods using the rc.local file, cron jobs, and systemd services. 2. Classic Approach: rc.local File When we boot up a machine running Linux, the first […]

Correct Grub

Mx Linux issue, moving grub from USB to HDD hd0, hd1, (hd1,gpt1), (hd1,gpt2) etc… set root=(hd1,gpt) set prefix=(hd1,gpt)/boot/grub insmod normal normal Restart the machine, get into bash and: sudo update-grub sudo grub-install /dev/{nameOfThePartition} Note: /dev/sda – is the drive where you want your GRUB installed … mine was smthg like […]

Homestead.yaml

On Windows: — ip: “192.168.10.10” memory: 2048 cpus: 2 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys:     – ~/.ssh/id_rsa folders:     – map: C:\Users\Sergej\code       to: /home/vagrant/code       type: “nfs” sites:     – map: sample.test       to: /home/vagrant/code/sample/public     – map: test1.test […]

S3 Service

S3 Policy { “Version”: “2012-10-17”, “Statement”: [ { “Effect”: “Allow”, “Action”: “s3:*”, “Resource”: [ “arn:aws:s3:::domain.co.uk”, “arn:aws:s3:::domain.co.uk/*” ] }, { “Effect”: “Deny”, “NotAction”: “s3:*”, “NotResource”: [ “arn:aws:s3:::domain.co.uk”, “arn:aws:s3:::domain.co.uk/*” ] } ] } After attach to the user

SES Service

Policy { “Version”: “2012-10-17”, “Statement”: [ { “Sid”: “VisualEditor0”, “Effect”: “Allow”, “Action”: [ “ses:SendEmail”, “ses:SendRawEmail”, “ses:ListIdentities”, “ses:VerifyDomainIdentity”, “ses:GetIdentityVerificationAttributes”, “ses:DeleteIdentity”, “ses:GetIdentityVerificationAttributes”, “ses:VerifyEmailIdentity”, “ses:GetSendQuota” ], “Resource”: “*”, “Condition”: { “StringEquals”: { “ses:FromAddress”: “*@johntruslove.com” }, “ForAllValues:StringLike”: { “ses:Recipients”: [ “[email protected]” ] } } } ] } After creating , attach the user to […]

VB Basics

Some basics fidle on: jdoodle Imports System Public Class Test Shared Sub Main(ByVal args As String()) For Each arg As String In args Console.WriteLine(arg) Next arg Console.ReadLine() End Sub End Class Imports System Public Class Test Public Shared Sub Main(EventArgs as String() ) Dim x, y as Integer x = […]