Skip to content

Instantly share code, notes, and snippets.

@kkavod
kkavod / screencamera.sh
Last active May 14, 2021 21:07
Captures a window and creates a virtual camera from it, uses GStreamer 1.0 on Linux
#!/bin/bash
# This pipeline is based on https://gist.github.com/lifning/1857803
# but is updated for GStreamer 1.0 and also crops the window
# Tested on Chrome with https://github.com/bluetiger9/v4l2loopback
# with exclusive_caps enabled:
# $ sudo modprobe v4l2loopback devices=8 exclusive_caps=1
DEV=$(zenity --file-selection \
@kkavod
kkavod / sms.R
Last active June 4, 2016 14:07
Send an SMS with Twilio API with R and httr library
library(httr)
send_sms_message <- function (message) {
twilio_sid <- "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
twilio_secret <- "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
twilio_api_url <- paste("https://api.twilio.com/2010-04-01/Accounts/", twilio_sid, "/Messages.json", sep = "")
body <- list(
From = "+46XXXXXXXXX",