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
Welcome to minicom 2.7.1 | |
OPTIONS: I18n | |
Compiled on Aug 13 2017, 15:25:34. | |
Port /dev/ttyUSB0, 16:52:51 | |
Press CTRL-A Z for help on special keys | |
DDR Version 1.15 20181010 | |
In |
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
// gcc pthread_hook.c -shared -o libpthread_hook.so | |
// LD_PRELOAD=./libpthread_hook.so ./test_app | |
#define _GNU_SOURCE | |
#include <sched.h> // cpu_set_t, CPU_SET | |
#include <dlfcn.h> | |
#include <errno.h> // EINVAL | |
#include <pthread.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
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
#!/usr/bin/perl -w | |
# | |
# Batch-decode a list of *.MKV videos into *.WEBM (VP9) with deinterlace filter, | |
# using multiple parallel instances of FFmpeg. | |
# | |
use threads; | |
# XXX The number of parallel threads to use. | |
my($nthreads) = 8; |
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
#!/bin/bash | |
echo "Creating Jupyter environment in" $(pwd) | |
python3 -m venv ./.venv | |
sh -c "source .venv/bin/activate && pip3 install --upgrade pip && pip3 install jupyter && ipython kernel install --user --name=.venv" | |
echo "Created Jupyter environment in" $(pwd) |
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
all: jumptable | |
jumptable.cubin: jumptable.ptx | |
nvcc -arch=sm_61 $< -cubin | |
jumptable: jumptable.cu jumptable.cubin | |
nvcc -arch=sm_61 $< -o $@ -lcuda | |
clean: | |
rm -rf jumptable jumptable.cubin |
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/scripts/local 2019-10-17 07:29:20.000000000 +0200 | |
+++ b/scripts/local 2021-05-12 20:30:38.000000000 +0200 | |
@@ -198,56 +198,10 @@ | |
local_mount_overlay() | |
{ | |
- # Test (mmc) block device | |
- [ -b "${USERDATA%p*}" ] && \ | |
- [ -b "${USERDATA}" ] || return | |
- |
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
// Given all possible combinations of K values, each no greater than M, and whose sum is exactly N | |
// (zeros and different orderings are accounted, that is 1 + 4 and 4 + 1 are different combinations), | |
// for the known combination, reconstruct back its index (the order of enumeration does not matter). | |
// | |
// C++ implementation of an algorithm proposed by Mike Earnest. | |
// | |
// Compile: g++-11 earnestrank.cpp -o earnestrank | |
// Run: ./earnestrank | |
// | |
// |
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
#!/bin/bash | |
#===================================================================== | |
# Selects an android device | |
# Copyright (C) 2012-2020 Diego Torres Milano. All rights reserved. | |
# | |
# See: | |
# - http://dtmilano.blogspot.ca/2013/01/android-select-device.html | |
# - http://dtmilano.blogspot.ca/2012/03/selecting-adb-device.html | |
# for details on usage. | |
#===================================================================== |
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
#!/bin/bash | |
# Automatic Image file resizer | |
# Written by SirLagz | |
# Fixed 2016.04.17 by @ChrisPrimeish | |
strImgFile=$1 | |
if [[ ! $(whoami) =~ "root" ]]; then | |
echo "" | |
echo "**********************************" | |
echo "*** This should be run as root ***" |
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
#!/bin/bash | |
# Automatic Image file resizer | |
# Written by SirLagz | |
# Fixed 2016.04.17 by @ChrisPrimeish | |
strImgFile=$1 | |
if [[ ! $(whoami) =~ "root" ]]; then | |
echo "" | |
echo "**********************************" | |
echo "*** This should be run as root ***" |