Skip to content

Instantly share code, notes, and snippets.

View yaochao's full-sized avatar
🌴
On vacation

yaochao yaochao

🌴
On vacation
View GitHub Profile

註:Formula 就是套件名稱,你在官方文件或 help 上會經常看到 FORMULA... 這個英文字彙,在 Homebrew 中,它即是套件名稱。

  • 查看有哪些指令可以使用
% brew help
  • 查詢有無 MongoDB 的套件
% brew search mongodb
# -*- coding: utf-8 -*-
import sqlite3
import time
import scrapy
#################################### commercespider ###########################
class SocialbetaSpider(scrapy.Spider):
name = 'socialbeta'
# -*- coding: utf-8 -*-
import sqlite3
import time
import scrapy
#################################### commercespider ###########################
class SocialbetaSpider(scrapy.Spider):
name = 'socialbeta'
# -*- coding: utf-8 -*-
import sqlite3
import time
import scrapy
#################################### commercespider ###########################
class SocialbetaSpider(scrapy.Spider):
name = 'socialbeta'
@yaochao
yaochao / stream_to_youtube.sh
Created July 2, 2017 14:18 — forked from olasd/stream_to_youtube.sh
Stream video to youtube via ffmpeg
#! /bin/bash
#
# Diffusion youtube avec ffmpeg
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée.
VBR="2500k" # Bitrate de la vidéo en sortie
FPS="30" # FPS de la vidéo en sortie
QUAL="medium" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube