This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
content = open(sys.argv[1], 'r').read() | |
for k,v in map(lambda kv:kv.split("="),sys.argv[2:]): | |
content = content.replace('$$%s$$' % k, '%s' % v) | |
print(content) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url="http://www.google.com" | |
if [ ! -e tmp ]; then | |
curl --silent "$url" > tmp | |
fi | |
for i in {0..259200} | |
do | |
curl --silent "$url" | diff tmp - | |
if [ $? -ne 0 ]; then | |
echo "It Changes!" | |
curl --silent "$url" > tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "<ul>" > chars.html | |
for i in {0..65536} | |
do | |
echo "<li>&#$i; = &#$i;<li>" >> chars.html | |
done | |
echo "</ul>" >> chars.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <iostream> | |
#include <unistd.h> | |
using namespace std; | |
class programming | |
{ | |
private: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <unistd.h> | |
#include <math.h> | |
#define L_value 20e-6 | |
#define C_value 50e-12 | |
#define dt 10e-10 | |
#define SLEEP_MS 10 | |
#define U_0 5.0 | |
using std::printf; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <math.h> | |
#define L_value 20e-6 | |
#define C_value 50e-12 | |
#define dt 10e-10 | |
#define SLEEP_MS 10 | |
#define U_0 5.0 | |
float glob_f = 0.0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
double f1(double x) {return x*x*x;} | |
double xq(double x) {return x*x;} | |
double sin_func(double x) {return sin(x);} | |
double f(double begin, double end, double pieces, double (*fp)(double)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for line in $(sqlite3 /root/minidlna/files.db "SELECT ID,PATH FROM DETAILS WHERE TITLE='HERE THE NONE UNIQUE TITLE';"); | |
do | |
id=$(echo $line | cut -d"|" -f1); | |
path=$(echo $line | cut -d"|" -f2); | |
echo $id; | |
echo $path; | |
sqlite3 /root/minidlna/files.db "UPDATE DETAILS SET TITLE='$(basename $path)' WHERE ID=$id;"; | |
done; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.each($('.album-selection-list').children(),function(index, element){ setTimeout(function(){$(element).click()}, index*1000);}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for s in $(ls *.{part1.rar,part01.rar}); do unrar x -pserienjunkies.org $s; done |