- Use a Windows installation media and boot it
- Go to:
Repair your computer > Troubleshoot > Advanced options > Startup Repair
- If it fails (like most of cases), go to:
Repair your computer > Troubleshoot > Advanced options > Command Prompt
- There first run:
diskpart
- Then run:
list vol
- Select the Windows hidden partition:
select volume X
(where X is the number of the partition) - Assign it a letter:
assign letter=Y
(make sure you assign an unused one) - Exit diskpart, run:
exit
- Run:
bootrec /rebuildbcd
- Given that your Windows partition has the letter
C:
assigned, run:bcdboot c:\windows /s c:
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
# See this wiki page for more info: | |
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
print_info() { | |
info "$(color 10)" title | |
prin "$(color 12)───────────── $(color 1)Hardware$(color 12) ────────────" | |
info "$(color 1)" model | |
info "$(color 1)" cpu | |
info "$(color 1)" gpu | |
# info "$(color 1)CPU Usage" cpu_usage | |
info "$(color 1)" gpu_driver # Linux/macOS only |
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
# Assuming you are in your desired Python environment, just run: | |
pip freeze --local | grep = > requirements.txt | |
# "grep =" ensures it will only list packages and versions | |
# Then, for restoring the packages, just run "pip install -r requirements.txt" |
I wrote this short tutorial because extending my internal storage using my new micro SD card on my Retroid Pocket 2+ failed all the time. Only setting it up as portable/external worked. However, this instructions should work in any Android 5.0+ device.
So, in case you have problems setting up your SD card on your Android device via graphical interface (setting up storage as extended internal memory or portable), and you get a corrupted SD card or any other error, follow these steps to fix it via adb shell
:
- Make sure you have adb access to your Android device:
Settings > System > About
, touch/click onBuild number
untilDeveloper options
are enabled: - Go to
Settings > System > Developer options
and enable USB debugging. - Assuming you have adb installed on your remote terminal run the following:
adb shell
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
# if you do not know your app id you can find it using: adb shell pm list packages -f` | |
adb shell appops set --uid your.app.id MANAGE_EXTERNAL_STORAGE allow |
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
! This is a comment | |
||api.coingecko.com^ |
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
# Gentoo's modification of /etc/bash/bashrc | |
# | |
# This file is sourced by all *interactive* bash shells on startup, | |
# including some apparently interactive shells such as scp and rcp | |
# that can't tolerate any output. So make sure this doesn't display | |
# anything or bad things will happen ! | |
# Test for an interactive shell. There is no need to set anything | |
# past this point for scp and rcp, and it's important to refrain from |
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
sudo pacman -Rs $(sudo pacman -Qdtq) |
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
# import the new connection using the vpn config file you have | |
sudo nmcli connection import type openvpn file config-file.ovpn | |
# rename an old/current connection: | |
sudo nmcli connection modify connectionId connection.id differentConnectionId | |
# rename the new imported connection | |
sudo nmcli connection modify config-file connection.id newConnectionId | |
sudo nmcli connection modify newConnectionId connection.interface-name newConnectionName |
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
{ eval "${ssh-agent}"; ssh-add .ssh/mykey; } &>/dev/null | |
# so -> { eval "${command1}"; command2; } &>/dev/null | |
# very useful for hiding .bashrc and .zshrc output | |
# source: https://unix.stackexchange.com/a/73607 |
NewerOlder