//search-result.js | |
//this is a Web Component, NOT a React,Vue or Angular component. | |
const template = document.createElement('template'); | |
template.innerHTML = ` | |
<style> | |
div { | |
margin-top: 20px; | |
color: green; | |
} |
based on DigitalOcean guide
Create local project
local$ rails new appname -T -d postgresql
local$ rails g scaffold Story title:string body:text
local$ rails db:migrate
<?php | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( | |
CURLOPT_URL => "https://0a1c4b76dd63.ngrok.io/api/partner/create_property?token=SOMETOKEN&partner%5Bpartner_code%5D=hotelrunner&property%5Bname%5D=SOME%20NAME&property%5Bkind_id%5D=3&property%5Blocation_information%5D=Near%20the%20see&property%5Bdescription%5D=description&property%5Bcurrency%5D=TRY&property%5Bcountry%5D=TR&property%5Bprovince%5D=Istanbul&property%5Bline1%5D=Suadiye&property%5Bmunicipality%5D=Kad%C4%B1k%C3%B6y&property%5Bpostalcode%5D=34232&property%5Blatitude%5D=39.62261494094297&property%5Blongitude%5D=32.71728515625&property%5Bphone%5D=90555444332%E2%80%99&property%5Bemail%5D=email+asd@email.com&property%5Buid%5D=834883483484322k&property%5Bfirstname%5D=123&property%5Blastname%5D=324&property%5Bimages%5D%5B0%5D%5Battachment_url%5D=https://asd.com", | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_ENCODING => "", | |
CURLOPT_MAXREDIRS => 10, | |
CURLOPT_TIMEOUT => 0, |
install nodejs
sudo apt-get update
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs yarn
{"event": { | |
"title": "Event title", | |
"excerpt": "Event excerpt", | |
"description": "Event description", | |
"group": "A", | |
"form": [ | |
{ | |
"type": "select", | |
"options": [ | |
[ |
# Your keymap | |
# | |
# Atom keymaps work similarly to style sheets. Just as style sheets use | |
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. Unlike style sheets however, | |
# each selector can only be declared once. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# |
Open crontab config file: crontab -e
For the crontab scheduling references, please see this page You can play with the variables on the site to make any changes. Then copy & replace the config in the crontab file Our current configuration in the crontab file is as following:
00 6 * * 1-5 /usr/bin/ruby scheduler.rb 0 organic_results >> /root/logs/organic.log 2>&1
02 6 * * 1-5 /usr/bin/ruby scheduler.rb 1, ads >> /root/logs/ads.log 2>&1
Server version: 5.7.21 Homebrew
sudo mate /usr/local/etc/my.cnf
Add => sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
brew services mysql restart
mysql -u root
https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-windows#0
How to Make a Persistent Ubuntu USB Drive on Windows: https://www.howtogeek.com/howto/14912/create-a-persistent-bootable-ubuntu-usb-flash-drive/