Skip to content

Instantly share code, notes, and snippets.

View nicoleahmed's full-sized avatar

Nicole Ahmed nicoleahmed

View GitHub Profile
Sub check_availability()
Dim myOlApp As New Outlook.Application
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set objApp = CreateObject("Outlook.Application")
'Set objItem = Outlook.Application.ActiveExplorer.Selection.Item(1)
Set objItem = objApp.ActiveInspector.CurrentItem
'Set objAttendees = Outlook.Application.ActiveExplorer.Selection.Item(1).Recipients
Set objAttendees = objItem.Recipients
Dim oCurrentUser As Recipient
Dim FreeBusy(20, 2) As String
@attenzione
attenzione / apps.txt
Last active April 29, 2023 21:04
Android TV safe to uninstall stock/vendor apps
com.google.android.videos
com.phorus.playfi.tv
org.droidtv.amazonalexa
org.droidtv.demome
org.droidtv.eum
org.droidtv.freeviewplayers
org.droidtv.nettv.market
org.droidtv.nettvrecommender
org.droidtv.playtv
tv.inscape.tvclient.inscapeacr
#!/usr/bin/env bash
#
# Setup automatic sync from a Github upstream repository to a fork
# - a branch "actions" will be created (or re-used) to hold the Github action to run
# - sync is done each hour
# - branch 'actions' needs to be the default branch of your fork (=> settings)
# - the script is able to both create and update and rewrite the sync script if you modify this script file
#
# Author: Mathiue Carbou
javascript:(function()%7Bconsole.log(%0A%20%20Array.from(document.querySelectorAll('h1%2C%20h2%2C%20h3%2C%20h4%2C%20h5%2C%20h6')).reduce((str%2C%20heading%2C%20index%2C%20arr)%20%3D%3E%20%7B%0A%20%20%20%20const%20level%20%3D%20Number(heading.tagName.slice(1))%3B%0A%0A%20%20%20%20if%20(level%20%3D%3D%3D%201%20%26%26%20heading.textContent%20%3D%3D%3D%20'No%20Preview')%20%7B%0A%20%20%20%20%20%20return%20str%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20const%20previousLevel%20%3D%20index%20%3D%3D%3D%200%20%3F%20level%20%3A%20Number(arr%5Bindex%20-%201%5D.tagName.slice(1))%3B%0A%20%20%20%20const%20indentation%20%3D%20(level%20-%20previousLevel%20%3E%201%20%3F%20'*'%20%3A%20'-').repeat(level)%3B%0A%20%20%20%20const%20isAriaHidden%20%3D%20heading.getAttribute('aria-hidden')%20%3D%3D%3D%20'true'%3B%0A%20%20%20%20const%20isDisplayNone%20%3D%20getComputedStyle(heading).display%20%3D%3D%3D%20'none'%3B%0A%20%20%20%20const%20isVisibilityHidden%20%3D%20getComputedStyle(heading).visibility%20%3D%3D%3D%20'hidden'%3B%0A%20%20%20%20c
@benbjurstrom
benbjurstrom / Code.gs
Last active May 6, 2024 17:09
PurgeOldEmails
/*
|--------------------------------------------------------------------------
| PurgeOldEmails
|--------------------------------------------------------------------------
| https://gist.github.com/benbjurstrom/00cdfdb24e39c59c124e812d5effa39a
|
*/
// Purge messages automatically after how many days?
var DELETE_AFTER_DAYS = 7
@jpremji
jpremji / gist:0db35816362d20c7afd805aad02e0d54
Created August 3, 2018 02:35
Outlook GAL (Global Address List) Export
#initialize the Outlook application
[Microsoft.Office.Interop.Outlook.Application] $outlook = New-Object -ComObject Outlook.Application
#store all values from the default GAL to $entries
$entries = $outlook.Session.GetGlobalAddressList().AddressEntries
#declare array outside of the loop
$object = @()
#loop through all entries retrieved
@vyach-vasiliev
vyach-vasiliev / get_crx_on_chrome_webstore.bookmarklet.js
Last active August 14, 2023 16:56
Get of extension from Chrome-WebStore (bookmarklet, v.2022.09)
javascript:!(function(){var k=document.querySelector('[role="dialog"] div[role="button"][aria-label]');if(k){var b=document.createElement("a");b.className="";b=k.parentNode.insertBefore(b,k);b.innerText="Get .crx file";b.id="get-crx-file";var i=a();var j=i[0];var g=i[1];var c=i[2];var d=i[3];b.setAttribute("download",g+".crx");b.setAttribute("href",c);console.log("install href\n%s",c);f();b.style.marginRight="2px";var h="#get-crx-file{margin-right:2px;user-select:none;padding:0 20px 0 20px;-webkit-border-radius:2px;border-radius:2px;border:1px solid;cursor:pointer;color:#fff;font-weight:bold;text-align:center;text-shadow:0 1px 1px rgba(0,0,0,0.1);text-transform:uppercase;-webkit-box-shadow:0 2px 0 0 rgba(255,255,255,.06) inset,0 2px 3px 0 rgba(0,0,0,.2);box-shadow:0 2px 0 0 rgba(255,255,255,.06) inset,0 2px 3px 0 rgba(0,0,0,.2);outline:0;vertical-align:top;height:28px;font-size:11px;line-height:28px;text-decoration:none;display:inline-block;border-color:#2d53af;background-color:#4d7bd6;background-image:-webki
@vyach-vasiliev
vyach-vasiliev / get_crx_on_chrome_webstore.user.js
Last active August 15, 2023 17:49
Get of extension from Chrome-WebStore (User Script)
// ==UserScript==
// @name Get of extension from Chrome-WebStore [chrome.google.com]
// @version 0.4
// @description Add button for get .crx of extension or theme from Chrome-WebStore
// @description Bookmarklet version: http://bit.ly/get_crx_chrome_bookmarklet
// @author Vyacheslav Vasiliev
// @history 2022.09 Fix problem with bookmarklet in Chrome-like browsers. Add accept formats.
// @history 0.3 Fix problem with bookmarklet in Chrome-like browsers. Add independent style for the button download.
// @history 0.2 Add new method download
// @include *chrome.google.com/webstore/*
@pinecones-sx
pinecones-sx / Open-OneNoteNotebook.ps1
Created November 8, 2016 21:01
Open-OneNoteNotebook powershell function -- lets you open OneNote Notebooks
<# Open-OneNoteNotebook
Pass in the UNC path of a OneNote notebook folder, then this will add it to the
list of opened notebooks in OneNote.
Ex:
Open-OneNoteNotebook '\\consanto\public\KnowledgeBase\'
#>
If (-Not (Test-Path function:global:Open-OneNoteNotebook)) {