I hereby claim:
- I am csabapalfi on github.
- I am csabapalfi (https://keybase.io/csabapalfi) on keybase.
- I have a public key whose fingerprint is C157 4F00 23AE 6CF5 91A5 0A75 B829 7EAC D043 535C
To claim this, I am signing this object:
//Trusting all certificates | |
TrustManager[] trustAllCerts = new TrustManager[]{new X509TrustManager() { | |
public java.security.cert.X509Certificate[] getAcceptedIssuers() { | |
return null; | |
} | |
public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) { | |
} | |
public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) { |
#!/bin/bash | |
maxLength=8 | |
for file in `find *` | |
do | |
if [ ${#file} -lt $maxLength ] | |
then | |
newFile=$file | |
while [ ${#newFile} -lt $maxLength ] |
-Dsun.net.spi.nameservice.nameservers=8.8.8.8 | |
-Dsun.net.spi.nameservice.provider.1=dns,sun |
javascript:(function(){ | |
$('a.lecture-link').each(function (index){ | |
var $lectureLink = $(this); | |
var downloadLink = $lectureLink.attr('href').replace('view','download.mp4'); | |
var downloadName = '\"' + (index+1) + '.' + $lectureLink.text().trim() + '.mp4\"'; | |
var cookieHeader = ' --header \"Cookie:'+ document.cookie + '\" '; | |
console.log('curl -L ' + cookieHeader + downloadLink + ' > ' + downloadName); | |
}); | |
})(); |
package com.csabapalfi.dropwizard; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.google.common.collect.ImmutableMap; | |
import com.yammer.dropwizard.Service; | |
import com.yammer.dropwizard.cli.ServerCommand; | |
import com.yammer.dropwizard.config.Bootstrap; | |
import com.yammer.dropwizard.config.Configuration; | |
import com.yammer.dropwizard.config.Environment; |
# get pdftk from here: https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.6-setup.pkg | |
pdftk dashboard_UX_v3.graffle.pdf burst | |
# sips is built in to OSX | |
ls *.pdf | xargs -I '{}' sips -s format png '{}' --out '{}'.png |
db.downloads.aggregate( | |
{ '$group': { _id: '$userId', total: { '$sum': 1 } } }, | |
{ '$match': { total: { '$gte': 2 } } } | |
); |
jhead -n%Y-%m-%d\ %H.%M%.%S *.jpg |
I hereby claim:
To claim this, I am signing this object:
ffmpeg -f gif -i infile.gif outfile.mp4 |