Credit to bones7456.
Change values in settings.py, place it in the same directory as fileserver.py then run python2 fileserver.py
| #include <glib.h> | |
| #include <stdio.h> | |
| #include <wireplumber-0.5/wp/wp.h> | |
| void print_profiles(WpPipewireObject *device) { | |
| g_autoptr(WpIterator) iter = | |
| wp_pipewire_object_enum_params_sync(device, "EnumProfile", NULL); | |
| g_auto(GValue) val = G_VALUE_INIT; | |
| for (; wp_iterator_next(iter, &val); g_value_unset(&val)) { |
| # inspired by https://www.youtube.com/shorts/iX7HJxrrpGA | |
| # check it out | |
| from __future__ import annotations | |
| import random | |
| import math | |
| from dataclasses import dataclass | |
| from enum import Enum |
| # coding: utf-8 | |
| # Licensed under the MIT License | |
| # Copyright © 2016 Bharadwaj Raju <bharadwaj.raju@keemail.me> | |
| # Permission is hereby granted, free of charge, to any person obtaining a | |
| # copy of this software and associated documentation files (the "Software"), to deal in the Software without | |
| # restriction, including without limitation the rights to use, copy, modify, merge, publish, | |
| # distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
| # to whom the Software is furnished to do so, subject to the following conditions: |
| ! "Enabled modi" Set from: Default | |
| ! rofi.modi: window,run,ssh | |
| ! "Window opacity" Set from: Default | |
| ! rofi.opacity: 100 | |
| ! "Window width" Set from: Default | |
| ! rofi.width: 50 | |
| ! "Number of lines" Set from: Default | |
| ! rofi.lines: 15 | |
| ! "Number of columns" Set from: Default | |
| ! rofi.columns: 1 |
| #!/usr/bin/env bash | |
| #-- CONFIGURATION | |
| transparent_alpha=0 | |
| maximized_alpha=100 | |
| interval=0 | |
| #-- | |
| alpha_prop_list=() | |
| for prop in $(xfconf-query -c xfce4-panel -p /panels -l); do |
| #!/usr/bin/env python3 | |
| # Script to copy n random folders to a location | |
| # Usage: RandomCopier.py [source folder] [destination folder] [number to copy] | |
| import os | |
| import sys | |
| import shutil | |
| import random |
| import json | |
| class DataBase(object): | |
| def __init__(self, path): | |
| self.path = path | |
| self.load() | |
Python scripts to generate sound from descriptions of sound waves.
Waveform formula from http://code.activestate.com/recipes/578168-sound-generator-using-wav-file/
License: MIT
There are three versions: soundgen.py, soundgen2.py and soundgen3.py. If in doubt, use soundgen3.py
| import struct | |
| from Crypto.Cipher import AES | |
| def pad16(s): | |
| t = struct.pack('>I', len(s)) + s.encode('utf-8') | |
| return t + b'\x00' * ((16 - len(t) % 16) % 16) | |
| def unpad16(s): | |
| n = struct.unpack('>I', s[:4])[0] | |
| return s[4:n + 4] |