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
/** | |
* Adopted from: https://gist.github.com/MoOx/93c2853fee760f42d97f | |
* This will additionally get the description of the issue, if it exists. Otherwise, it will be an empty string | |
*/ | |
// Run this from the developer console in Chrome/Firefox, on your repository's issues page | |
// https://github.com/${repoOwner}/${repoName}/labels | |
var labels = []; | |
[].slice.call(document.querySelectorAll(".label-link")) |
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
Adapted from https://sourceware.org/git/?p=glibc.git;a=blobdiff;f=sysdeps/aarch64/dl-machine.h;h=e7656129f50cce3ecf375c31b4d26d55d4330290;hp=b1245476dc26a8fc5b620142d07bfc9b3da9e955;hb=a68ba2f3cd3cbe32c1f31e13c20ed13487727b32;hpb=346729f66b905344e4ce24045489d189e5b4a9b8 | |
Note that the patch is not identical to above - we are diffing that change against the vanilla glibc 2.20 from gnu's FTP site |
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
loc = list() | |
# TODO: Add your floats to `loc` | |
loc.append(0.0) | |
loc.append(1e-308) | |
loc.append(1e-305) | |
loc.append(1e-300) | |
loc.append(1e-275) | |
loc.append(1e-250) | |
loc.append(1e-200) |
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
#!/bin/bash | |
# Adopted from https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/#before-installation | |
if [ `whoami` != "root" ]; then | |
echo you must run this as root | |
exit 1 | |
fi | |
touch /etc/modprobe.d/blacklist.conf |
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
// g++ -m64 -lstdc++ test1.cpp -o test1 | |
#include <stdint.h> | |
#include <iostream> | |
struct x86_64__extension_support { | |
bool has_sse; | |
bool has_sse2; | |
bool has_sse3; | |
bool has_ssse3; |
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
# This covers most relevant cache loading/storing and pipeline events | |
perf stat -e \ | |
L1-dcache-load-misses,L1-dcache-loads,L1-dcache-stores,L1-icache-load-misses,\ | |
LLC-load-misses,LLC-loads,LLC-store-misses,LLC-stores,\ | |
branch-loads,branch-load-misses,alignment-faults $COMMAND | |
# Adds upon above but with backend info (used on Haswell-E 5820k) | |
perf stat -e \ | |
L1-dcache-load-misses,L1-dcache-loads,L1-dcache-stores,L1-icache-load-misses,\ | |
LLC-load-misses,LLC-loads,LLC-store-misses,LLC-stores,\ |
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
#!/bin/bash | |
# Set this to whatever you need. | |
# Don't feel like dealing with param args or parsing `users` & `groups` ... | |
USER=daniel | |
GROUP=daniel | |
if [ ! $(whoami) == "root" ]; then | |
echo "You must run this as root." | |
exit 1 |
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 <stdint.h> | |
#define BIT_NUM0 0x1 | |
#define BIT_NUM1 0x2 | |
#define BIT_NUM2 0x4 | |
#define BIT_NUM3 0x8 | |
#define BIT_NUM4 0x10 | |
#define BIT_NUM5 0x20 | |
#define BIT_NUM6 0x40 | |
#define BIT_NUM7 0x80 |
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 java.lang.reflect.Method; | |
/// You should probably add the following property (under the "application" tag) to your AndroidManifest.xml, just for large heap support | |
/// android:largeHeap="true" | |
public final class AllocUtils { | |
interface AllocPinnedArray { | |
Object allocPinnedArray(Class<?> pClass, int pCount); | |
} |
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 com.ajdt.test; | |
import javax.swing.JOptionPane; | |
/// To properly compile and use this with the Java in C++ prototype, | |
/// put this file in the subfolder "com/ajdt/test" | |
/// | |
/// To compile, use the following command: | |
/// javac -classpath <your_local_working_directory> <your_local_working_directory>/com/ajdt/test/JNIExample1.java | |
/// |
NewerOlder