Skip to content

Instantly share code, notes, and snippets.

View dmikushin's full-sized avatar
🤓

Dmitry Mikushin dmikushin

🤓
View GitHub Profile
@dmikushin
dmikushin / matrix_as_graph.ipynb
Created January 29, 2024 16:48 — forked from V0XNIHILI/matrix_as_graph.ipynb
Matrix multiplication in graph form
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dmikushin
dmikushin / raspberryPiImageAutoShrinker.sh
Created January 24, 2023 14:03 — forked from free5ty1e/raspberryPiImageAutoShrinker.sh
Updated Raspberry Pi image auto shrinker script will shrink the ext4 filesystem down so you can restore the image on a smaller card
#!/bin/bash
# Automatic Image file resizer
# Written by SirLagz
# Fixed 2016.04.17 by @ChrisPrimeish
strImgFile=$1
if [[ ! $(whoami) =~ "root" ]]; then
echo ""
echo "**********************************"
echo "*** This should be run as root ***"
@dmikushin
dmikushin / raspberryPiImageAutoShrinker.sh
Created January 24, 2023 14:03 — forked from free5ty1e/raspberryPiImageAutoShrinker.sh
Updated Raspberry Pi image auto shrinker script will shrink the ext4 filesystem down so you can restore the image on a smaller card
#!/bin/bash
# Automatic Image file resizer
# Written by SirLagz
# Fixed 2016.04.17 by @ChrisPrimeish
strImgFile=$1
if [[ ! $(whoami) =~ "root" ]]; then
echo ""
echo "**********************************"
echo "*** This should be run as root ***"
@dmikushin
dmikushin / android-select-device
Last active September 15, 2021 17:30 — forked from dtmilano/android-select-device
Script to select one connected device or emulator when running ADB
#!/bin/bash
#=====================================================================
# Selects an android device
# Copyright (C) 2012-2020 Diego Torres Milano. All rights reserved.
#
# See:
# - http://dtmilano.blogspot.ca/2013/01/android-select-device.html
# - http://dtmilano.blogspot.ca/2012/03/selecting-adb-device.html
# for details on usage.
#=====================================================================