Skip to content

Instantly share code, notes, and snippets.

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);
#!/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 \
#!/usr/bin/env python3
from nltk.corpus import brown
PUNCTUATION = "!\"#$%'()*+,-./:;<=>?@[\\]^_`{|}~"
MIN_OCCURANCES = 20
# Hold a count of words
countdict = {}
#!/usr/bin/env python3
from nltk.corpus import brown
PUNCTUATION = "!\"#$%'()*+,-./:;<=>?@[\\]^_`{|}~"
MIN_OCCURANCES = 20
# Hold a count of words
countdict = {}
#!/usr/bin/env python3
from nltk.corpus import brown
PUNCTUATION = "!\"#$%'()*+,-./:;<=>?@[\\]^_`{|}~"
MIN_OCCURANCES = 20
NGRAM_LENGTH = 3
# Hold a count of words
countdict = {}
@ipha
ipha / movement.cs
Last active December 30, 2016 23:22
using UnityEngine;
using System.Collections;
public class movement : MonoBehaviour {
const int numSamples = 10;
public GameObject head;
public float scalingFactor;
private Vector3 headPrev;
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>
pkgname=deluge
pkgver=2.0.3
pkgrel=0
pkgdesc="A BitTorrent client with multiple user interfaces in a client/server model"
arch=(any)
url="https://deluge-torrent.org/"
title Arch Linux (last)
linux /vmlinuz-linux-last
initrd /intel-ucode.img
initrd /initramfs-linux-last-fallback.img
options root=LABEL=archRoot rootflags=subvol=root-last rw
#!/bin/bash
for f in "$1"/*; do
echo "file '$f'" >> "$1".list
done
ffmpeg -f concat -safe 0 -i "$1".list -c copy "$1".mkv
rm "$1".list
#!/bin/bash
for dir in "$@"; do
for f in "$dir"/*; do
echo "file '$f'" >> "$dir".list
done
ffmpeg -f concat -safe 0 -i "$dir".list -c copy "$dir".mkv
rm "$dir".list