Skip to content

Instantly share code, notes, and snippets.

View andras-tim's full-sized avatar
💭
I may be slow to respond.

Andras Tim andras-tim

💭
I may be slow to respond.
View GitHub Profile
@andras-tim
andras-tim / Advanced_Button_Clicker.user.js
Created July 23, 2012 15:56
Jenkins workaround - Advanced Button Clicker
// ==UserScript==
// @name Advanced Button Clicker
// @namespace http://jenkins.server/
// @description Jenkins Job Configureurator Helper Script
// @include http://jenkins.server/job/*/configure
// @version 1.0
// ==/UserScript==
function loadChecker()
{
#!/bin/bash
GLOBAL_PARAMETERS='-N -o ControlMaster=no -o ControlPath=none'
BIND_IP=127.0.0.1
REOPEN_SLEEP=5
######
# FUNCTIONS
#
function supervise_proxy()
@andras-tim
andras-tim / README.md
Last active August 26, 2015 15:18
Quips as Screensaver

Jira Quips as Screensaver

Requirements

  • a typing style screensaver with program input (e.g. "phosphor" of xscreensaver)
  • python2
  • beautifulsoup4
  • (cowsay)

Start

  • start quip.py for multiple quips
  • start cowquip.sh for cowsay style output
@andras-tim
andras-tim / win-cleaner.cmd
Last active December 28, 2015 09:33
Windows cleaner for multi-user environment - tiny new version of https://github.com/andras-tim/tiaCleaner
@echo off
:: Windows cleaner for multi-user environment
:: @author: Andras Tim <[email protected]>
:: @source: https://gist.github.com/andras-tim/500320d47dead2e18903
::
:: For no change: set NO_CHANGE=1
::
goto main
@andras-tim
andras-tim / README.md
Last active March 15, 2016 15:11
WinPrint Statistics Script for Munin

WinPrint Statistics Script for Munin

Setup

  1. Download files to %ProgramFiles%\Munin Node for Windows
  2. Register winprint.cmd as external plunin in munin-node.ini:
...
[ExternalPlugin]
Winprint=C:\Program Files (x86)\Munin Node for Windows\winprint.cmd
...
@andras-tim
andras-tim / README.md
Last active January 13, 2016 02:31
mtime2system - Set Windows System time to a file modification time

mtime2system

Set Windows System time to a file modification time.

Requirements

Use

  1. Open a command prompt (cmd.exe)
  2. Run script with the desired file path, e.g.:
@andras-tim
andras-tim / README.md
Last active January 13, 2016 02:49
Sleeping 3... 2... 1...

VisualSleep

Usage

  1. Run visualsleep.cmd 3
Sleeping 3... 2... 1...
  1. Done :)
@andras-tim
andras-tim / README.md
Last active August 22, 2016 09:26
Random wallpaper from Google Image search on Xfce4

Random wallpaper from Google Image search on Xfce4

This is a toolchain, what written for set a random single & dual monitor wallpapers on multiple monitors.

The set-a-random-wallpaper.sh wraps the whole process: download a random wallpaper with tool-1, crop for multi monitor config with tool-2, and set properly on all displays with tool-3.

Feel free, write your own walpaper setter "tool-3" and use this toolchain on non-Xfce desktop too!


@andras-tim
andras-tim / README.md
Last active September 9, 2023 13:35
Set New Tab background in Google Chrome

Set New Tab background in Google Chrome

  1. Install new-tab-background.user.js UserScript into your Tampermonkey
  2. Edit the UserScript header
  • Set up top-level domain of your country (change .hu to your country's TLD)
  • Change the file:///full/path/of/background.jpg example background URL to your desired URL (if you want to use local resource - `file://`` you have to enable "Allow access to file URLs" right for Tampermonkey)

Check my toolchain what can download & set random wallpaper from Google Image search on Xfce4

@andras-tim
andras-tim / README.md
Last active November 21, 2016 09:56
Config for https://github.com/lukas2511/letsencrypt.sh :: /etc/letsencrypt.sh/*

Config for dehydrated (letsencrypt.sh)

Setup

  1. Clone dehydrated repository into e.g. /opt/git-3th/letsencrypt.sh/
  2. Download this file into /etc/letsencrypt.sh/ directory
  3. Cusomize files
  • Set CONTACT_EMAIL in config.sh
  • Set your domains in domains.txt
  • Set your custom domain specific things in hook.sh
  1. Run first by hand for generate certs: /opt/git-3th/letsencrypt.sh/letsencrypt.sh -c