Skip to content

Instantly share code, notes, and snippets.

View luizsonego's full-sized avatar
🌐
the world in hands

Luiz Sonego Yavorski luizsonego

🌐
the world in hands
View GitHub Profile
@jeswinsimon
jeswinsimon / post-receive
Created June 17, 2020 11:07
post-receive Git hook for building and serving React application
#!/bin/bash
TARGET="<target-location>"
DEPLOY="<deployment-location>"
GIT_DIR="<repo-location>"
BRANCH="master"
while read oldrev newrev ref
do
# only checking out the master (or whatever branch you would like to deploy)
if [ "$ref" = "refs/heads/$BRANCH" ];
@oak-wildwood
oak-wildwood / CalendlyEmbedReact.js
Last active September 13, 2022 00:08
Calendly Embed React component
import React from 'react';
class CalendlyEmbed extends React.Component {
calendlyScriptSrc = 'https://assets.calendly.com/assets/external/widget.js'
buildCalendlyUrl = (account, eventName) =>
`https://calendly.com/${account}/${eventName}`
componentDidMount() {
const head = document.querySelector('head')
const script = document.createElement('script')
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active March 9, 2024 07:54
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@patpohler
patpohler / Big List of Real Estate APIs.md
Last active June 26, 2024 21:36
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

@lopspower
lopspower / README.md
Last active June 27, 2024 14:14
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@lennartvdd
lennartvdd / post-receive-yii2.sh
Last active February 27, 2021 19:35
GIT Hook: post-receive - Automatically deploy a Yii2 project using GIT
#!/bin/bash
# == Settings ==
GIT_DIR=/var/repo/project.git
WORK_TREE=/var/www/domain.com
BRANCH=master
YII_ENVIRONMENT=Production
# == Script ==
@leocomelli
leocomelli / git.md
Last active June 25, 2024 23:57
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda