Skip to content

Instantly share code, notes, and snippets.

View serhii-fisher's full-sized avatar
🌴
On vacation

Serhii Rybalka serhii-fisher

🌴
On vacation
View GitHub Profile
@serhii-fisher
serhii-fisher / sso_login_freshdesk.php
Created February 14, 2020 12:59 — forked from thanashyam/sso_login_freshdesk.php
SSO Login for Freshdesk support portal - PHP Sample Code (Updated)
<?php
define('FRESHDESK_SHARED_SECRET','____Place your Single Sign On Shared Secret here_____');
define('FRESHDESK_BASE_URL','http://{{your-account}}.freshdesk.com/'); //With Trailing slashes
function getSSOUrl($strName, $strEmail) {
$timestamp = time();
$to_be_hashed = $strName . FRESHDESK_SHARED_SECRET . $strEmail . $timestamp;
$hash = hash_hmac('md5', $to_be_hashed, FRESHDESK_SHARED_SECRET);
return FRESHDESK_BASE_URL."login/sso/?name=".urlencode($strName)."&email=".urlencode($strEmail)."&timestamp=".$timestamp."&hash=".$hash;
}
@serhii-fisher
serhii-fisher / css-grid-style-guide.markdown
Created October 17, 2019 08:22
CSS Grid: Style Guide

CSS Grid: Style Guide

Funny text from office ipsum: http://officeipsum.com/index.php

What could go wrong if I were to do a style guide with 5 color palettes without any planning? 🤷‍♀️

Narrator: A lot of things could go wrong.

A Pen by Olivia Ng on CodePen.

@serhii-fisher
serhii-fisher / install.txt
Created November 29, 2018 19:40 — forked from xiaol825/install.txt
How to install Chrome, ChromeDriver and Selenium on CentOS. Plus a sample scraping script.
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@serhii-fisher
serhii-fisher / deploy.php
Created May 30, 2017 12:13 — forked from krisnoble/deploy.php
A slightly modified version of Brandon Summers' script. For more information: http://simianstudios.com/blog/post/using-bitbucket-for-automated-deployment-of-multiple-repositories
<?php
date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php
/**
* The root directory where the repos live.
*
* @var string
*/
$root_dir = '/your/root/dir/';
@serhii-fisher
serhii-fisher / ral_standard.csv
Created January 15, 2017 14:30 — forked from lunohodov/ral_classic.csv
RAL Standard Color Table (CSV)
RAL RGB HEX German English French Spanish Italian Nederlands
RAL 1000 190-189-127 #BEBD7F Grünbeige Green beige Beige vert Beige verdoso Beige verdastro Groenbeige
RAL 1001 194-176-120 #C2B078 Beige Beige Beige Beige Beige Beige
RAL 1002 198-166-100 #C6A664 Sandgelb Sand yellow Jaune sable Amarillo arena Giallo sabbia Zandgeel
RAL 1003 229-190-001 #E5BE01 Signalgelb Signal yellow Jaune de sécurité Amarillo señales Giallo segnale Signaalgeel
RAL 1004 205-164-052 #CDA434 Goldgelb Golden yellow Jaune or Amarillo oro Giallo oro Goudgeel
RAL 1005 169-131-007 #A98307 Honiggelb Honey yellow Jaune miel Amarillo miel Giallo miele Honinggeel
RAL 1006 228-160-016 #E4A010 Maisgelb Maize yellow Jaune maïs Amarillo maiz Giallo polenta Maisgeel
RAL 1007 220-156-000 #DC9D00 Narzissengelb Daffodil yellow Jaune narcisse Amarillo narciso Giallo narciso Narcissengeel
RAL 1011 138-102-066 #8A6642 Braunbeige Brown beige Beige brun Beige pardo Beige marrone Bruinbeige
@serhii-fisher
serhii-fisher / index.html
Created October 17, 2016 15:11
Login animation
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
<div class="wrap_bg">
<div id="main" class="login_wrap singUpActive">
<div class="login_question_wrap">
<div class="question_singUp ">
<h2 class="title">Don't have an account?</h2>
<p>Lorem ipsum dolor sit ames
lorem ipsum dolor sit ames
lorem ipsum dolor sit ames
lorem ipsum dolor sit ames
@serhii-fisher
serhii-fisher / bitrix_server_settings.md
Created February 17, 2016 21:12 — forked from marvell/bitrix_server_settings.md
Bitrix: рекомендации по настройке сервера

Bitrix: рекомендации по настройке сервера

Двухуровневая структура web-сервера: nginx + apache2. PHP должен быть работать через apache-модуль. Настройки должны быть одинковыми как для apache-модуля, так и для cli.

Структура директорий

/var/www/example.com [root:root 0755]
/var/www/example.com/logs/ [www-data:www-data 0755]
/var/www/example.com/public/ [www-data:webdev 0775]

#Installing Taiga on CentOS 6 (x64)

##Dependencies ...

yum update -y
yum groupinstall "Development Tools" -y
yum install libxslt-devel libxml2-devel libXt-devel curl git tmux -y

##Installing PostgreSQL

@serhii-fisher
serhii-fisher / Fullscreen overlay menu (pure css).markdown
Last active January 6, 2016 20:58
Fullscreen overlay menu (pure css)