Skip to content

Instantly share code, notes, and snippets.

@JiapengLi
JiapengLi / tmq.c
Created December 24, 2013 04:49 — forked from tanmaykm/tmq.c
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
/**
* related blogpost at: http://sidekick.windforwings.com/2012/05/inter-thread-communication-socketpairs.html
[Dialer Defaults]
Modem = /dev/ttyUSB2
Init1 = ATZ
Init3 = ATE0V1
Init5 = ATS0=0
Init6 = AT+CGDCONT=1,"IP","3gnet"
Init7 = AT+CFUN=1
Modem Type = USB Modem
Baud = 460800
@JiapengLi
JiapengLi / certbot-systemd-ubuntu.md
Created August 24, 2020 07:35 — forked from dbirks/certbot-systemd-ubuntu.md
Certbot renew with a systemd timer on Ubuntu

Ubuntu 16.04

/etc/systemd/system/certbot.service

[Unit]
Description=Let's Encrypt renewal

[Service]
Type=oneshot
ExecStart=/usr/bin/certbot renew --quiet --agree-tos