Skip to content

Instantly share code, notes, and snippets.

View kyvandoan's full-sized avatar

Ky Van DOAN kyvandoan

View GitHub Profile
# Create a temporary directory if it doesn't exist
$tempDirectory = "C:\Temp"
if (-not (Test-Path $tempDirectory -PathType Container)) {
New-Item -ItemType Directory -Path $tempDirectory -Force
}
# Step 0: Backup Arc:
Write-Host "Backing up arc..."
& "C:\Program Files\7-Zip\7z.exe" a -t7z "c:\Temp\arcBackup.7z" "c:\arcBrowser\*" -mx=4
@GetVladimir
GetVladimir / Setup-iCloud+-Custom-Domain-Catch-All-email-with-Gmail.md
Last active June 17, 2024 21:07
How to setup iCloud+ Custom Domain Catch All email with Gmail

How to setup iCloud+ Custom Domain Catch All email with Gmail

I've recently tested on how to move the custom domain catch all email from G Suite to the new iCloud+ Catch All feature and wanted to share my experience.

The end result is having Custom Domain email and Catch All routing, that can be fully used via Gmail, including receiving and sending emails.


The steps

  • Setup your Custom Domain (or subdomain) with iCloud+
@Treeki
Treeki / TurnipPrices.cpp
Last active May 27, 2024 15:18
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@ayyybe
ayyybe / ccdl.command
Last active May 20, 2024 22:48
Adobe Offline Package Builder v0.1.2 (macOS only) --- No longer being maintained.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear
@Nainterceptor
Nainterceptor / DISCLAIMER.fr_FR.md
Created February 12, 2015 21:08
Userscript to extract mailing list from campus-booster #Supinfo

Disclaimer

L'extraction de bases de données est une infraction caractérisée au droit de la propriété intellectuelle. Vous êtes seul responsable de votre utilisation de cet outil.

// Go to http://www.campus-booster.net/Booster/students/classMembers.aspx
// Open your browser javascript console
// And execute this
var html = $('body').innerHTML
var regex = /http:\/\/www\.campus-booster\.net\/actorpictures\/([0-9]+)\.jpg/g
var ids = []
while (null != (match = regex.exec(html))) {
ids.push(match[1])