sudo adduser ubuntu tty
mkdir -p ~/Downloads && cd ~/Downloads
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb && rm cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install cuda xserver-xorg-legacy xfce4 x11vnc
mkdir ~/.x11vnc && x11vnc -storepasswd "password" ~/.x11vnc/passwd
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
import { readFile } from "fs/promises"; | |
import { Reader } from '@maxmind/geoip2-node'; | |
const anonymize = true; | |
const ipaddresses = (await readFile("ipaddresses.csv", "utf8")).split("\n"); | |
const countsPerASN: Map<number, number> = new Map(); | |
const reader = await Reader.open("./GeoLite2-ASN.mmdb"); |
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
<?php | |
class Enum | |
{ | |
private $enumsList = array(); | |
private $reverseList = array(); | |
public function __construct(array $enums) | |
{ |
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/env python2 | |
# blackwidow_enable.py | |
# | |
# Enables the M1-5 and FN keys to send scancodes on the Razer BlackWidow | |
# and BlackWidow Ultimate keyboards. | |
# | |
# You can use 'xev' and 'xbindkeys' to assign actions to the macro keys. | |
# | |
# Requires the PyUSB library. |