Giter Club home page Giter Club logo

misc's Introduction

Misc

All kinds of patches und extensions, not big enough for their own repository

email

E-Mail is a little python script that forwards a mail sent to a single e-mailadress to all adresses specified in a list file. In addition we have a sneaky little GUI for use in Mediawiki, so you should be ready to go with this for a small mailinglist

backgroundChanger

backgroundChanger is a python script that automatically pulls the hottest pictures from a given subreddit(e.g. EarthPorn). One can then have his windowmanager change the pictures automatically. For awesome this is the lua code needed

-- {{{ Function definitions

-- scan directory, and optionally filter outputs
function scandir(directory, filter)
    local i, t, popen = 0, {}, io.popen
    if not filter then
        filter = function(s) return true end
    end
    print(filter)
    for filename in popen('ls -a "'..directory..'"'):lines() do
        if filter(filename) then
            i = i + 1
            t[i] = filename
        end
    end
    return t
end

-- }}}

-- configuration - edit to your liking
wp_index = 1
wp_timeout  = 10
wp_path = "/path/to/wallpapers/"
wp_filter = function(s) return string.match(s,"%.jpg$") or string.match(s,"%.jpg$") end
wp_files = scandir(wp_path, wp_filter)
 
-- setup the timer
wp_timer = timer { timeout = wp_timeout }
wp_timer:connect_signal("timeout", function()
 
  -- set wallpaper to current index for all screens
  for s = 1, screen.count() do
    gears.wallpaper.maximized(wp_path .. wp_files[wp_index], s, true)
  end
 
  -- stop the timer (we don't need multiple instances running at the same time)
  wp_timer:stop()
 
  -- get next random index
  wp_index = math.random( 1, #wp_files)
 
  --restart the timer
  wp_timer.timeout = wp_timeout
  wp_timer:start()
end)
 
-- initial start when rc.lua is first run
wp_timer:start()

(Taken from https://wiki.archlinux.org/index.php/Awesome) This script is tested with python2.7 and requires urlgrabber,configparser and praw to be installed

sentSerial

Sentserial is an easy to use serial interface for python applications. Usage: python2.7 sentSerial.py SERIALCOMMAND

replaceIt

Replace is a little c++ tool to replace strings in a textfile. It's designed for auto-generated letters and similar things

Installation:

```
make
sudo make install
```

Usage:

> replaceIt --help 
Will print all necessery information

OpenCV on 'Buntu

A little script to install OpenCV on Ubuntu machines either all by the script or you can choose from the steps(Install dependencies, Fetch OpenCV, Configure OpenCV, Compile & Install) using the s Option

Usage:

> bash install.sh h
Will print all informations

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.