Skip to content

Instantly share code, notes, and snippets.

View ivancucer's full-sized avatar
🚀
Work!

Ivan Cucer ivancucer

🚀
Work!
View GitHub Profile
@irazasyed
irazasyed / outbound-email-with-cloudflare.md
Last active July 17, 2024 02:00
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@n8henrie
n8henrie / duplicateFinderTab.applescript
Created August 2, 2014 16:44
Uses a hacky workaroud to duplicate the frontmost Finder tab, since Apple hasn't provided great AppleScript support for this.
-- duplicateFinderTab.scpt
-- Uses a hacky workaroud to duplicate the frontmost Finder tab,
-- since Apple hasn't provided great AppleScript support for this.
-- Details at:
on new_tab()
tell application "System Events" to tell application process "Finder"
set frontmost to true
tell front menu bar to tell menu "File" to tell menu item "New Tab"
perform action "AXPress"
@mindcube
mindcube / auto-fancybox.js
Last active March 1, 2018 12:13
JS: Function that automatically pops up a fancybox window by using hash link.
// Function to automatically pop up lightbox window.
if (window.location.hash) {
var hash = window.location.hash;
if (hash == '#registration_form') {
$('.fancybox').fancybox().trigger('click');
}
}
@mchogan
mchogan / Toggle Hidden File Visibility
Last active December 13, 2015 22:18
Toggle visibility of hidden files and folders in Mac OS X
# Toggle Hidden File Visibility Automator Service
# 1. Create a new Automator service
# 2. Service receives no input in Finder
# 3. Add an Automator Ask For Confirmation action
# 4. Automator Run Shell Script action with below shell script
# Set the Shell to bin/sh/
is_shown=$(defaults read com.apple.finder AppleShowAllFiles)
if [ $is_shown = "FALSE" ]
then
@MrDys
MrDys / gist:3512455
Created August 29, 2012 13:26
Link directly to an open modal window in Bootstrap
/* If you've ever had the need to link directly to an open modal window with Bootstrap, here's a quick and easy way to do it:
Make sure your modal has an id:
<div class="modal" id="myModal" ... >
Then stick this bit of Javascript at at the end of your document:
*/
$(document).ready(function() {