This file contains hidden or 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
# A minimal config for samba to share with Windows 2000. | |
# This is insecure... don't run this config on a production system. | |
[global] | |
workgroup = SAMBA | |
security = user | |
lanman auth = yes | |
ntlm auth = yes | |
[public] |
This file contains hidden or 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 git_portion { | |
git status > /dev/null 2> /dev/null | |
if [[ $? -eq 0 ]] | |
then | |
current_branch=$(git rev-parse --abbrev-ref HEAD) | |
modified='\e[92m' | |
git diff --exit-code 2>/dev/null >/dev/null | |
if [[ $? -ne 0 ]] | |
then | |
modified='\e[97m*\e[93m' |
This file contains hidden or 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 <math.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <time.h> | |
static const size_t MAX_BLOCK_SIZE = 1024; | |
double cpu_var(double *input, size_t len) | |
{ |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
#ifdef __APPLE__ | |
#include <OpenCL/opencl.h> | |
#else | |
#include <CL/cl.h> | |
#endif | |
int main() { | |
NewerOlder