Skip to content

Instantly share code, notes, and snippets.

View Eugeny's full-sized avatar

Eugene Eugeny

View GitHub Profile
@ikurni
ikurni / podman-issue-overlay
Created July 7, 2020 17:07
Podman Issue Overlay fs does not supported
##Got podman issue when run podman command :
##Error: could not get runtime: kernel does not support overlay fs: overlay: the backing xfs filesystem is formatted without d_type support, which leads to incorrect behavior. Reformat the filesystem with ftype=1 to enable d_type support. Running without d_type is not supported.: driver not supported
##Reinstall podman and containers-common does not work
##Edit /etc/containers/storage.conf
vi /etc/containers/storage.conf
##Find storage.options and make sure below line is in there
[storage.options]
mount_program = "/usr/bin/fuse-overlayfs"
@coenraadhuman
coenraadhuman / rpiwpafix.txt
Created April 10, 2020 11:14
RPi - Could not communicate with wpa_supplicant: error n2 wifi
Solution
I referred to this official forum.
Raspbian Stretch: Wifi not starting on boot – Raspberry Pi Forums
First,
sudo vim /etc/network/interfaces
@syxanash
syxanash / Pizza Recipe.md
Last active March 27, 2024 12:01
My Pizza Recipe

Pizza Recipe

pizza recipe

Hi I'm Simone! This recipe was developed based on some tips I acquired over time from lots and lots of resources and tutorials like youtube videos, family and friends recipes. I'm just an amateur who likes making pizza :)

If you plan to perfectionate your pizza making skills, I suggest to come up with your own recipe and research online watching lots of tutorials and different techniques. For now the following recipe is the one that works for me!

(I'm not a professional pizzaiolo and I never had any sort of experience in a professional pizzeria restaurant)

Ingredients and quantities

@jimkang
jimkang / mediasource-mime-codecs.md
Last active October 16, 2023 13:00
How to get the video codec the MIME types that MediaSource SourceBuffers require

When you call addSourceBuffer on a MediaSource, you need to pass in a string that is the MIME type for the codec. If this isn't correct, the video won't play. (You can also pass this to the MediaSource's isTypeSupported function, though there seems to be a gap between what it thinks it can play and what it will play.)

The string looks like this:

video/mp4; codecs="avc1.42E01E, mp4a.40.2"

The values required in that string can be obtained by running the mp4file tool from mp4v2 on a video file, like so:

 mp4file --dump movie.mp4
Debugging stunnel problems in Ajenti:
0. Disable SSL in ajenti:
change "ssl": { "enable": true to false in /etc/ajenti/config.json
service ajenti restart
1. Regenerate the certificate
ajenti-ssl-gen hostname -f
@jbpros
jbpros / some_spec.js
Created August 9, 2011 21:00
Stub node modules with jasmine
require('./spec_helper.js');
describe("something.act()", function() {
it("calls the 'root' function of my module", function() {
var mod = spyOnModule('my_module');
something.act();
expect(mod).toHaveBeenCalled();
});
});