Skip to content

Instantly share code, notes, and snippets.

View batica81's full-sized avatar
🎯
Focusing

Vojislav Ristivojevic batica81

🎯
Focusing
View GitHub Profile
# Arbitrary waveform generator for Rasberry Pi Pico
# Requires 8-bit R2R DAC on pins 0-7. Works for R=1kOhm
# Achieves 125Msps when running 125MHz clock
# Rolf Oldeman, 13/2/2021. CC BY-NC-SA 4.0 licence
# tested with rp2-pico-20210205-unstable-v1.14-8-g1f800cac3.uf2
#### This is an abriged version that plays only a sine wave. Early proof of concept. by YU4HAK
from machine import Pin, mem32
from rp2 import PIO, StateMachine, asm_pio
@batica81
batica81 / DNS_TO_LOCALHOST.markdown
Created March 31, 2022 13:39 — forked from tinogomes/DNS_TO_LOCALHOST.markdown
Public DNS Pointing to localhost (127.0.0.1)

Available Public Wildcard DNS Domains pointing to localhost (127.0.0.1)

It turns out that some kind hearted people already set up wildcard domains for you already. You can use any domain below and/or any subdomain of these and they currently resolve to 127.0.0.1 but could switch at any time to resolve somewhere else. Here's the list of ones I know about. Let me know if there are more!

  • localhost - It will always works. Do you know why? I hope so.
  • [*.]fuf.me - Managed by @fidian; it will always point to localhost for IPv4 and IPv6
  • [*.]fbi.com - 👏 👏 👏 👏 👏
  • [*.]localtest.me
  • [*.]127-0-0-1.org.uk
  • [*.]vcap.me
@batica81
batica81 / sidetonePlayer.py
Created March 14, 2022 10:20
Plays a tone when some of specified keys are pressed.
# App plays a tone when some of specified keys are pressed. It works in the background as well.
# Best used with two sound cards (for Morse practice Zoom sessions for example).
# TODO: Add cosine shaping and remove clicking noise.
# Requirements:
# pip3 install pynput
# pip3 install pysinewave
@batica81
batica81 / linux_tips.md
Last active February 26, 2024 19:47
Tips for Linux installation

apt-get install

guake mc alien openvpn openssh-server libreoffice

<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Media player</title>
<style type="text/css">
// A simple way to protect from some XSS attacks
var sanitizeHTML = function (str) {
var temp = document.createElement('div');
temp.textContent = str;
return temp.innerHTML;
};

Keybase proof

I hereby claim:

  • I am batica81 on github.
  • I am batica (https://keybase.io/batica) on keybase.
  • I have a public key whose fingerprint is 7498 B67F 0F5C C46D 2F95 7305 9036 363C 2DC4 3654

To claim this, I am signing this object: