Skip to content

Instantly share code, notes, and snippets.

Avatar

george udosen udoyen

View GitHub Profile
View pd-gcloud.sh
#!/bin/bash
# start the gcloud command
# change the case of the command option
task=$(echo $1 | tr '[:upper:]' '[:lower:]')
# catch user input and check for validity
if [ $# -ne 2 ]
then
echo " "
@udoyen
udoyen / 51-android.rules
Created Sep 23, 2020 — forked from jdamcd/51-android.rules
Full set of Android USB vendor ID rules for Linux
View 51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev" #Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev" #ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="plugdev" #Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666", GROUP="plugdev" #Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666", GROUP="plugdev" #Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev" #Google
SUBSYSTEM=="usb", ATTR{idVendor}=="201E", MODE="0666", GROUP="plugdev" #Haier
SUBSYSTEM=="usb", ATTR{idVendor}=="109b", MODE="0666", GROUP="plugdev" #Hisense
@udoyen
udoyen / README.md
Created May 28, 2020 — forked from eruvanos/README.md
Simple mock server for testing using Flask
View README.md

Mock server for testing using flask

License

MIT

Prepare

Install flask and requests to run this example.

View Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver).md

Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)

This guide will walk you through the steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest.

Prerequisites

This guide assumes that you are using the following setup:

You could still make this guide work with other setups (possibly with some modifications to the commands and whatnot).

View Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS.md

Update 7/28/2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

Steps:

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
View Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS.md

Update 7/28/2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

Steps:

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
@udoyen
udoyen / monitor.sh
Created Dec 24, 2019
Bash script to use and monitor wifi hotspot connections on linux systems
View monitor.sh
#!/usr/bin/env bash
# how_wifi_clients.sh
# Shows MAC, IP address and any hostname info for all connected wifi devices
# written for openwrt 12.09 Attitude Adjustment
# modified by romano@rgtti.com from http://wiki.openwrt.org/doc/faq/faq.wireless#how.to.get.a.list.of.connected.clients
function mon () {
echo "# All connected wifi devices, with IP address,"
@udoyen
udoyen / merger.sh
Last active Jun 28, 2019
How to merge pdf files using the pdfunite tool on linux
View merger.sh
#!/usr/bin/env bash
set -e # Quit on first error
count=0
for i in ./*/*
do
my_array["$count"]="$i" # Creates an array with the filenames
((++count)) # Increase the array index
echo ${my_array[@]} # Echo the contents of the array
done
View vscode-ubuntu
[
{
"metadata": {
"id": "850c6bb1-4a81-4f83-a81f-835d651a211c",
"publisherId": "Mikael.Angular-BeastCode",
"publisherDisplayName": "Mikael"
},
"name": "Angular-BeastCode",
"publisher": "Mikael",
"version": "8.0.7"