Skip to content

Instantly share code, notes, and snippets.

View scadl's full-sized avatar
🐴
Every day working like hell horse with burning ass

Alexandr scadl

🐴
Every day working like hell horse with burning ass
View GitHub Profile
@volkbay
volkbay / disable_apt_esm_ubuntu_pro_news.md
Created March 1, 2025 21:02
Disable Ubuntu PRO security news from ESM.

👾 Error

During apt upgrade you get Ubuntu PRO ESM related news. Sometimes, they get quite long and annoying.

🤔 Why do I see this error ?

At some point, you should have accepted to receive ubuntu-pro news.

🔎 How to solve ?

The clean and easy way is to rule out repo information of the esm security updates.

🕊️ Solution

@nisovin
nisovin / Godot Web Server Configs.md
Last active September 8, 2024 04:27
Godot Web Server Configs

Godot Web Server Configs

For Godot 4 and the threads export in Godot 3, you need to set special headers on your web server in order to enable SharedArrayBuffer. There are some examples here for various web servers.

Python

The script below can be used to start a web server that sets the required headers. The easiest way to use this is to place this python script in your export folder and double click it to start the server. Then you can view your game at http://localhost:8000.

@koistya
koistya / App.js
Last active June 8, 2022 09:55
How to add `onscroll` event in ReactJS component
import React from 'react';
let lastScrollY = 0;
let ticking = false;
class App extends React.Component {
componentDidMount() {
window.addEventListener('scroll', this.handleScroll, true);
}
@cofearabi
cofearabi / AndroidManifest.xml
Last active July 21, 2020 12:50
Android sample connect to the mysql server database and get the values of field of table , and display them.
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />