Note: Unix-like systems only.
- Export your extensions to a shell file:
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.sh
# Enable Screen Sharing | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist | |
# Disable Screen Sharing | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.screensharing.plist |
func drawOnPDF(path: String) { | |
// Get existing Pdf reference | |
let pdf = CGPDFDocumentCreateWithURL(NSURL(fileURLWithPath: path)) | |
// Get page count of pdf, so we can loop through pages and draw them accordingly | |
let pageCount = CGPDFDocumentGetNumberOfPages(pdf); | |
// Write to file | |
UIGraphicsBeginPDFContextToFile(path, CGRectZero, nil) |
package main | |
import ( | |
"database/sql" | |
"strconv" | |
"log" | |
"net/http" | |
"fmt" | |
"bytes" | |
"gopkg.in/gin-gonic/gin.v1" |
Note: Unix-like systems only.
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.sh
//: Playground - noun: a place where people can play | |
// | |
// Created by Pietro Basso on 29/06/2018. | |
// Copyright (c) 2018 Pietro Basso. All rights reserved. | |
// | |
let urls = ["http://youtu.be/NLqAF9hrVbY", | |
"http://www.youtube.com/watch?feature=player_embedded&v=DJjDrajmbIQ", | |
"http://www.youtube.com/watch?v=dQw4w9WgXcQ", | |
"http://www.youtube.com/embed/NLqAF9hrVbY", |
//: Playground - noun: a place where people can play | |
// | |
// Created by Pietro Basso on 29/06/2018. | |
// Copyright (c) 2018 Pietro Basso. All rights reserved. | |
// | |
let urls = ["http://youtu.be/NLqAF9hrVbY", | |
"http://www.youtube.com/watch?feature=player_embedded&v=DJjDrajmbIQ", | |
"http://www.youtube.com/watch?v=dQw4w9WgXcQ", | |
"http://www.youtube.com/embed/NLqAF9hrVbY", |
#!/bin/bash | |
usage() | |
{ | |
# Display Help | |
echo "*********************************************************************************************************************************************************" | |
echo " MacOS Application Notarization Script" | |
echo "*********************************************************************************************************************************************************" | |
echo |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>com.apple.security.app-sandbox</key> | |
<false/> | |
<key>com.apple.security.network.client</key> | |
<true/> | |
<key>com.apple.security.network.server</key> | |
<true/> |