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
#!/usr/bin/bash | |
# uses (modified) WoeUSB's "listUsb" to get all USB devices | |
# WoeUSB, listUsb: Copyright © 2013 Colin GILLE / congelli501 | |
# WoeUSB, listUsb: Copyright © 2017 slacka et. al. | |
# uses (modified) Janne Korhonen's installer script | |
# https://ypcs.fi/howto/2018/12/01/windowsiso/ | |
# | |
# | |
# Dependencies: apt-get install wimtools parted rsync wimtools | |
declare -a USB_DEVICES=() |
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 -euo pipefail | |
SENDER=192.168.178.25 | |
RECEIVER=192.168.178.59 | |
PORT=8445 | |
#on receiver | |
nc -l $PORT | ffmpeg -f rawvideo -pix_fmt yuyv422 -s:v 640x480 -i - -f v4l2 /dev/video0 2> /dev/null & | |
#on sender |
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 -Eeuo pipefail | |
if [ "$#" != 2 ] | |
then | |
( | |
echo "Usage: $0 <vpn-interface> <nameserver>" | |
echo "" | |
echo "For example: $0 tun0 8.8.8.8" | |
echo "" |
Mac:
sudo killall -HUP mDNSResponder; say dns cleared successfully
Linux:
sudo /etc/init.d/dnsmasq restart
sudo /etc/init.d/nscd restart
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
#! /usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# https://github.com/uchidalab/book-dataset/blob/master/scripts/download_images.py | |
import os | |
import codecs | |
import pandas as pd | |
from argparse import ArgumentParser | |
from urllib import request | |
from tqdm import trange | |
from joblib import Parallel, delayed |