Coder Social home page Coder Social logo

scripts's Introduction

scripts

Miscellaneous scripts that I use and may be useful to others. Comments and contributions welcome.

change-wallpaper.pyw

A Python 3 script to change your desktop wallpaper. Works on Linux and Windows. Adds a caption showing the original filename. Can also change the lockscreen on your desktop (in Windows and LXDE). With a little setup, you can even get a rotating wallpaper on your phone.

See here for full manual and instructions.

update-60-minutes.pyw, copy-60-minutes.pyw

update-60-minutes scans various network folders to find albums around the 60 minute length, and adds them to a list.

copy-60-minutes copies one of these albums to a 'Commute' folder in your %UserProfile% folder. I sync this using Syncthing to my phone so that I have a ready selection of albums to listen to on my hour-long cycle commute.

random_cd.py

Crawl your music folder and find a CD to listen to. Scrobbles to last.fm using pylast. The from lastfm import lastfm line imports a bit of code that looks like this:

import pylast
lastfm = pylast.LastFMNetwork(api_key='MY_API_KEY', api_secret='MY_API_SECRET',
                              username='ning', password_hash='MY_PASSWORD_HASH')

For obvious reasons, the real code isn't posted here.

best-cycle-days.py

Check the upcoming forecast and work calendar to find the best days to cycle to work. I don't cycle every day so I want an easy summary of when the best time will be.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.