Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
curl -O https://d1ejxu6vysztl5.cloudfront.net/comics/garfield/1978/1978-06-\[19-30\].gif;
curl -O https://d1ejxu6vysztl5.cloudfront.net/comics/garfield/1978/1978-\[07-12\]-\[01-31\].gif;
for i in {1979..2020}
do
curl -O https://d1ejxu6vysztl5.cloudfront.net/comics/garfield/$i/$i-\[01-12\]-\[01-31\].gif
done
@josereyesjrz
josereyesjrz / # kf5-solid - 2019-03-15_11-14-01.txt
Created March 15, 2019 20:20
kf5-solid (kde-mac/kde/kf5-solid) on macOS 10.14.3 - Homebrew build logs
Homebrew build logs for kde-mac/kde/kf5-solid on macOS 10.14.3
Build date: 2019-03-15 11:14:01
#define STRING "/home/httpd/grades.txt"
#define STRLEN 22
#define ARGV (STRLEN+1)
#define ENVP (ARGV+4)
.globl main
.type main, @function
main:
POST /index.php?zone=cpzone#PORTAL_ACTION# HTTP/1.1
Host: 10.2.0.1:8002
Content-Type: application/x-www-form-urlencoded
Content-Length: 91
auth_user=#########&auth_pass=UPRrp###&redirurl=http%3A%2F%2Fwww.uprrp.edu&accept=Continue
def ksack(M1, s):
sack = []
i = len(M1)-1
j = len(M1[0])-1
while (j != 0 and i >= 0):
if (j != M1[i][j][1] and j >= s[i]):
sack.append(i)
j = M1[i][j][1]
i -= 1
else:
def bsDo(v, s, i, j):
global M1
if (i == 0 and j >= s[0]):
return v[0]
if (i == 0 and j < s[0]):
return 0
if (j < s[i]):
return bsDo(v, s, i-1, j)
notstolen = bsDo(v, s, i-1, j)
stolen = bsDo(v, s, i-1, j-s[i]) + v[i]
# Just sending around another array with the indexes
# and transforming it in the samw ways as the input
def mergesort(A,P):
n = len(A)
if n == 1:
return A,P
A1,P1 = mergesort(A[0:n//2],P[0:n//2])
A2,P2 = mergesort(A[(n//2):],P[(n//2):])
return merge(A1,A2,P1,P2)
@josereyesjrz
josereyesjrz / # opam - 2016-10-25_23-34-49.txt
Created October 26, 2016 03:36
opam on macOS 10.12.1 - Homebrew build logs
Homebrew build logs for opam on macOS 10.12.1
Build date: 2016-10-25 23:34:49