Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
domains=(domain1 domain2)
for domain in "${domains[@]}"; do
if openssl x509 -checkend 1209600 -noout -in ~/keys/"$domain".crt 2> /dev/null; then
echo "$domain renew not needed"
else
echo "$domain expires in less than 2 weeks, renewing"
python2 ~/acme-tiny/acme_tiny.py \
diff -uprN linux-3.12/sound/pci/oxygen/oxygen.h linux-3.12-my/sound/pci/oxygen/oxygen.h
--- linux-3.12/sound/pci/oxygen/oxygen.h 2013-11-04 03:41:51.000000000 +0400
+++ linux-3.12-my/sound/pci/oxygen/oxygen.h 2013-11-20 22:20:44.000000000 +0400
@@ -198,7 +198,7 @@ void oxygen_write_ac97(struct oxygen *ch
void oxygen_write_ac97_masked(struct oxygen *chip, unsigned int codec,
unsigned int index, u16 data, u16 mask);
-void oxygen_write_spi(struct oxygen *chip, u8 control, unsigned int data);
+int oxygen_write_spi(struct oxygen *chip, u8 control, unsigned int data);
void oxygen_write_i2c(struct oxygen *chip, u8 device, u8 map, u8 data);