Skip to content

Instantly share code, notes, and snippets.

@sergiobuj
sergiobuj / Dockerfile_alpine
Last active February 17, 2024 10:13
troubleshoot docker ENV
FROM alpine:latest
ENV no_proxy internal.example.com,internal2.example.com
ENV NO_PROXY internal.example.com,internal2.example.com
RUN apk update && apk upgrade
@sergiobuj
sergiobuj / index.ts
Created October 18, 2022 02:18
Testing "assemblyscript-json" to parse a custom object
import { JSON } from "assemblyscript-json/assembly";
// Parse an object using the JSON object
const payload = `
'{
"hello": "world",
"value": 24,
"pack": {
"123": {
@sergiobuj
sergiobuj / config.ini
Created September 5, 2022 21:28 — forked from nhocki/config.ini
Visa appointment (renewal)
[USVISA]
; Account and current appointment info from https://ais.usvisa-info.com
USERNAME = YOUR_EMAIL
PASSWORD = YOUR_PASSWORD
SCHEDULE_ID = YOUR_ID
MY_SCHEDULE_DATE = YYYY-MM-DD
; Spanish - Colombia
COUNTRY_CODE = es-co
; Bogotá
FACILITY_ID = 26
@sergiobuj
sergiobuj / Pueblos.ipynb
Last active February 6, 2022 04:00
Colombia - "I trained an A.I. to generate British placenames"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sergiobuj
sergiobuj / Castle.xml
Created January 8, 2017 20:39 — forked from bemasher/Castle.xml
Example of parsing xml in golang.
<?xml version="1.0" encoding="UTF-8" ?>
<Data>
<Series>
<id>83462</id>
<Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors>
<Airs_DayOfWeek>Monday</Airs_DayOfWeek>
<Airs_Time>10:00 PM</Airs_Time>
<ContentRating>TV-PG</ContentRating>
<FirstAired>2009-03-09</FirstAired>
<Genre>|Drama|</Genre>

Keybase proof

I hereby claim:

  • I am sergiobuj on github.
  • I am sergiobuj (https://keybase.io/sergiobuj) on keybase.
  • I have a public key ASCrhxq62efhlu1luvbnooGcizSldCi70aHCfNlFkVpuRAo

To claim this, I am signing this object:

@sergiobuj
sergiobuj / bin-search.cl
Created August 31, 2016 17:44
Learning CLisp - Implement Binary Search
(defun binary-search (key collection) ;; Function with simple signature
(defun binary-search-recursion (data element lower upper) ;; Helper function with multiple parameters
(let* ((range (- upper lower))
(mid (+ lower (round (/ range 2))))
(value (nth mid data)))
(cond
((= value element) mid)
((< range 1) -1)
((< value element) (binary-search-recursion data element (+ mid 1) upper))
((> value element) (binary-search-recursion data element lower (- mid 1))))))

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

@sergiobuj
sergiobuj / Dockerfile
Created February 18, 2016 08:12
cl-jupyter on docker with sbcl 1.3.2
FROM buildpack-deps:jessie
RUN apt-get update -qq && apt-get install -y bzip2 wget build-essential python3-dev python3-pip unzip libzmq3-dev
RUN wget -nv http://downloads.sourceforge.net/project/sbcl/sbcl/1.3.2/sbcl-1.3.2-x86-64-linux-binary.tar.bz2
RUN wget -nv https://beta.quicklisp.org/quicklisp.lisp
RUN wget -nv https://github.com/fredokun/cl-jupyter/archive/master.zip
RUN bzip2 -cd sbcl-1.3.2-x86-64-linux-binary.tar.bz2 | tar xvf -
RUN unzip master.zip
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.