Skip to content

Instantly share code, notes, and snippets.

@rytoj
rytoj / Picture_rename
Created January 4, 2015 19:48
Renaming pictures
#Filter by StartingWord
#Cut 8 first letters
for i in StartingWord*; mv $i $(echo $i|cut -c 8-)
// Jei selektoriuje yra "zodis" selektorius bus pakeistas į ***
function keitimoFj() {
if ($(this).text().indexOf('zodis') != - 1) {
return '<p><b> ***b></p>';
}
}
$("selektorius").replaceWith(keitimoFj)
@rytoj
rytoj / webm convert
Last active August 29, 2015 14:15
Notilus script - WebmPart
#!/bin/bash
# NAME: WebmPart 0.1
# DESCRIPTIOM: Converts video files to .webm
# LICENSE GNU GPL v3 (http://www.gnu.org/licenses/gpl.html)
# DEPENDENCIES: libav-tools, notify-osd
time=$(zenity --forms \
--title="Webm convert" --text="EXAMPLE: start-time-> 00:00:00 Duraction-> 5" \
--add-entry="Start-time" \
*** Targets ***
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Welcome to this SmokePing website.
# Ping Tests
+ PING
probe = FPing
@rytoj
rytoj / Data search
Last active September 28, 2015 08:17
#Test for less than 1 parameter
if (( $# < 1));then
echo "Usage $0 <name>"
exit 1
fi
echo "Hello $1"
exit 0
######################################################
#!/bin/bash
#function to convert youtube clip to .webm
youtubewebm(){
avconv -i $1 -acodec libvorbis -aq 5 -ac 2 -qmax 25 -threads 2 $2.webm
}
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.addMenu("STATUSAS", [
{name : "DATA", functionName : "statusasAtlikta"},
]);
}
function statusasAtlikta() {
@ECHO OFF
REM.-- Prepare the Command Processor
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
set psexec="\\192.168.22.252\tmp\psexec.exe"
set nircmd="\\192.168.22.252\tmp\nircmd.exe"
set user=administrator
set pass=password
set savedir="\\192.168.22.252\tmp\test.png"
#!/bin/bash
sort /home/user/Documents/randomq/quotes | uniq -u| shuf -n 1