ciphermethod.com

ISBN = 9780199226559

by on May.16, 2015, under Uncategorized


#BlueBook code decryption
import sys
def sieve(n):
x = [1] * n
x[1] = 0
for i in range(2,n/2):
j = 2 * i
while j < n: x[j]=0 j = j+i return x def prime(n,x): i = 1 j = 1 while j <= n: if x[i] == 1: j = j + 1 i = i + 1 return i - 1 x=sieve(10000) code = [1206,301,384,5] key =[1,1,2,2,] sys.stdout.write("".join(chr(i) for i in [73,83,66,78,32,61,32])) for i in range (0,4): sys.stdout.write(str(prime(code[i],x)-key[i])) print

Leave a Comment more...


Toggle Swap

by on May.02, 2015, under Linux


#!/bin/bash

free_data="$(free)"
mem_data="$(echo "$free_data" | grep 'Mem:')"
free_mem="$(echo "$mem_data" | awk '{print $4}')"
buffers="$(echo "$mem_data" | awk '{print $6}')"
cache="$(echo "$mem_data" | awk '{print $7}')"
total_free=$((free_mem + buffers + cache))
used_swap="$(echo "$free_data" | grep 'Swap:' | awk '{print $3}')"

echo -e "Free memory:\t$total_free kB ($((total_free / 1024)) MB)\nUsed swap:\t$used_swap kB ($((used_swap / 1024)) MB)"
if [[ $used_swap -eq 0 ]]; then
echo "Congratulations! No swap is in use."
elif [[ $used_swap -lt $total_free ]]; then
echo "Freeing swap..."
sudo swapoff -a
sudo swapon -a
else
echo "Not enough free memory. Exiting."
exit 1
fi


Scott Severance from askubuntu.com

Leave a Comment more...

映画『攻殻機動隊 新劇場版』

by on Apr.29, 2015, under Uncategorized

攻殻機動隊、その起源。草薙素子、出生の秘密。世界に衝撃を与えた「攻殻機動隊」の全てが明かされる――原作:士郎正宗 総監督:黄瀬和哉 脚本:冲方丁 音楽:コーネリアス キャスト:坂本真綾 他 制作:プロダクションI.G 2015年6月20日(土)全国ロードショー

Source: 映画『攻殻機動隊 新劇場版』

Leave a Comment more...

Spring Forward

by on Mar.10, 2015, under Apple

Leave a Comment more...


Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

But Wait, There's More!

A few highly recommended friends...