Skip to content

Instantly share code, notes, and snippets.

View asheroto's full-sized avatar
:electron:
Calculating Universe

asheroto

:electron:
Calculating Universe
View GitHub Profile

Keybase proof

I hereby claim:

  • I am asheroto on github.
  • I am asheroto (https://keybase.io/asheroto) on keybase.
  • I have a public key ASAKOUzNenLAk3fU54FgDAzi1YENYwx7p46calIWaEpLQQo

To claim this, I am signing this object:

While in the rescue mode, type these commands:
set root=(hd0,1)
set prefix=(hd0,1)/boot/grub
insmod normal
normal
If you get an error on any of them, change the hd,1 to hd,2 or hd,3, etc until you don't get an error
Once booted into the OS, run these two commands to make it stick:
apt update && apt upgrade -y
apt upgrade build-essential net-tools htop git curl unzip -y
apt update && apt upgrade -y
apt install git curl -y
git clone https://github.com/asheroto/exa-linux-install.git
cd exa-linux-install
sh ./install-exa.sh
cd ..
rm exa-linux-install -r
curl -O http://vestacp.com/pub/vst-install.sh
var player = new Clappr.Player({
sources: [<url to m3u8 file>],
width: '100%',
height: '100%',
autoPlay: true,
disableVideoTagContextMenu: true,
hideMediaControl: true,
parentId: "#player",
playbackNotSupportedMessage: 'No available streams',
plugins: [HlsjsPlayback],
@asheroto
asheroto / phpMyAdmin-config.inc.php
Last active September 20, 2020 01:05
Working phpMyAdmin config.inc.php config with cookie based authentication
<?php
declare(strict_types=1);
/**
* This is needed for cookie based authentication to encrypt password in
* cookie. Needs to be 32 chars long.
*/
$cfg['blowfish_secret'] = '32-character-random-secret'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/* Authentication type */
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover]
"ExcludeExplicitO365Endpoint"=dword:00000001
@asheroto
asheroto / Dotnet-Publish-Script-Windows.ps1
Last active February 15, 2021 10:47
Publishes dotnet packages for supported .NET 5 compatible operating systems
<#
.SYNOPSIS
Publishes dotnet packages for supported .NET 5 compatible operating systems
.DESCRIPTION
Publishes dotnet packages for supported .NET 5 compatible operating systems
.NOTES
Created by : asheroto
Date Coded : 01/26/2020
More info: : https://gist.github.com/asheroto/b8c82ea515e8baa569807108d1d9ed0a
#>
@asheroto
asheroto / Install-Docker-on-Debian.sh
Last active February 10, 2021 16:12
Install Docker on Debian Linux
apt-get remove docker docker-engine docker.io containerd runc
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
add-apt-repository \
@asheroto
asheroto / PastePlainText.ahk
Last active March 9, 2021 02:48 — forked from jadient/PastePlainText.ahk
AutoHotKey script to paste text without formatting
; WindowsKey-V shortcut to paste text with no formatting
; (like Paste Special > Plain Text, but faster and works everywhere)
; for AutoHotKey
#v::
ClipSaved := ClipboardAll
tempClipboard := clipboard
Clipboard := tempClipboard
Send ^v
Sleep, 500
Clipboard := ClipSaved
@asheroto
asheroto / Public-Key-Authentication-Troubleshooting.md
Last active March 29, 2024 17:00
OpenSSH on Windows - working sshd_config for public key authentication

Public key authentication troubleshooting

Make sure you don't have ANY instances of sshd or ssh-agent running (important):

  • Run PowerShell as Administrator:
Stop-Service sshd
Stop-Service ssh-agent
taskkill /f /im sshd.exe
taskkill /f /im ssh-agent.exe