Skip to content

Instantly share code, notes, and snippets.

@rohit366
rohit366 / Activate Office 2019 for macOS VoL.md
Created February 7, 2022 03:02 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@rohit366
rohit366 / send-telegram-group.gs
Created September 23, 2019 15:27 — forked from whatsmate/group-send-telegram-text.gs
Sending a text message to a Telegram Group in Google Apps Script
function main() {
var groupName = "YOUR_UNIQUE_GROUP_NAME_HERE"; // TODO: Specify the name of the group
var message = "Guys, lets party tonight!"; // TODO: Specify the content of your message
sendTelegramGroup(groupName, message);
}
function sendTelegramGroup(groupName, message) {
var instanceId = "YOUR_INSTANCE_ID_HERE"; // TODO: Replace it with your gateway instance ID here
var clientId = "YOUR_CLIENT_ID_HERE"; // TODO: Replace it with your Premium client ID here
@rohit366
rohit366 / Codigo.gs
Created September 12, 2019 14:29 — forked from Tito0269/Codigo.gs
Crud Google Apps Scripts
function doGet(e){
Logger.log(e);
var op = e.parameter.action;
var ss=SpreadsheetApp.openByUrl("https://docs.google.com/spreadsheets/d/1UUBGKGvm4b9LOhqbdh0UDG6vYz9Phr1DqGyg8DvCiUc/edit?usp=sharing");
var sheet = ss.getSheetByName("Sheet1");
if(op=="insert")
return insert_value(e,sheet);
@rohit366
rohit366 / block_personal_appts
Created September 3, 2019 11:31 — forked from ttrahan/block_personal_appts
Google Apps Script to automatically create, edit and delete events on work calendar for personal calendar events. Instructions on how to set up can be found at https://medium.com/@willroman/auto-block-time-on-your-work-google-calendar-for-your-personal-events-2a752ae91dab
function sync() {
var id="XXXXXXXXXX"; // CHANGE - id of the secondary calendar to pull events from
var today=new Date();
var enddate=new Date();
enddate.setDate(today.getDate()+7); // how many days in advance to monitor and block off time
var secondaryCal=CalendarApp.getCalendarById(id);
var secondaryEvents=secondaryCal.getEvents(today,enddate);
@rohit366
rohit366 / Room_Reservation_App.js
Created September 3, 2019 10:34 — forked from kurtkaiser/Room_Reservation_App.js
Using Google Apps Script, this script is added to a sheet file that a Google Form feeds into. Using the submitted requests, the program manages booking calendars and alerts users of the status of their reservations.
// Room Reservation System Video
// Kurt Kaiser, 2018
// All rights reserved
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var lastRow = sheet.getLastRow();
var lastColumn = sheet.getLastColumn();
// Calendars to output appointments to
@rohit366
rohit366 / makeTodo.js
Created September 3, 2019 06:00 — forked from nicksmarto/makeTodo.js
Google Aps Script for Sheets to automatically pull, format, sort and populate active Todoist tasks in to Google Sheet
//*********************************************************************************************************
//makeTodo: Call other functions to make the daily Todo
//*********************************************************************************************************
function makeTodo(){
//Populate Header
grabHeader("B1")
//Populate Task List
@rohit366
rohit366 / email-spreadsheet-as-pdf-invoice.js
Created August 30, 2019 08:20 — forked from gregorynicholas/email-spreadsheet-as-pdf-invoice.js
google apps script to email a spreadsheet as a pdf invoice
/** Returns a PDF object based on the contents of the 'invoicing' sheet */
function invoiceToPDF(invDetails)
{
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
ssID = spreadsheet.getId();
var sheet = spreadsheet.getSheetByName(INVOICES_SHEETNAME);
var gid = sheet.getSheetId();
// &gid=x at the end of above url if you only want a particular sheet
var url2 = "http://spreadsheets.google.com/feeds/download/spreadsheets/Export?key=" + ssID +
@rohit366
rohit366 / invoice.js
Created August 28, 2019 15:42 — forked from revolunet/invoice.js
Sample Google Spreadsheet script to create invoice from selected row
/*
- send an email with a PDF invoice generated from a google spreadsheet
- spreadsheet "inputs" : list all your customers/sells by row
- spreadsheet "facture" : the invoice model
It just read and write cells ranges or named cells
Finally it generates a PDF link but i didnt manage to remove the cells borders
*/
@rohit366
rohit366 / dialog.html
Created August 19, 2019 06:56 — forked from arthurattwell/dialog.html
Google Sheets script to allow multi-select in cells with data-validation (adapted from https://www.youtube.com/watch?v=dm4z9l26O0I)
<div style="font-family: sans-serif;">
<? var data = valid(); ?>
<form id="form" name="form">
<? if(Object.prototype.toString.call(data) === '[object Array]') { ?>
<? for (var i = 0; i < data.length; i++) { ?>
<? for (var j = 0; j < data[i].length; j++) { ?>
<input type="checkbox" id="ch<?= '' + i + j ?>" name="ch<?= '' + i + j ?>" value="<?= data[i][j] ?>"><?= data[i][j] ?><br>
<? } ?>
<? } ?>
<? } else { ?>
@rohit366
rohit366 / facebook_leads.md
Created August 12, 2019 15:43 — forked from tixastronauta/facebook_leads.md
Receiving Facebook Leads on a Webhook

Receiving Facebook Leads on a Webhook

1 - Create an App

Head over to developer.facebook.com and create an App

2 - Setup the webhook

On your server, create a facebook webhook that will handle facebook calls. Then create a "leadgen" webhook on you App: https://developers.facebook.com/docs/graph-api/webhooks/v2.5