Skip to content

Instantly share code, notes, and snippets.

.landing-page
.landing-page__event
.landing-page__htu
.landing-page__terms
.landing-page__cta
.landing-page__cta-title = "Let's make your travel memorable"
.landing-page__cta-button
render partial: 'button', locals: {text: 'BOOK NOW', link: '#'}
.landing-page
.landing-page__event
.landing-page__htu
.landing-page__terms
.landing-page__cta
.landing-page__cta-title = "Let's make your travel memorable"
.landing-page__cta-button
= link_to 'BOOK NOW', '#', class: 'landing-page__cta-anchor'
.landing-page
.landing-page__event
.landing-page__htu
.landing-page__terms
.landing-page__cta
module Articles
module Services
class LompatanMarkdownProcessor
def initialize(full_document = "")
@full_document = full_document
end
def preprocess
document = @full_document.gsub(/\r\n\r\n\r\n/, "\r\n\r\n<br>\r\n")
document = _youtube(document)
Feature: Admin Remove City Cover
Scenario: Completely remove cover from city
Given I have already logged in as Admin
And We have city with cover
When I remove cover from city
Then It must not have a cover
And Cover also deleted from S3
ssh-add -l &>/dev/null
if [ "$?" == 2 ]; then
test -r ~/.ssh-agent && \
eval "$(<~/.ssh-agent)" >/dev/null
ssh-add -l &>/dev/null
if [ "$?" == 2 ]; then
(umask 066; ssh-agent > ~/.ssh-agent)
eval "$(<~/.ssh-agent)" >/dev/null
ssh-add
fi
@guiltry
guiltry / hairpin
Created October 28, 2016 09:00
Mikrotik Hairpin NAT
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; defconf: masquerade
chain=srcnat action=masquerade out-interface=ether1-internet log=no log-prefix=""
1 ;;; hairpin nat
chain=srcnat action=masquerade src-address-list=local dst-address-list=local out-interface=ether2-master log=no log-prefix=""
2 chain=dstnat action=dst-nat to-addresses=192.168.88.11 to-ports=8765 protocol=tcp dst-address=!192.168.88.1 dst-address-type=local dst-port=8765 log=no log-prefix=""
3 XI chain=dstnat action=dst-nat to-addresses=192.168.88.51 to-ports=3000 protocol=tcp dst-address=!192.168.88.1 dst-port=30000 log=no log-prefix=""
invoice: 34843
date : 2001-01-23
bill-to: &id001
given : Chris
family : Dumars
address:
city : Royal Oak
state : MI
postal : 48046
ship-to: *id001
---
CREATE TABLE users(
id integer PRIMARY KEY,
name varchar(50),
...
);
CREATE TABLE user_followers(
user_id integer,
follower_id integer,
....
def cache_control do
control = logged_in? ? 'private' : 'public'
response.headers['Cache-Control'] = "#{control}, max-age=0, must-revalidate"
end
...