- Download the correct *.cab file from: Microsoft Update
- Extract *.cab file
- Execute
pnputil -i -a RNDIS.inf
with higher privileges
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 cls=clear | |
alias c=clear | |
alias x=exit | |
alias l='ls -lisah' | |
alias ld='du -h | sort -nr | head -n 10' # large directories |
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 | |
# @usage bash <(curl -s https://gist.githubusercontent.com/mansouryaacoubi/0582fe108f699956c677b95e24c71e9a/raw/73c7ce97257eb76a4d2c3a1b4c7243f8efdf0355/dl-tools.sh) | |
cd ~ | |
echo "download .bash_aliases" | |
wget https://gist.githubusercontent.com/mansouryaacoubi/e3454417d57858dec9273e5503132670/raw/81f0e701d9114e9a8bd6fc94a71f0d7499acb884/.bash_aliases >/dev/null 2>&1 | |
echo " create directory tools" | |
mkdir tools | |
echo " change directory" |
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 | |
# @author Mansour Yaacoubi | |
# @filename update-rpi.sh | |
# @task Installs new updates and specific programs | |
################# CHECK WHETHER SCRIPT IS RUNNING AS ROOT ################# | |
# Run script as root (higher privileges) | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run 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
#!/bin/bash | |
# @author Mansour Yaacoubi | |
# @filename addwifi.sh | |
# @usage sudo ./addwifi.sh "SSID" "WPA-Key" | |
# @task adds wifi to the wpa_supplicant file and reconfigures wpa_cli | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit 1 | |
else |
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
REM @author Mansour Yaacoubi | |
REM @filename cleanformatdisk.bat | |
REM @task Cleans disk, creates primary partition and formats disk | |
REM f.e. for raspberry pi drives before writing new image of SD-Card | |
@echo off | |
cls | |
net session >nul 2>&1 | |
IF %ERRORLEVEL% == 0 GOTO START | |
echo Please run this batch as administrator |
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
# @author Mansour Yaacoubi | |
# @filename enable_rpi_otg.py | |
# @task Enable ssh over USB for Raspberry Pi | |
# | |
# Install pywin32 for this (https://sourceforge.net/projects/pywin32/files/pywin32/) | |
import win32api, pywintypes | |
import requests | |
from time import sleep |
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
LIST DISK | |
SELECT DISK 1 | |
CLEAN | |
CLEAN | |
CREATE PART PRI | |
SELECT PART 1 | |
ACTIVE | |
ASSIGN | |
FORMAT FS=NTFS QUICK | |
EXIT |
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
@echo off | |
set url=%1 | |
mode con cols=70 lines=1 | |
color 37 | |
::color 17 | |
:check | |
IF %url%. EQU . ( | |
set /P url=Host: | |
goto check | |
) |