Skip to content

Instantly share code, notes, and snippets.

View RedcoatAsher's full-sized avatar
📍
🇬🇧+ 🇺🇸

Asher Peruscini RedcoatAsher

📍
🇬🇧+ 🇺🇸
View GitHub Profile
@RedcoatAsher
RedcoatAsher / keepalive_ngrok.py
Created April 4, 2020 02:01 — forked from just4give/keepalive_ngrok.py
ngrok forever on raspberry pi
import json
import subprocess
import time
from pathlib import Path
import atexit
import boto3
import requests
import datetime
#path where you have extracted ngrok execution file. Follow readme file to install on Pi
@RedcoatAsher
RedcoatAsher / free-sketch-never-ending.md
Last active February 13, 2020 00:19 — forked from molcik/free-sketch-never-ending.md
Modify Sketch 49 and above to never ending trial

How does it work

All you have to do, to extend your trial period, is go to Date & Time preferences and set date before you trial period has started. Then open your Sketch.app and set your time back to atomatic.

But this can be really annoying do it over and over. And you can do it from your terminal too! All you need is date command. To set specific date you it with date parameter in following format +%m%d%H%M%y (MonthDayHourMinuteYear).

sudo date 0102030405

So command above will set your Date & Time to Sun Jan 2 03:04:00 +07 2005. Now when you open Sketch.app everything should appear as trial has not expired yet. But you don’t want to have your computer with wrong date & time. So to set it back you can use following command, which will set your time according to apple time server:

@RedcoatAsher
RedcoatAsher / free-illustrator.md
Created February 7, 2020 21:23 — forked from molcik/free-illustrator.md
Illustrator never ending trial period

How Does It Work

All you have to do, to extend your trial period, is change number in TrialKey element in application.xml. This file is located in /Applications/Adobe Illustrator CC 2018/Support Files/AMT/AI/AMT. You can navigate there with this command:

cd /Applications/Adobe\ Illustrator\ */Support\ Files/AMT/AI/AMT

Then you have to open the file and edit it. You can use just nano editor in terminal.

@RedcoatAsher
RedcoatAsher / free-photoshop.md
Created February 7, 2020 21:21 — forked from molcik/free-photoshop.md
Modify Photoshop to never ending trial

How Does It Work

All you have to do, to extend your trial period, is change number in TrialKey element in application.xml. This file is located in /Library/Application Support/Adobe/Adobe Photoshop/AMT. You can navigate there with this command:

cd /Library/Application\ Support/Adobe/Adobe\ Photoshop\ */AMT

Then you have to open the file and edit it. You can use just TextEdit app.

open -a TextEdit application.xml
@RedcoatAsher
RedcoatAsher / gmail_no-ads.css
Last active May 1, 2020 19:32
[Stylus CSS] Removes ads from gmail/inbox
.ae4.aDM > .Cp:first-child {
display: none !important;
}
.aKB {
display: none;
}
/* site_bg-color */
.zQTmif,
/* header_bg-color*/
.gb_ja,
/* info_btn-bg*/
.uUmIDd {
background: #1b1b1b !important;
}
/* story_box-border */
@RedcoatAsher
RedcoatAsher / google-inbox.css
Last active April 10, 2019 17:08
Inbox for Google -- STYLUS CSS
/* Global */
/* --------------------------------------------- */
/* Change font everywhere */
* {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 99.1%;
letter-spacing: normal;
}
/* Email subject colour */
.zA {
import Foundation
import AppKit
import AVFoundation
extension NSImage {
@objc var CGImage: CGImage? {
get {
guard let imageData = self.tiffRepresentation else { return nil }
guard let sourceData = CGImageSourceCreateWithData(imageData as CFData, nil) else { return nil }
return CGImageSourceCreateImageAtIndex(sourceData, 0, nil)
import Foundation
import AppKit
import AVFoundation
extension NSImage {
@objc var CGImage: CGImage? {
get {
guard let imageData = self.tiffRepresentation else { return nil }
guard let sourceData = CGImageSourceCreateWithData(imageData as CFData, nil) else { return nil }
return CGImageSourceCreateImageAtIndex(sourceData, 0, nil)