Skip to content

Instantly share code, notes, and snippets.

@AesisGit
AesisGit / offsec.md
Created September 9, 2023 18:38 — forked from jivoi/offsec.md
Penetrating Testing/Assessment Workflow

Penetrating Testing/Assessment Workflow & other fun infosec stuff

https://github.com/jivoi/pentest

My feeble attempt to organize (in a somewhat logical fashion) the vast amount of information, tools, resources, tip and tricks surrounding penetration testing, vulnerability assessment, and information security as a whole*

/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@AesisGit
AesisGit / GAS-spreadsheet-object-builder.js
Created March 25, 2021 23:06 — forked from rascode/GAS-spreadsheet-object-builder.js
Use this script to build a javascript object array from a Google Spreadsheet.
//display custom menu
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Export to JSON')
.addItem('Get Sheet Header', 'getSheetHeader')
.addItem('Get Sheet Data', 'getSheetData')
.addItem('Download Spreadsheet as JSON', 'doGet')
.addToUi();
}
@AesisGit
AesisGit / appsScript_ListFilesFolders_ver.2.js
Created March 25, 2021 13:19 — forked from mesgarpour/appsScript_ListFilesFolders_ver.2.js
[Google Apps Script] List all files & folders in a Google Drive folder, & write into a speadsheet
/*
* Copyright 2017 Mohsen Mesgarpour
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
/*
Function to create a Calendar Event via the API and include Google Meet.
Enable the API via: Services > Google Calendar API > Add
https://developers.google.com/calendar/v3/reference/events/insert#parameterss
*/
@AesisGit
AesisGit / google-apps-script.md
Created March 25, 2021 10:42 — forked from labnol/google-apps-script.md
How to Learn Google Apps Script

Learning Google Apps Script

Find the best resources for learning Google Apps Script, the glue that connects all GSuite services including Gmail, Google Drive, Calendar, Google Sheets, Forms, Maps, Analytics and more.

A good place to learn more about Google Apps Script is the official documentation available at developers.google.com. Here are other Apps Script resources that will help you get up to speed.

  1. Google Apps Script Code Samples by Amit Agarwal
  2. Google Apps Script Development - Create Google Apps Script projects locally inside VS Code - video tutorial
  3. Awesome Google Scripts by Amit Agarwal
  4. Google Developer Experts - Follow Apps Scr
@AesisGit
AesisGit / namecheap SSL.md
Created August 31, 2020 17:12 — forked from Shourai/namecheap SSL.md
Letsencrypt SSL certificate with namecheap hosting

source: https://savedlog.com/uncategorized/letsencrypt-ssl-certificate-namecheap-hosting/

The “Positive SSL” certificate I bought along with my domain is invalid with any of my subdomains and cannot be used with wildcards. One annoying thing is that namecheap doesn’t offer auto installation of free let’s encrypt certificates, even though, they are saying “Namecheap is dedicated to data security and privacy for all internet users. We believe the movement to encrypt nearly all web traffic is a positive direction. As more sites embrace HTTPS and use of security products, providers of free SSL are beginning to come online.”

Let me show you what it needs to be done in order to “encrypt nearly all web traffic”.

First, not required but it’s helpful to enable ssh access, it is not enabled by default on the base hosting plans, just go an start a live chat and request ssh access.