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
@loveJesus
loveJesus / same_device_nat.sh
Created August 5, 2012 02:58
simple same device nat and port forwarding
#Jesus Christ is the Son of God
#I am indebted to the Lord for saving my life, He is awesome. He still does miracles, restores your heart and mind, and provides day to day sanity and wellbeing, direction and Wisdom. Its wonderful, praise His awesome deed of sending His Son, who died on the cross and became a curse so we could become His righteoussness. How great, how awesome is He!
#suppose eth0 is connected to the internet through a gateway/ip, but also a local network.
#this might be the case with a bridged VirtualBox connection, or a switch connecting a router and local computers
#This supposes that the internet connection is established, and a local network on 192.168.1.0/24 and port forwarding 1194 udp connection (openvpn)
#first the nat
iptables -A FORWARD -i eth0 -d 192.168.1.0/24 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -s 192.168.1.0/24 -o eth0 -j ACCEPT
[
{
"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 / .vimrc
Last active January 25, 2017 04:22
"Hallelujah
set nocompatible " be iMproved, required
nmap <C-N><C-N> :set invnumber<CR>
set pastetoggle=<F3>
nmap <C-O> :NERDTreeTabsToggle<CR>
syntax on
filetype off " required
set tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab
syntax on
filetype plugin indent on