Skip to content

Instantly share code, notes, and snippets.

View hookdump's full-sized avatar
🏠
Working from home

Ignacio hookdump

🏠
Working from home
View GitHub Profile
@hookdump
hookdump / .zshrc
Created April 18, 2023 20:51
Ask ChatGPT in ZSH
# Paste your OpenAI API Key here
export OPENAI_API_KEY="sk-..."
# Display colors
RED='\033[0;31m'
NC='\033[0m' # No Color
# GPT function
function gpt {
set +o nomatch # disable nomatch option
@hookdump
hookdump / .zshrc
Created June 27, 2022 20:39
Auto-load .nvmrc
# place this after nvm initialization!
autoload -U add-zsh-hook
load-nvmrc() {
local node_version="$(nvm version)"
local nvmrc_path="$(nvm_find_nvmrc)"
if [ -n "$nvmrc_path" ]; then
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")
if [ "$nvmrc_node_version" = "N/A" ]; then

Filosofía CBC - Comisión 24202 (Lun y Jue de 9 a 11hs)

Datos varios

Modalidad

Los encuentros sincrónicos (videollamada) son los Jueves de 9 a 10hs.

Ingresar acá: https://meet.google.com/rmh-dgwy-bru

@hookdump
hookdump / stream.js
Created January 10, 2020 18:58
Monitorear tuits
var Twit = require('twit')
var T = new Twit({
consumer_key: '***',
consumer_secret: '***',
access_token: '***',
access_token_secret: '***',
timeout_ms: 60*1000,
})
@hookdump
hookdump / markdown.component.ts
Created September 7, 2017 12:35 — forked from istupakov/markdown.component.ts
Angular 4 Markdown Component with Router Navigation.
import { Component, Input, ViewChild, AfterViewInit, ElementRef } from '@angular/core';
import { Router } from '@angular/router';
import { markdown } from 'markdown';
@Component({
selector: 'markdown',
template: `<div [innerHtml]="html" #root></div>`
})
export class MarkdownComponent implements AfterViewInit {
@ViewChild('root') root: ElementRef;
@hookdump
hookdump / increment_build_number.js
Created July 4, 2017 02:56
Cordova hook for incrementing build numbers
#!/usr/bin/env node
// Save hook under `project-root/hooks/before_prepare/`
//
// Don't forget to install xml2js using npm
// `$ npm install xml2js`
var fs = require('fs');
var xml2js = require('xml2js');
@hookdump
hookdump / automount-shared.sh
Created May 15, 2017 02:35
automount-vbox-shared
#!/bin/sh
#-----------------------------------------------------------------------------
# Discover VirtualBox shared folders and mount them if it makes sense
#-----------------------------------------------------------------------------
if ! type VBoxControl > /dev/null; then
echo 'VirtualBox Guest Additions NOT found' > /dev/stderr
exit 1
fi

Keybase proof

I hereby claim:

  • I am hookdump on github.
  • I am ifreiberg (https://keybase.io/ifreiberg) on keybase.
  • I have a public key ASA5MlmvVRCn3FElHSvdAakt1EVRMTU31w59IEWp5auLpwo

To claim this, I am signing this object:

@hookdump
hookdump / 686.sh
Created December 14, 2015 23:54 — forked from scruffyfox/687.sh
Checks every 3 seconds if patch is out
#!/usr/bin/env bash
while [ 1 ]; do
RESP=$(curl --silent 'http://www.dota2.com/686')
if [[ $RESP != *"<title>Dota 2 - 6.86 Coming Soon</title>"* ]]; then
echo "***** PATCH OUT HYPE ******"
exit
else
echo "not out"
fi
@hookdump
hookdump / gist:2bbbb28cfaeefa9b95b8
Created February 20, 2015 12:58
pftontstash issue
~/pyglui(master ✔) sudo python setup.py install
generating glew.pxd based on '/usr/include/GL/glew.h'
missing cimport in module 'pyglui.cygl': pyglui/ui.pyx
missing cimport in module 'pyglui.cygl': pyglui/graph.pyx
Compiling pyglui/ui.pyx because it changed.
Compiling pyglui/graph.pyx because it changed.
Compiling pyglui/cygl/utils.pyx because it changed.
Compiling pyglui/cygl/shader.pyx because it changed.
Compiling pyglui/pyfontstash/fontstash.pyx because it changed.
Cythonizing pyglui/cygl/shader.pyx