Skip to content

Instantly share code, notes, and snippets.

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

Asher Peruscini RedcoatAsher

📍
🇬🇧+ 🇺🇸
View GitHub Profile
@hiltmon
hiltmon / merge_asana_into_omnifocus.rb
Last active October 2, 2018 17:58
Updated Merge Asana into OmniFocus script
#!/usr/bin/env ruby -E utf-8
# merge_asana_into_omnifocus.rb
# Hilton Lipschitz
# http://www.hiltmon.com
# Use and modify freely, attribution appreciated
# Script to import Asana projects and their tasks into
# OmniFocus and keep them up to date from Asana.
@moqmar
moqmar / _coverr.html
Last active January 19, 2021 18:52
Pure CSS implementation of coverr.co
<header class="coverr"><!-- The box you want the video as a background for: just add the "coverr" class -->
<div class="coverr-video">
<img src="[JPEG URL]" alt="">
<video autoplay loop>
<source src="[MP4 URL]" type="video/mp4">
<source src="[WEBM URL]" type="video/webm">
<!-- Non-HTML5 browsers will just show the image, no need for a fallback text -->
</video>
</div>
<!-- The box content -->
@wjmazza
wjmazza / google-sheets-colour-preview.js
Last active October 6, 2024 22:51 — forked from Pathoschild/google-sheets-color-preview.js
A Google Sheets script which adds colour preview to cells. When you edit a cell containing a valid CSS hexadecimal colour code (like #000 or #000000), the background colour will be changed to that colour and the font colour will be changed to the inverse colour for readability.
/*
This script is meant to be used with a Google Sheets spreadsheet. When you edit a cell containing a
valid CSS hexadecimal colour code (like #000 or #000000), the background colour will be changed to
that colour and the font colour will be changed to the inverse colour for readability.
To use this script in a Google Sheets spreadsheet:
1. go to Tools » Script Editor » Spreadsheet;
2. erase everything in the text editor;
3. change the title to "Set colour preview on edit";
@matthewhochler
matthewhochler / macos_setup.markdown
Last active December 30, 2021 15:07
New macOS Setup

Setup new MacOS installation

Homebrew

brew tap homebrew/dupes
brew update
brew upgrade
brew install \
  "awscli" \
  "bash" \
@ubergesundheit
ubergesundheit / index.md
Created November 6, 2017 13:19
ngrok on raspberrypi on systemd
  • Download ngrok binary
  • Create /etc/systemd/system/ngrok.service
  • Create /opt/ngrok/ngrok.yml
@molcik
molcik / free-sketch-never-ending.md
Last active February 7, 2020 21:23
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:

@molcik
molcik / free-illustrator.md
Last active November 29, 2024 07:35
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.

@molcik
molcik / free-photoshop.md
Created May 18, 2018 08:39
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
@just4give
just4give / keepalive_ngrok.py
Last active January 30, 2022 23:18
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
@noahcoad
noahcoad / noah_new_computer_setup.md
Last active January 30, 2025 05:26
New Computer Setup

New Computer Setup for Mac

The steps I use to restore a new mac to the settings and apps I like to use.