Skip to content

Instantly share code, notes, and snippets.

curl https://api.openai.com/v1/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ "model": "text-davinci-003", "prompt": "Say this is a test", "max_tokens": 7, "temperature": 0 }'
@npiv
npiv / Server 2 logs (192.168.1.121)
Last active July 23, 2019 18:11
logs hazelcast test
INFO: [192.168.1.121]:5701 [brain-split-group] [3.12.1] Committing/rolling-back live transactions of [192.168.1.136]:5701,UUID: c6d0aa7b-f1e4-4cca-99d6-1635153b9c11
Jul 23, 2019 7:55:44 PM com.hazelcast.internal.partition.InternalPartitionService
INFO: [192.168.1.121]:5701 [brain-split-group] [3.12.1] Fetching most recent partition table! my version: 0
Jul 23, 2019 7:55:44 PM com.hazelcast.internal.partition.InternalPartitionService
INFO: [192.168.1.121]:5701 [brain-split-group] [3.12.1] Most recent partition table version: 0
Jul 23, 2019 7:59:10 PM com.hazelcast.nio.tcp.TcpIpConnection
INFO: [192.168.1.121]:5701 [brain-split-group] [3.12.1] Initialized new cluster connection between /192.168.1.121:5701 and /192.168.1.136:55378
Jul 23, 2019 7:59:10 PM com.hazelcast.internal.cluster.impl.ClusterJoinManager
INFO: [192.168.1.121]:5701 [brain-split-group] [3.12.1] [192.168.1.136]:5701 should merge to us , both have the same data member count: 1
Jul 23, 2019 7:59:10 PM com.hazelcast.nio.tcp.TcpIpConnection
0eNrtvV9vXdmR5flVBL2MDeQ1zv5/tt+6G131MGjMAPloGAWmkpaJokiBolz2GPruQ6ZI6UoZcc76BW82qtD3SWlZZ92IvWP/jxXrn69/uv54+f7u6ub+3366vf3313/859e/+fD6j386+p+P/9/Vm9ubz3/94ertzcX149/d/+P95es/vr66v3z3+ofXNxfvHv/X5fXlm/u725urN4c3V3dvPl7dv/70w+urm58v//76j+nTD7sA93cXNx/e397dH366vD7+OH/68w+vL2/ur+6vLj+b8sv/+Me/3Xx899Pl3QO6h/HD6/e3Hx4+u715/NUHqENqP7z+x8Of5QH+56u7B5N/+T/ro33foWaA2mXUwm2t+6iV2yqgNoBa5RboHFWwdXxBvfjw4fLdT9dXN28P7y7e/PXq5vKQLez01eIH5KtfIvLN7fv3l3eHNxc/XV++Nn5lpb8yPv9IPv4Rc6T86qem3kx6K6UFowo9msAALDpqxqhKC5AB+GyrhVMxTjVxwCDLW/Z0jGPbM2ScZQtmpTC2V/oo2OqsvFAY06msx7ke5jlTUCHKsx7lWQetFFRxv8EptYdn1NzhT6UlsERkfQAlECUrRlV6FAwvfTkoYLTp27GSsK1CC5SMbVVQA7u8JMAGtnkKbOPWZgG2c2sV2MH3j0ojrBxWsfbrCPvLxYf7w9XNh8u7+4f/x0AtprHd2u4vGDULqCm4h17I/FizbPvUTS8UVGnlKoM2HbRR0O/czxZox9t6YUjUryPt48NJ/O7t3e3Dnztb8O/HxA9fDvs37z+ay3Jdyc/U8M98HYkf3l9f3dttnv/wpSutA/GCN/02TlJsSX/4EgEWRqY7bNuUIpiStlulChDLtjONboKF+G0dBFaOxlUjoyQ8SNqqThtVnjTbhJhpfybq8sq06pgJYgozZs+xswBa6nrBm3YhrHvFqMJGpcvrUsp6z3UKqnTdwAcBpVVXfBBQUPkBS+irwQ9YCiq/RhdaYPBrdAWVH7AWAZWfrxRUfo2
m Abschwung
m Absorptionssprung
m Absprung
n Abzeichnung
m Achsensprung
m Armsprung
m Attributprüfung
m Aufschwung
m Aufsprung
@npiv
npiv / words.html
Last active January 27, 2016 14:44
top 200
<table border="1" class="dataframe">\n <thead>\n <tr style="text-align: right;">\n <th></th>\n <th>stem</th>\n <th>percent</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>que</td>\n <td>3.2894</td>\n </tr>\n <tr>\n <th>1</th>\n <td>de</td>\n <td>6.5010</td>\n </tr>\n <tr>\n <th>2</th>\n <td>no</td>\n <td>9.4907</td>\n </tr>\n <tr>\n <th>3</th>\n <td>ser</td>\n <td>12.4123</td>\n </tr>\n <tr>\n <th>4</th>\n <td>la</td>\n <td>14.9998</td>\n </tr>\n <tr>\n <th>5</th>\n <td>un</td>\n <td>17.2705</td>\n </tr>\n <tr>\n <th>6</th>\n <td>a</td>\n <td>19.5018</td>\n </tr>\n <tr>\n <th>7</th>\n <td>lo</td>\n <td>21.6617</td>\n </tr>\n <tr>\n <th>8</th>\n <td>el</td>\n <td>23.4729</td>\n </tr>\n <tr>\n <th>9</th>\n <td>estar</td>\n <td>25.1662</td>\n </tr>\n <tr>\n <th>1
alias gl='gla -20'
alias gla='git log --pretty=format:'\''%C(yellow)%h%Cred%d%Creset - %C(cyan)%an %Creset: %s %Cgreen(%cr)'\'
alias standup_report='gl --author=Nick --since=Yesterday'
[].slice.call(document.getElementsByClassName("pricetable")[0].getElementsByTagName("td")).
filter(function(el) { return /.* pw/.test(el.innerText) }).
forEach(function(el) { el.innerText = Math.round(parseInt(el.innerText.slice(1)) * 52 * 100 / 12)/100 })
Date,Exercise,Category,Weight (kgs),Reps,Distance,Distance Unit,Time
2014-08-03,Flat Barbell Bench Press,Chest,45.0,12,,,
2014-08-03,Flat Barbell Bench Press,Chest,45.0,10,,,
2014-08-03,Flat Barbell Bench Press,Chest,60.0,8,,,
2014-08-03,Flat Barbell Bench Press,Chest,70.0,6,,,
2014-08-03,Flat Barbell Bench Press,Chest,70.0,6,,,
2014-08-03,Flat Barbell Bench Press,Chest,75.0,6,,,
2014-08-03,Incline Dumbbell Bench Press,Chest,50.0,6,,,
2014-08-03,Incline Dumbbell Bench Press,Chest,60.0,6,,,
2014-08-03,Incline Dumbbell Bench Press,Chest,60.0,5,,,
@npiv
npiv / fit
Created May 7, 2015 08:45
fit
"Date","Exercise","Category","Weight (kgs)","Reps","Distance","Distance Unit","Time"
2014-08-03,Flat Barbell Bench Press,Chest,45.0,12,,,
2014-08-03,Flat Barbell Bench Press,Chest,45.0,10,,,
2014-08-03,Flat Barbell Bench Press,Chest,60.0,8,,,
2014-08-03,Flat Barbell Bench Press,Chest,70.0,6,,,
2014-08-03,Flat Barbell Bench Press,Chest,70.0,6,,,
2014-08-03,Flat Barbell Bench Press,Chest,75.0,6,,,
2014-08-03,Incline Dumbbell Bench Press,Chest,50.0,6,,,
2014-08-03,Incline Dumbbell Bench Press,Chest,60.0,6,,,
2014-08-03,Incline Dumbbell Bench Press,Chest,60.0,5,,,
Date Exercise Category Weight (kgs) Reps Distance Distance Unit Time
2014-08-03 Flat Barbell Bench Press Chest 45.0 12
2014-08-03 Flat Barbell Bench Press Chest 45.0 10
2014-08-03 Flat Barbell Bench Press Chest 60.0 8
2014-08-03 Flat Barbell Bench Press Chest 70.0 6
2014-08-03 Flat Barbell Bench Press Chest 70.0 6
2014-08-03 Flat Barbell Bench Press Chest 75.0 6
2014-08-03 Incline Dumbbell Bench Press Chest 50.0 6
2014-08-03 Incline Dumbbell Bench Press Chest 60.0 6
2014-08-03 Incline Dumbbell Bench Press Chest 60.0 5