Skip to content

Instantly share code, notes, and snippets.

[playlist]
File1=http://37.59.28.208:8058/stream
Title1=95bFM Auckland, New Zealand
Length1=-1
File2=http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p
Title2=BBC Radio 1
Length2=-1
@tsl0922
tsl0922 / .tmux.conf
Last active April 30, 2024 10:29
vim style tmux config
# vim style tmux config
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
@mhadaily
mhadaily / disable-tab.dart
Created March 7, 2022 16:17
Disable tab index in Flutter
import 'package:flutter/material.dart';
void main() {
runApp(const TabBarDemo());
}
class TabBarDemo extends StatefulWidget {
const TabBarDemo();
@override
@tzach
tzach / docker-compose.yml
Created March 16, 2023 20:46
docker-compose.yml for starting a 3 node scylla cluster
version: "3"
services:
scylla-node1:
container_name: scylla-node1
image: scylladb/scylla:5.1.0
restart: always
command: --seeds=scylla-node1 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
volumes:
@solarkraft
solarkraft / syncthing-automerge.py
Created December 30, 2022 18:00
Monitors a Syncthing-synced directory and tries to merge conflicting files (based on https://www.rafa.ee/articles/resolve-syncthing-conflicts-using-three-way-merge/). Probably adaptable for other directory types, but only tested with Logseq (works for me™️).
import os
import time
import re
import subprocess
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
def get_relative_path(path):
return os.path.relpath(path)
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 30, 2024 10:25
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@turicas
turicas / screenshot.py
Created June 6, 2020 20:34
Python script to take screenshot of a website
#!/usr/bin/env python3
# requires: pip install splinter
import argparse
import datetime
import os
import shutil
import time
from urllib.parse import urlparse
from pathlib import Path
@tzmartin
tzmartin / embedded-file-viewer.md
Last active April 30, 2024 10:21
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@cemtopkaya
cemtopkaya / cpp-sorular.md
Last active April 30, 2024 10:21
C++ soruları

Sorular

Soru [beginner easy compiler linker loader]

Compiler, linker ve loader arasındaki ilişkiyi anlatınız.

Cevap

image

@ammuench
ammuench / pipewire-crackling-fix.md
Created December 28, 2023 03:09
Fixing Crackling/Buzzing Audio on Pipewire

Fixing Crackling/Buzzing Audio on Pipewire

Quick potential fix for crackling/buzzing audio issues

Check values of these two files:

cat /sys/class/rtc/rtc0/max_user_freq
cat /proc/sys/dev/hpet/max-user-freq