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
# update system | |
$ sudo apt update && sudo apt upgrade | |
# uninstall old node (v10?) | |
$ sudo apt remove nodejs npm -y | |
# install nvm | |
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash | |
# use 'unofficial builds' in nvm |
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
NVIDIA Driver Version: 522.25 CUDA Version: 11.8 | |
Credit: blazer | |
For benchmarking the card and allowing me to release the benchmarks here | |
The hashcat installation used includes a change to the tuning ALIAS.hctune file to include the RTX 4090 as "ALIAS_nv_sm50_or_higher". | |
The "Kernel exec timeout" warning is cosmetic and does not affect the speed of any of the benchmarked modes. | |
Benchmark was run at stock clocks on an Asus Strix 4090. | |
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
var HID = require('node-hid'); | |
const express = require('express'); | |
// Steam Neptune Controller | |
var device = new HID.HID("/dev/hidraw3"); | |
var port = 8000 | |
var controller = { | |
id: "Steam Controller (Neptune)", | |
index: 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
# Add this line in /etc/apt/sources.list | |
# deb http://httpredir.debian.org/debian/ jessie main contrib non-free | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7638D0442B90D010 | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CBF8D6FD518E17E1 | |
sudo apt-get update --allow-unauthenticated | |
sudo apt-get install firmware-atheros | |
sudo dpkg -i --force-overwrite /var/cache/apt/archives/firmware-atheros_0.43_all.deb # if error says error processing archive /var/cache/apt/archives/firmware-atheros_0.43_all.deb | |
sudo apt -f install # to fix broken packages |
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 | |
# | |
# Heavily inspired by https://github.com/dnschneid/crouton/wiki/VirtualBox-udev-integration | |
# | |
vbox_usbnode_path=$(find / -name VBoxCreateUSBNode.sh 2> /dev/null | head -n 1) | |
if [[ -z $vbox_usbnode_path ]]; then | |
echo Warning: VBoxCreateUSBNode.sh file has not been found. | |
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
# Link https://github.com/Adriangarridosanchis/SensorNetwork./wiki/Shrink-system-image-on-Linux | |
Shrink system image on Linux | |
benchchair edited this page on 8 Jul 2014 · 16 revisions | |
Why | |
The image extracted from a finalized SD card is slightly larger than the capacity of SD card. We need to shrink the size of image so that we can always copy the image into the same capacity SD card or even a smaller one. | |
# Requirements | |
A Linux PC or a Linux virtual machine (Virtual machine software: Virtual Box or VMware) | |
Steps |
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
alias subs=subs | |
function subs() { | |
movie="${1}" | |
filename="${1%.*}" | |
mappings=`ffprobe -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 "${movie}"` | |
OLDIFS=$IFS | |
IFS=, | |
( while read idx lang | |
do |
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
'use strict'; | |
const puppeteer = require('puppeteer'); | |
// Test scenarios | |
// 4 different entrypoints | |
// ~8 different cookie setting scenarios (ie every page has at least 1 video) | |
// 2 different pre-set options - cookies and cookie-less | |
const reqUrls = [ |
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
var canvas = document.createElement('canvas'); | |
var gl; | |
var debugInfo; | |
var vendor; | |
var renderer; | |
try { | |
gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl'); | |
} catch (e) { | |
} |
NewerOlder