CCCPaste

rsync-dir.py

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import (
absolute_import, division, print_function, unicode_literals

create-dpkg-list.py

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import (
absolute_import, division, print_function, unicode_literals

rm-unneeded-files.py

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import (
absolute_import, division, print_function, unicode_literals

perl-modules-installed.pl

#!/usr/bin/env perl

use Modern::Perl '2009'; # Enable Perl 5.10 features
use strict; # Included so that perlcritic does not complain
use warnings; # ditto

bd2291f4b2e92

daniel@swagg-htpc-01:~/test$ time ./a
Read n=6314466083072888893799357126131292332363298818330841375588990772701957128924885547308446055753206513618346628848948088663500368480396588171361987660521897267810162280557475393838308261759713218926668611776954526391570120690939973680089721274464666423319187806830552067951253070082020241246233982410737753705127344494169501180975241890667963858754856319805507273709904397119733614666701543905360152543373982524579313575317653646331989064651402133985265800341991903982192844710212464887459388853582070318084289023209710907032396934919962778995323320184064522476463966355937367009369212758092086293198727008292431243681 has 2046 bits.

answer 1=4994097331495993759590792520652782896298040702842052804596091316575363414862676472297324459047461969855851762208911221321241374084825500814598324057817295157460163428748617431743371535373584519311479667686627715728864057273036107427545351441992333703764148710086798963155916759426741193579376396522818496357335032139598670494577520161356987154136310419315797156777208723685881823376284494131513590136899083068033919977865483124290662185228944009736543594763905898717659641198560483737149541481094888019426062490884384838074953205628739379413727850315986194387378032781404281175230300985834217585463046424665894367379
done 40000000 iterations in time=1059 sec.

6fafd27a013ab

daniel@swagg-htpc-02:~/test$ gcc a.c -o a -lgmp
daniel@swagg-htpc-02:~/test$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15

2f3dd3c5cbffa

daniel@swagg-htpc-01:~/test$ time ./a
Read n=6314466083072888893799357126131292332363298818330841375588990772701957128924885547308446055753206513618346628848948088663500368480396588171361987660521897267810162280557475393838308261759713218926668611776954526391570120690939973680089721274464666423319187806830552067951253070082020241246233982410737753705127344494169501180975241890667963858754856319805507273709904397119733614666701543905360152543373982524579313575317653646331989064651402133985265800341991903982192844710212464887459388853582070318084289023209710907032396934919962778995323320184064522476463966355937367009369212758092086293198727008292431243681 has 2046 bits.

answer 1=4994097331495993759590792520652782896298040702842052804596091316575363414862676472297324459047461969855851762208911221321241374084825500814598324057817295157460163428748617431743371535373584519311479667686627715728864057273036107427545351441992333703764148710086798963155916759426741193579376396522818496357335032139598670494577520161356987154136310419315797156777208723685881823376284494131513590136899083068033919977865483124290662185228944009736543594763905898717659641198560483737149541481094888019426062490884384838074953205628739379413727850315986194387378032781404281175230300985834217585463046424665894367379
done 40000000 iterations in time=1059 sec.

ded4728ac8e86

daniel@stinkpad-02:~$ cowsay 'swagg boi was here!!'
______________________
< swagg boi was here!! >
----------------------
\ ^__^

70bda628d03a1

root@swagg-htpc-01:~# slackpkg search gmp


NOTICE: pkglist is older than 24h; you are encouraged to re-run 'slackpkg update'

NCTU LAB 07/05 NUM 2

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>