Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Joonas Ylitalo joonasy

🎯
Focusing
Block or report user

Report or block joonasy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View RegEx
# Delete empty lines
^\s*$
# Match tag and text spanning across multiple lines
<div[\r\s\S]+?</div>
View Easings for Flinto
EaseOutSine: bezier(0,39; 0,575; 0,565; 1)
EaseInOutSine: bezier(0,445; 0,05; 0,55; 0,95)
EaseInQuad: bezier(0,55; 0,085; 0,68; 0,53)
EaseOutQuad: bezier(0,25; 0,46; 0,45; 0,94)
EaseInOutQuad: bezier(0,455; 0,03; 0,515; 0,955)
EaseInCubic: bezier(0,55; 0,055; 0,675; 0,19)
EaseOutCubic: bezier(0,215; 0,61; 0,355; 1)
EaseInOutCubic: bezier(0,645; 0,045; 0,355; 1)
EaseInQuart: bezier(0,895; 0,03; 0,685; 0,22)
EaseOutQuart: bezier(0,165; 0,84; 0,44; 1)
@joonasy
joonasy / cloudSettings
Last active Jul 16, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-07-16T12:35:06.352Z","extensionVersion":"v3.1.2"}
@joonasy
joonasy / Rebirth: Navbar - Default
Last active Nov 12, 2018
Rebirth - Default navbar html
View Rebirth: Navbar - Default
<nav class="Navbar Navbar--default js-NavbarDefault">
<a href="/" class="Navbar-logo">Navbar</a>
<div class="Navbar-ctrl">
<div class="Navbar-ctrl-trigger js-NavbarDefaultTrigger">
<i class="Navbar-ctrl-trigger-icon"></i>
</div>
</div>
<ul>
<li class="Navbar-item">
<a class="Navbar-link" href="/">Home</a>
@joonasy
joonasy / TYPO3: Public resource path
Created Sep 22, 2017
TYPO3: Public resource path
View TYPO3: Public resource path
{f:uri.resource(path:'Assets/some/thing')}
@joonasy
joonasy / Rebirth: TYPO3 - Powermail
Last active Mar 9, 2017
Rebirth: TYPO3 - Powermail
View Rebirth: TYPO3 - Powermail
// Add to setup.txt
plugin.tx_powermail {
view {
templateRootPaths.1 = EXT:myextension/Resources/Powermail/Templates/
partialRootPaths.1 = EXT:myextension/Resources/Powermail/Partials/
layoutRootPaths.1 = EXT:myextension/Resources/Powermail/Layouts/
}
}
page {
@joonasy
joonasy / *nix: Install composer to Jelastic etc.
Last active Nov 3, 2016
Install Composer to *nix systems (Jelastic, Apache, Nginx)
View *nix: Install composer to Jelastic etc.
# Install Composer to Jelastic etc.
If the environment is new, you'll need composer.
1. `cd /var/www/webroot`
2. `curl -sS https://getcomposer.org/installer | php`
3. `mkdir ~/bin`
4. `mv ./composer.phar ~/bin/composer`
After installing, you can add composer to your PATH.
@joonasy
joonasy / Random: Commands
Last active Sep 13, 2016
Random commands I usually forget
View Random: Commands
# Curl
**Test origin to a target**:
`curl -i -H "Origin: http://origindomain.com" targetdomain.com`
# SSH
**Show all added keys**:
`ssh-add -l`
@joonasy
joonasy / OSX: Commands
Last active Nov 16, 2018
Random OSX commands and stuff I usually forget
View OSX: Commands
# Commands
**Show hidden files**:
`defaults write com.apple.Finder AppleShowAllFiles YES`
**Disable photos from auto-opening** (worked in El Capitan, http://bit.ly/2c6rVrX):
`defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES`
**Open Hosts**:
`sudo open -t /etc/hosts/`
@joonasy
joonasy / Apache: Commands
Last active Nov 3, 2016
Random Apache/MySQL commands I usually forget
View Apache: Commands
**Update latest settings and install apache w/ MySQL**:
```
apt-get update
apt-get install apache2
apt-get install php5-mysql
apt-get install php5
apt-get install php5-gd # (if gd needed)
apt-get install mysql-server
```
You can’t perform that action at this time.