Skip to content

Instantly share code, notes, and snippets.

View ozcan-durak's full-sized avatar

Ozcan Durak ozcan-durak

View GitHub Profile
@ozcan-durak
ozcan-durak / gist:dd6845e21ee0cfdd49917e2ff49b5cc9
Created June 28, 2021 10:06
Appscreens Generate image without watermarks
//This script has been written for test purposes within couple mins.
//Change this according to your canvas. Grab this from inspect element!
var can = document.querySelector('canvas.canvas-outline.ng-tns-c340-20.lower-canvas');
//Resize the image for IOS 6.5" screens.
var resizedCanvas = document.createElement("canvas");
var resizedContext = resizedCanvas.getContext("2d");
resizedCanvas.height = "2688";
resizedCanvas.width = "1242";
@ozcan-durak
ozcan-durak / paralleldesktop.txt
Last active January 3, 2021 22:26
fix the Network Initialisation Failed Message
To fix the Network Initialisation Failed Message:
Type "sudo nano /Library/Preferences/Parallels/network.desktop.xml" (without quotation marks) into the Terminal
Input password and press ENTER
Find "<UseKextless>1</UseKextless>" (value may be-1), and change the 1 (or-1) to 0. It should look like "<UseKextless>0</UseKextless>". If you can't to find this tag, then just create it under root tag "<ParallelsNetworkConfig ...>here</ParallelsNetworkConfig>"
CTRL+X and it will ask you if you want to save changes
<script>
THREE.ShapeUtils.triangulateShape = (function() {
var pnlTriangulator = new PNLTRI.Triangulator();
return function triangulateShape(contour, holes) {
return pnlTriangulator.triangulate_polygon([contour].concat(holes));
};
})();
</script>
<div id="three-container"></div>
@ozcan-durak
ozcan-durak / letsencrypt_2018.md
Created October 7, 2018 23:41 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files: