sudo apt-get install pulseaudio pavucontrol libasound2-plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hubot | |
description "Hubot chat bot" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
# Path to Hubot installation | |
env HUBOT_DIR='/opt/hubot/' | |
env HUBOT='bin/hubot' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function findUser(login, callback){ | |
var collection = db.collection("users"); | |
return collection.findOne({"login":login}, function(err, doc){ | |
callback(null, doc); | |
}); | |
} | |
// Try to find user based on login param | |
findUser(req.params.login, function(err,user){ | |
var message = "Default message"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Burndown Chart</title> | |
<style> | |
.chart { | |
border: 1px solid black; | |
} | |
.chart div { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eclipse { | |
classpath.file { | |
whenMerged { classpath -> | |
classpath.entries.removeAll { it.path.endsWith('pom') } | |
} | |
} | |
wtp.component.file { | |
whenMerged { wtpComponent -> | |
def toIgnore = wtpComponent.wbModuleEntries.findAll { entry -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsusb | |
sudo nano /etc/udev/rules.d/90-mcewakeup.rules | |
SUBSYSTEM=="usb", ATTRS{idVendor}=="1784", ATTRS{idProduct}=="0008" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'" | |
sudo nano /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla (I think this is the one that matters) | |
[Actions for erik user] | |
Identity=unix-user:erik |
I hereby claim:
- I am erikthered on github.
- I am erikdnelson (https://keybase.io/erikdnelson) on keybase.
- I have a public key ASB6hwvdPohK2H3o-ZwLLJugwy27AegI82OYxUbOhPL5JQo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group 'io.github.erikthered' | |
version '1.0-SNAPSHOT' | |
buildscript { | |
ext.kotlin_version = '1.1.1' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/csv" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"strconv" | |
) |