Skip to content

Instantly share code, notes, and snippets.

evan@X60-1:~$ cat > custsorted.txt
1 1@foo.bar
2 2@foo.bar
3 3@bar.baz
4 4@wee.foo
5 5@bar.baz
6 6@fig.bla
7 7@here.there
8 8@some.where
9 9@what.ever
evan@X60-1:~$ join j1.txt j2.txt
1 foo a
1 foo b
2 bar c
2 bar d
2 baz c
2 baz d
evan@X60-1:~$ join j1.txt j2.txt -o 1.1,2.2,1.2
1 a foo
1 b foo
evan@X60-1:~/test$ ls -a
. .. test.txt
evan@X60-1:~/test$ cat test.txt
foobarbaz
evan@X60-1:~/test$ find * | xargs sed -i -e "s/foo/fff/" test.txt
evan@X60-1:~/test$ cat test.txt
fffbarbaz
evan@X60-1:~/test$ ls -a
. .. test.txt
#!/bin/bash
echo $1
for i in {1..5}
do
echo $RANDOM
done
def formula(samples, networkSize):
return networkSize * (1 - math.e**((-1.0*samples)/networkSize))
def binarySearch(distinctSamples, samples):
if distinctSamples == 0 or samples == 0:
return 0
# Upper and lower are network size guesses.
lower = distinctSamples
upper = distinctSamples * 2
import math
def formula(samples, networkSize):
return networkSize * (1 - math.e**(-samples/networkSize))
def binarySearch(distinctSamples, samples):
if distinctSamples == 0 or samples == 0:
return 0
# Upper and lower are network size guesses.
lower = distinctSamples
import math
def formula(samples, networkSize):
return networkSize * (1 - math.e**(-samples/networkSize))
def binarySearch(distinctSamples, samples):
if distinctSamples == 0 or samples == 0:
return 0
# Upper and lower are network size guesses.
lower = distinctSamples
TMCI> Probe trace: UID=1028808958754767097 target=0.20008642460618886 nearest=0.25208539905713134 best=0.20806758532596314 htl=17 counter=2 linear=2 location=0.39561718908819665node UID=7769338933697115775 prev UID=-923816849678890637 peer locs=[1.6814639028465022, -1.8101384644199756, -1.120820034825679, -1.2094985972171957, -1.2520853990571315, -1.4003086366877113, -1.5065118170080063, 1.453185741841095, -1.2394332866577793, 1.3932373246307903, -1.1718053947534868, 1.3960552213867907, 1.6779136682963243, -1.434212194069796, -1.3169016255485269, -1.1751800482817751, -1.3975592913449946, -1.0016262936898, -1.395520009270594, 1.629859143890315, 1.6728396203185851, -1.3167279201079816, -1.8124669008416365, -1.8247518270036593, -1.208067585325963, -1.629011913747928, -1.3904094520918477, -1.6309470211996282, -1.5338372366226034, -1.5353360289351592, -1.2109935057146388, -1.1170158658305829, 1.3928707807194627, -1.1940324998572813, -1.5339888591533866, -1.2408726530152892, -1.2353817241132985, -1.4495337697524353
<?xml version="1.0" encoding="UTF-8"?>
<project name="freenet-autodep" default="all" basedir=".">
<description>
Freenet is free software that lets you publish and retrieve information without
fear of censorship. To achieve this, the network is entirely decentralized, and
all actions are anonymous. Without anonymity, there can never be true freedom
of speech, and without decentralization the network would be vulnerable to attack.
This file is to build Freenet with minimal effort. It will check for Freenet's
dependencies and requirements, and will try to satisfy these if they are not
build:
[javac] /media/Data/freenet-src/fred-staging/build-clean.xml:165: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 341 source files to /media/Data/freenet-src/fred-staging/build/main
[javac] PushingTagReplacerCallback.java:81: cannot find symbol
[javac] symbol : constructor ImageElement(freenet.clients.http.FProxyFetchTracker,freenet.keys.FreenetURI,long,freenet.clients.http.ToadletContext,freenet.clients.http.filter.HTMLFilter.ParsedTag,boolean)
[javac] location: class freenet.clients.http.updateableelements.ImageElement
[javac] return new ImageElement(tracker, new FreenetURI(src), maxSize, ctx, pt, true).generate();
[javac] ^
[javac] TestnetHandler.java:130: warning: [deprecation] MINOR in freenet.support.Logger has been deprecated
[javac] boolean logMINOR = Logger.shouldLog(Logger.MINOR, this);