Skip to content

Instantly share code, notes, and snippets.

View andriilive's full-sized avatar

Andrii Iv. (@digitalandyeu) andriilive

View GitHub Profile
@Wamphyril
Wamphyril / readme.md
Created September 25, 2022 19:30
Ubuntu 20x WSL Install
$ apt update && apt upgrade
$ apt install zsh
$ chsh -s $(which zsh)
$ apt install curl wget git
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
$ zsh
$ nano ~/.zshrc # plugins=(git nvm composer wp-cli yarn zsh-autosuggestions zsh-syntax-highlighting)
# https://gist.github.com/andriilive/b9392203776acd958707ec8fc50c83f6
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash # close and open terminal
tell application "System Events"
tell process "Framer X"
set frontmost to true
# change to your prototype name.
click menu item "prototype.framerfx" of menu "Window" of menu bar 1
delay 0.1
click menu item "Layers" of menu of menu item "Panel" of menu "View" of menu bar 1
delay 0.2
click at {118, 118}
delay 0.2
@thoaster
thoaster / reset.sh
Last active May 17, 2024 15:49
Transmit 5 Trial Reset
#!/bin/sh
# Reset Transmit 5 Trial
# curl -fsSL https://gist.githubusercontent.com/thoaster/ca5b4fdb653b9cdb3930897045b78558/raw/reset.sh | bash
set +e
set -x
sudo rm -rf ~/Library/Caches/com.panic.Transmit
sudo rm -rf ~/Library/Application\ Support/com.panic.Transmit
sudo rm ~/Library/Preferences/com.panic.Transmit.plist
@seb3point0
seb3point0 / index.js
Last active February 16, 2020 08:00
Import photos from Instagram Data Download to Ghost blog
/*
Instagram users may export their data in an archive https://help.instagram.com/181231772500920. This script imports the data and photos from an Instagram export and import it to a Ghost blog using the Ghost private API.
*/
const path = require('path');
const fs = require('fs');
const request = require('request');
const queryString = require('query-string');
const auth = {
@molcik
molcik / free-illustrator.md
Last active May 8, 2024 14:30
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.

@QWp6t
QWp6t / BedrockMultisiteValetDriver.php
Last active March 6, 2024 11:28
Fix Laravel Valet when using WordPress subdirectory multisite + Bedrock
<?php
namespace Valet\Drivers\Custom;
class BedrockMultisiteValetDriver extends \Valet\Drivers\Specific\BedrockValetDriver
{
/**
* Determine if the incoming request is for a static file.
*
* @return string|false
@sivadass
sivadass / index.html
Last active August 8, 2023 08:41
PHP Mailer - Ajax Submission
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Ping</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<style>
@LoyEgor
LoyEgor / gulpfile.js
Last active March 13, 2023 17:22
best image compression settings (gulp-imagemin)
// install
// npm i gulp-cache gulp-imagemin imagemin-pngquant imagemin-zopfli imagemin-mozjpeg imagemin-giflossy -f
// node node_modules/jpegtran-bin/lib/install.js
// node node_modules/gifsicle/lib/install.js
// node node_modules/zopflipng-bin/lib/install.js
// node node_modules/mozjpeg/lib/install.js
// node node_modules/giflossy/lib/install.js
// node node_modules/pngquant-bin/lib/install.js
@ismailmechbal
ismailmechbal / sketch-never-ending.md
Last active January 28, 2022 04:23
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@noelboss
noelboss / git-deployment.md
Last active May 16, 2024 20:41
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.