Skip to content

Instantly share code, notes, and snippets.

View onlurking's full-sized avatar
:shipit:
ship it

Diogo Felix onlurking

:shipit:
ship it
View GitHub Profile
@onlurking
onlurking / veduca-dl.py
Last active March 4, 2018 04:50
Usage example: python veduca.py -u <email> -p <password> -c https://veduca.org/courses/enrolled/103099
#!/usr/bin/python
import sys
import os
import argparse
import re
import requests
from subprocess import call
export PATH="$PATH:$HOME/.npm-packages/bin"
export PATH="$PATH:$HOME/.local/bin"
export PATH="$PATH:$HOME/.gem/ruby/2.4.0/bin"
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="lambda-mod"
source $ZSH/oh-my-zsh.sh
VISUAL="nvim"
plugins=(git git-extras)
# Path Management
export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl"
# Aliases for utilities
@onlurking
onlurking / arch.md
Last active July 18, 2024 10:56
Arch Linux chroot on Termux

Arch Linux

chroot on Termux

Let's download the Arch ARM image with the text-browser w3m and install proot:

apt install w3m proot
w3m http://archlinuxarm.org/os/ArchLinuxARM-utilite-latest.tar.gz
import argparse
import json
from urllib.request import Request, urlopen
import time
def request_until_succeed(url):
req = Request(url)
success = False
while success is False:
@onlurking
onlurking / vaporwave.py
Created April 28, 2017 05:44
Vaporwave a string
"""
Vaporwave a string
"""
def glyph(letter):
"""Returns the full-width character of a given character
Usage::
>>> glyph("p")
'p'
@onlurking
onlurking / aiml.md
Created April 28, 2017 04:01
AIML 2.0 Working Draft

AIML 2.0 Working Draft

Revision 1.0.2.22
March 9, 2014
Richard S. Wallace
ALICE A.I. Foundation
Contact: [email protected]

[redshift]
adjustment-method=randr
location-provider=manual
temp-day=3800
temp-night=3600
brightness-day=0.6
brightness-night=0.6
gamma-day=0.9
gamma-night=0.8
transition=1

Keybase proof

I hereby claim:

  • I am onlurking on github.
  • I am onlurking (https://keybase.io/onlurking) on keybase.
  • I have a public key ASC3DYA-vmLR0JhRsTtkA9lXgKe5sRV8w76cvCs0FjEw3wo

To claim this, I am signing this object: