Skip to content

Instantly share code, notes, and snippets.

@s1lvester
s1lvester / fix_github_copilot.sh
Created April 6, 2023 14:16 — forked from sarimarton/fix_github_copilot.sh
Fix Github Copilot in dealing with self-signed certificates
# Fix Github Co-pilot self-signed cert problem
# See: https://github.com/orgs/community/discussions/8866#discussioncomment-3517831
# The script is modified to handle .vscode-server too (in WSL2)
fix_github_copilot() {
patch_ext() {
_VSCODEDIR=$1
_EXTENSIONSPATH="$HOME/${_VSCODEDIR}/extensions"
_RE=$2
_NAME=$3
_COPILOTDIR=$(ls "${_EXTENSIONSPATH}" | grep -E "${_RE}" | sort -V | tail -n1)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

NodeMCU wiring for Bootloader

MTDO == GPIO15

MTDO GPIO0 GPIO2 Mode Description L L H UART Download code from UART L H H Flash Boot from SPI Flash H x x SDIO Boot from SD-card

@s1lvester
s1lvester / Read-only FS on Arch Linux ARM.md
Created March 14, 2017 16:10 — forked from yeokm1/Read-only FS on Arch Linux ARM.md
Set up Arch Linux ARM on Raspberry Pi to boot from and use a read-only file-system

##Read-only FS on Arch Linux ARM

Unlike your typical computer where you usually shutdown properly, I cannot rely on this during the use of my Raspberry Pi. If the Raspberry Pi is improperly shutdown too many times, data corruption in the file system leading to unbootable SD card may result. So we should use a read-only file system.

Full instructions and explanations are obtained from this link but you can run these commands directly. I modified some of the instructions for personal convenience.

Login with default username: alarm, password: alarm

#Optionally enable root over SSH. The rest of these instructions assume u are in root.

Write along on how to build an ArchLinuxARM Scan-Server on an RPI.

December 2016

dependencies and software

yaourt -S sane confuse
yaourt -S scanbd

Now manually edit PKGbuild and add: --disable-Werror to ./configure line.

copy needed config files from sane to scanbd

@s1lvester
s1lvester / docker_tips.md
Last active October 26, 2016 06:52
Docker hints

Docker Tips

As one can guess, just some write-along on things I learned and used while trying to get along with docker. If anything is grossly wrong - feel free to correct me. Markus.

Garbage Collection

# for containers
docker rm $(docker ps -aq)

# for images
docker rmi $(docker images --filter dangling=true --quiet)
@s1lvester
s1lvester / rancheros_howto.md
Last active March 17, 2021 02:47
Write-up on playing around with RancherOS

RancherOS write-along

Date: 2016-10-04 Version: 1
Author: s1lvester@bockhacker.me

I just installed RancherOS on my FreeNAS-Machine See this gist. Afterwards this is a small writeup on what I did next.

First Container

See Quick Start Guide in the Rancher docs.

@s1lvester
s1lvester / rancheros_on_freenas.md
Last active March 23, 2021 08:36
Installing RancherOS on FreeNAS using iohyve

RancherOS on FreeNAS

Date: 2016-10-04 Version: 1.2
Author: s1lvester@bockhacker.me

This is my short documentation on how to install RancherOS on FreeNAS.

Versions used:
- RancherOS v.0.6.1
  • FreeNAS 9.10-stable
@s1lvester
s1lvester / keybase.md
Created June 19, 2015 07:59
keybase.io verification

Keybase proof

I hereby claim:

  • I am s1lvester on github.
  • I am s1lvester (https://keybase.io/s1lvester) on keybase.
  • I have a public key whose fingerprint is 79C9 1825 D17F 7C50 8C94 7B90 B532 5C6A 27EF 7C41

To claim this, I am signing this object: