Skip to content

Instantly share code, notes, and snippets.

View loveJesus's full-sized avatar

Love JESUS loveJesus

View GitHub Profile
-- For God so loved the world, that He gave His only begotten Son, that all who believe in Him should not perish but have everlasting life
module Euler76CountingSummationsChirho
( countingSummationsChirho,
)
where
sumCounter_chirho :: Integer -> Integer -> Integer
sumCounter_chirho minSum_chirho sumLeft_chirho
| sumLeft_chirho <= 0 = 1
| otherwise = sum([
@loveJesus
loveJesus / generate_apple_client_id_from_p8_chirho.py
Last active July 20, 2022 16:17
Hallelujah - Generate apple oauth2 client id from p8 file
# For God so loved the world, that He gave His only begotten Son, that all who believe in Him should not perish but have everlasting life
# pip install pyjwt
import time
import jwt
SOCIAL_AUTH_APPLE_TEAM_ID_CHIRHO = '3....' # see on the membership page, aleluya
SOCIAL_AUTH_APPLE_PRIVATE_KEY_CHIRHO = """-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----""" # From the p8 file, aleluya
SOCIAL_AUTH_APPLE_KEY_ID_CHIRHO = '3...' # services id aleluya
[
{
"code_chirho": "ACDT",
"name_chirho": "Hora De Verano De Australia Central",
"continent_chirho": "Oceanía",
"utc_chirho": "UTC +10:30"
},
{
"code_chirho": "ACST",
"name_chirho": "Hora Estándar De Australia Central",
@loveJesus
loveJesus / gist:c2efba783d7f99504cf8d3b0f64bbfeb
Created February 22, 2022 22:12
Aleluya ejemplo login a Google Oauth
# Aleluya ejemplo login normal por servidor
https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=...&scope=openid%20email&
state=security_token%3D138r5719ru3e1%26url%3Dhttps%3A%2F%2Foauth2-login-demo.example.com%2FmyHome&nonce=0394852-3290485-2490358&redirect_uri=http%3A//localhost:8001/code_chirho
curl https://oauth2.googleapis.com/token \
-d "code=..." \
-d "client_id=..." \
-d "client_secret=..." \
-d "redirect_uri=http%3A//localhost:8001/code_chirho" \
-d "grant_type=authorization_code"
@loveJesus
loveJesus / Resize LUKS Aleluya
Created August 29, 2021 16:00
Praise Jesus - Extend a LUKS partition (in my case worked on the live root partition, backup beforehand has been recommended)
# Thank You Jesus for https://semanticlab.net/sysadmin/encryption/How-to-resize-a-LUKS-encrypted-root-partition/
resize with fdisk
# resize the LUKS parititon (dm_crypt-3)
cryptsetup resize dm_crypt-3
# resize the physical device on top of it
pvresize /dev/mapper/dm_crypt-3
@loveJesus
loveJesus / aleluya.asm
Created April 15, 2020 19:14
Aleluya, a simple 44byte dos asm intro.
;Aleluya, a simple 44byte dos asm intro. Compile with "nasm aleluya.asm -o aleluya.com" .
BITS 16 ; 16bit asm code
org 100h ; 'boilerplate' assembly directive for offest of dos com programs
section .text ; starting the code section, memory variables and data are different
push 0xA000 ; This is the base location of video memory in mode 13h
pop es ; ES register cannot be set directly by an immediate (a direct number)
mov ax, 13h ; these two lines set a simple flat video mode called 13h
int 10h ; with 320x200 pixels and 256 color palette
mov dx,0 ; we will use DX as a frame counter
frame_loop_aleluya: ; our label for the start of drawing a frame, aleluya!
#Hallelujah
#Jesus Juve
import bpy
import bmesh
from mathutils import Vector
import sys
argv_aleluya = sys.argv
argv_aleluya = argv_aleluya[argv_aleluya.index("--") + 1:] if("--" in argv_aleluya) else [];
bpy.context.object
@loveJesus
loveJesus / -
Last active February 7, 2017 02:11
echo -n "Login Hallelujah: "; read login_aleluya
echo -n "Password Hallelujah: "; read password_aleluya
pacman -Sy
pacman -S archlinux-keyring tmux --noconfirm
pacman -Syu --noconfirm
pacman-db-upgrade
pacman -S jre8-openjdk blender --noconfirm
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
export LANG=en_US.UTF-8
@loveJesus
loveJesus / Dockerfile
Last active December 10, 2016 00:15
God be praised, alpine elixir phoenix docker
#Hallelujah
FROM alpine
ADD . /hallelujah
WORKDIR /hallelujah
MAINTAINER hallelujah@loveJesus.xyz
RUN apk --update add build-base \
ca-certificates \

Keybase proof

I hereby claim:

  • I am loveJesus on github.
  • I am lovejesus (https://keybase.io/lovejesus) on keybase.
  • I have a public key whose fingerprint is 06E6 5D55 44FE 877D 43A3 F4B7 C426 1C56 A33C F749

To claim this, I am signing this object: