Skip to content

Instantly share code, notes, and snippets.

@dwallraff
dwallraff / syslog_netcat.sh
Created November 10, 2016 02:54
Use netcat to send syslog messages
# Here’s how to create UDP syslog messages via nc, netcat:
echo<14>_sourcehost_ messagetext’ | nc -v -u -w 0 _syslog-host_ 514
@oreze
oreze / wyse_5070_bios_update_readme.txt
Last active March 18, 2025 15:57
How to update Dell Wyse 5070 BIOS using USB (no system installed)
How to update Dell Wyse 5070 BIOS using USB:
1. Go to https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=66kj4
2. Enter your service tag/model name (Wyse 5070 Thin Client)
3. Select BIOS operating system
4. Download exe file (eg. Wyse_5070_1.26.0.exe)
5. Format your pendrive using diskpart tool for example - for mine 32GB pendrive it worked only if filesystem was FAT32, NTFS was not visible
6. Copy Wyse_5070_1.26.0.exe to a USB pendrive
7. Insert pendrive into WYSE 5070
8. Start terminal
@notnotrobby
notnotrobby / cgp.md
Last active March 18, 2025 15:56
List of free resources to study computer graphics programming.
@stanislaw
stanislaw / Open source requirements managements tools.md
Last active March 18, 2025 15:54
Open source requirements managements tools

Open source requirements management tools

A tool developed to support Software Specification analysis and Testable Requirements definition.

Requirements management using version control.

@codeguy
codeguy / slugify.js
Created September 24, 2013 13:19
Create slug from string in Javascript
function string_to_slug (str) {
str = str.replace(/^\s+|\s+$/g, ''); // trim
str = str.toLowerCase();
// remove accents, swap ñ for n, etc
var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;";
var to = "aaaaeeeeiiiioooouuuunc------";
for (var i=0, l=from.length ; i<l ; i++) {
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i));
}
@GooRiOn
GooRiOn / setup.md
Last active March 18, 2025 15:46
Git For Win + Windows Terminal Setup
@GrahamM
GrahamM / I2S_MIC_UDP.ino
Last active March 18, 2025 15:45
ESP32 I2S Mic UDP streamer
/**
* ESP32 I2S UDP Streamer
*
* This is influenced by maspetsberger's NoiseLevel at
* https://github.com/maspetsberger/esp32-i2s-mems/blob/master/examples/NoiseLevel/NoiseLevel.ino
*
* @author GrahamM
*/
#include <driver/i2s.h>
@brittanyellich
brittanyellich / new-codebase-discovery-template.md
Last active March 18, 2025 15:45
new-codebase-discovery-template

Overview

How to document a new codebase Use this template to document a new codebase.

Business Logic

A place to record any important logic that you come across that is worth documenting.

Landmarks

Refers to the different landmarks of a codebase to help you navigate around. Where are the API methods defined? Where are interactions with the database?

@Inndy
Inndy / socks5client.py
Last active March 18, 2025 15:44
monkey patch socket module
import os
proxy = os.getenv('socks5_proxy')
if proxy:
host, port = proxy.split(':')
import socks # pip install pysocks
import socket
def create_connection(address, timeout=None, source_address=None):
sock = socks.socksocket()
@gvoze32
gvoze32 / ffmpeg GIF to MP4.MD
Last active March 18, 2025 15:44
Convert animated GIF to MP4 using ffmpeg in terminal.

To convert animation GIF to MP4 by ffmpeg, use the following command

ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4

Description

movflags – This option optimizes the structure of the MP4 file so the browser can load it as quickly as possible.

pix_fmt – MP4 videos store pixels in different formats. We include this option to specify a specific format which has maximum compatibility across all browsers.