Skip to content

Instantly share code, notes, and snippets.

View Lomeli12's full-sized avatar
🏳️‍🌈
Playing way too much FFXIV

Anthony Lomeli Lomeli12

🏳️‍🌈
Playing way too much FFXIV
View GitHub Profile
@Lomeli12
Lomeli12 / How.cpp
Created October 16, 2014 22:31
How
#include <iostream>
#include <string.h>
#include <cstdlib>
#include <cstring>
using namespace std;
int main(int argc, char* argv[]) {
string google = "https://www.google.com/search?q=";
string keyWord = "how";
@Lomeli12
Lomeli12 / gist:2c3ddba5c1aafec3b05c
Created January 14, 2015 08:01
Example of how to make a custom achievement
{
"pageTitle":"Example Title","_comment": "The title that will appear on the button on the achievements GUI. This will also act as the page id (with the spaces replaced with '-')",
"langZip" : "exampleLang.zip","_comment" : "The zip file that contains all the localization files, which should be in the same directory as the json file. The '.zip' part is optional",
"achievements" : {
"_comment" : "Here is where you will register all the achievements. The membername will act as the id for the achievement(try to stick to letters and numbers and not to use '.' or spaces). Remember to register parents first!",
"exampleAchievement1": {
"conditionType" : "pickupitem","_comment": "The id for the unlock condition you want to use. See https://github.com/Lomeli12/AchieveSON/tree/master/src/main/java/net/lomeli/achieveson/conditions to see all the conditions and their ids",
"params" : "minecraft:dirt","_comment": "The parameters for the condition, again see the link above to see what arguments the condi
#include <string>
#include <iostream>
using namespace std;
char replacementChar[12] = { 'a', 'e', 'i', 'o', 'u', 'y'};
string ubify(string baseString);
bool matches(char c);
### Keybase proof
I hereby claim:
* I am Lomeli12 on github.
* I am lomeli12 (https://keybase.io/lomeli12) on keybase.
* I have a public key whose fingerprint is 074B C209 234C 78E0 1236 D833 C168 5D09 FE13 07AC
To claim this, I am signing this object:
@Lomeli12
Lomeli12 / renew.sh
Last active January 1, 2017 10:27
My little script for renewing all my certs.
# NOTE!: This script assumes you're using ACME.SH by Neilpang
# to handle Let’s Encrypt certs and that, like me, it isn't playing
# nicely with Apache2 on CentOS 7.
#
# !! THIS IS NOT A CATCHALL RENEWAL SCRIPT !!
# !! IF YOU PLAN ON USING IT, MAKE SURE TO GO OVER IT AND MAKE !!
# !! NECESSARY CHANGES UNLESS YOU LIKE EVERYTHING BREAKING !!
#
# Remember to replace all instances of "service httpd restart" with
# whatever command you use to restart apache and change CONFIGPATH
@Lomeli12
Lomeli12 / AABB.java
Last active February 4, 2017 00:09
Axis Aligned Bounding Box - Anything missing or wrong?
package net.lomeli.savetown.util.math;
public class AABB {
public static final AABB ZERO_BOX = new AABB(0, 0, 0, 0);
private float x1, x2, y1, y2;
public AABB(float x1, float x2, float y1, float y2) {
this.x1 = x1;
this.x2 = x2;
this.y1 = y1;
@Lomeli12
Lomeli12 / Program.cs
Created May 8, 2017 22:06
Hasher Source
using System;
using System.IO;
using System.Text;
using System.Reflection;
using System.Diagnostics;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Security.Cryptography;
namespace hasher {
@Lomeli12
Lomeli12 / CPOL.txt
Created September 14, 2017 03:30
The CPOL License as text. Since Code Project only provides it in the form of an HTML document, I took the time to make it a text document like every other license out there.
The Code Project Open License (CPOL) 1.02
Preamble
This License governs Your use of the Work. This License is intended to allow
developers to use the Source Code and Executable Files provided as part of the
Work in any application in any form.
The main points subject to the terms of the License are:
@Lomeli12
Lomeli12 / ControllerInput.kt
Created April 1, 2018 06:15
LibGDX PS4 Controller Reference
import com.badlogic.gdx.controllers.Controller
import com.badlogic.gdx.controllers.ControllerAdapter
import com.badlogic.gdx.controllers.PovDirection
import ktx.log.info
object ControllerInput : ControllerAdapter() {
override fun connected(controller: Controller?) {
if (controller != null) info { "Controller Connected: $controller" }
}

How to use your Keybase.io PGP key to sign commits


  1. Download and install GnuPG.
  2. Download and install Keybase, then sign into the app.
  3. Get the hexadecimal fingerprint for your key. You can find this on your Keybase public profile page, and ignore the spaces. For this tutorial, I'll use my key as an example.

  1. Import you Keybase keys into GnuPG.