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
#!/usr/bin/env bash | |
# | |
# This is sp, the command-line Spotify controller. It talks to a running | |
# instance of the Spotify Linux client over dbus, providing an interface not | |
# unlike mpc. | |
# | |
# Put differently, it allows you to control Spotify without leaving the comfort | |
# of your command line, and without a custom client or Premium subscription. | |
# |
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
augeas { "add sss to nsswitch": | |
context => "/files/etc/nsswitch.conf", | |
changes => [ | |
"set database[. = 'passwd']/service[last()+1] 'sss'", | |
], | |
onlyif => "match database[. = 'passwd']/service[. = 'sss'] size == 0", | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am wandernauta on github. | |
* I am wandernauta (https://keybase.io/wandernauta) on keybase. | |
* I have a public key whose fingerprint is 48B7 5653 600D 17BB A5FF 233D B3DC C8CA BAD3 EEEE | |
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
import VWFloat | |
testResult :: VWFloat | |
testResult = 214.0 | |
limit :: VWFloat | |
limit = 200.0 | |
main = do | |
putStrLn "Emissions within limit?" |
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
import com.fasterxml.jackson.databind.ObjectMapper; | |
public class Example { | |
public static void main(String[] args) throws Exception { | |
String jsonInput = "{\"name\": \"Redshirt\", \"phaserToKill\": true}"; | |
new ObjectMapper().readValue(jsonInput, StarfleetEnsign.class); | |
} | |
} |
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
<xsl:template>a<![CDATA[</xsl:template>]]>b</xsl:template> |
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
http://abcde.einval.com/download/abcde-2.7.tar.gz | |
http://alioth.debian.org/frs/download.php/file/3977/minicom-2.7.tar.gz | |
http://aphyr.com/riemann/riemann-0.2.9.tar.bz2 | |
http://archive.apache.org/dist/jena/binaries/apache-jena-3.0.1.tar.gz | |
http://archive.apache.org/dist/jena/binaries/apache-jena-fuseki-2.3.1.tar.gz | |
http://archive.apache.org/dist/jmeter/binaries/apache-jmeter-2.11.tgz | |
http://archive.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz | |
http://archive.mozilla.org/pub/thunderbird/releases/38.6.0/source/thunderbird-38.6.0.source.tar.bz2 | |
http://archives.eyrie.org/software/kerberos/pam-krb5-4.7.tar.gz | |
http://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-0.8.13.tar.gz |
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 x [ <!ENTITY y "a]>b"> ]> | |
<x> | |
<a b="&y;>" /> | |
<![CDATA[[a>b <a>b <a]]> | |
<?x <a> <!-- <b> ?> c --> d | |
</x> |
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
// Includes | |
#include <math.h> // for pow | |
#include <pthread.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <unistd.h> | |
// Useful macro's | |
#define lock pthread_mutex_lock(&job->mutex); |
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
#include "as1_t2.h" | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <assert.h> | |
#include <string.h> | |
// CONFIGURATION. | |
// Change these to change the type of array msort sorts, or the key it sorts | |
// on. |
NewerOlder