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
| Add density before document | |
| #convert -density 400 /tmp/pages.ps document.pdf | |
| # convert -density 400 ../document -resize 2048x img%d.png | |
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 <stdlib.h> | |
| int main(int argc, char **argv) | |
| { | |
| void *a; | |
| a=malloc(sizeof(int)*1); | |
| *((int *)a)=25; | |
| printf("%d",*(int*)a); | |
| free(a); |
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
| #!/usr/bin/perl | |
| $Pwd=$ARGV[0]; | |
| $MinPwd=8; | |
| chop($Pwd); | |
| if ($Pwd=~/[[:upper:]]/) { $maj=1; } else { $maj=0; } | |
| if ($Pwd=~/[[:digit:]]/) { $dig=1; } else { $dig=0; } | |
| if ($Pwd=~/[[:punct:]]/) { $car=1; } else { $car=0; } | |
| if ($Pwd=~/[[:lower:]]/) { $min=1; } else { $min=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
| #!/usr/bin/env python3 | |
| import ipaddress | |
| ### read ip from ip.txt | |
| ### check if there is a match in subnet files | |
| ipfile=open("ip.txt") | |
| for ip in [line[:-1] for line in ipfile]: |
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
| #!/bin/bash | |
| #updated ffmpeg progress indicator | |
| #by Rupert Plumridge | |
| #for updates visit www.prupert.co.uk | |
| #Creative Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England & Wales Licence | |
| # Based on the ffmpegprogress bar from: http://handybashscripts.blogspot.com/2011/01/ffmpeg-with-progress-bar-re-work.html | |
| # which was based on my initital progress script - circle of life and all that ;) | |
| # version 2.0 | |
| # 07.04.2011 | |
| # now uses apparently better progress detection, based on duration of overall video and progress along the conversion |
NewerOlder