Skip to content

Instantly share code, notes, and snippets.

View alphaolomi's full-sized avatar
🎯
Focusing

Alpha Olomi alphaolomi

🎯
Focusing
View GitHub Profile
@Mahkul
Mahkul / Book.java
Created April 9, 2011 11:56
Book class
package database;
public class Book
{
/* at the very beginning we need to create instance variables **/
public String title;
public String author;
@plentz
plentz / nginx.conf
Last active July 22, 2024 11:19
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 21, 2024 08:34
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@PurpleBooth
PurpleBooth / README-Template.md
Last active July 22, 2024 02:29
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@snoj
snoj / extractpfx.php
Created February 12, 2016 15:24
Extract certificates and key from PFX.
<?php
//Requires php with the openssl module.
//This is useful for instances where installing openssl isn't an option
// but PHP is available, like on Windows servers using WAMP.
//use php extractpfx.php /path/tocert.pfx "pass phrase"
//http://php.net/manual/en/function.openssl-pkcs12-read.php
if(file_exists($argv[1])) {
$rawpfx = file_get_contents($argv[1]);
@dillansimmons
dillansimmons / passUTM.js
Last active June 2, 2024 14:32
Pass current UTMS to in page links Javascript
// JS for grabbing utm params and parsing into url
var getRefQueryParam = function() {
var temp = {};
document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function() {
var decode = function(s) {
return decodeURIComponent(s.split("+").join(" "));
};
temp[decode(arguments[1])] = decode(arguments[2]);
});
return temp;
@jakebathman
jakebathman / remove_laravel_comments.php
Last active July 10, 2024 08:29
Remove comments from fresh Laravel files
<?php
/*
|--------------------------------------------------------------------------
| Remove Laravel Comments
|--------------------------------------------------------------------------
|
| Just made a new Laravel project, but don't want all those big
| comment blocks? Put this in the root of your project and run
| "php remove_laravel_comments.php"
|
@bl4ckbo7
bl4ckbo7 / nitrxgen.py
Last active March 21, 2020 07:57
Nitrxgen md5 crahking script (Requires the Internet to access the API)
#!/usr/bin/env python3
#Title: Nitrxgen md5 crahking script (Requires the Internet to access the API)
#Author: bl4ckbo7
"""
[ Examples ]
------------
./nitrxgen - hashes.txt
./nitrxgen 6b6e8ca697b4ea4bdc8ac88613ab646e
@alphaolomi
alphaolomi / infyom_generator_quick.md
Created September 20, 2019 07:41
Infyom Generator

Infyom Generator

Examples

php artisan infyom:api $MODEL_NAME

php artisan infyom:scaffold $MODEL_NAME

php artisan infyom:api_scaffold $MODEL_NAME
@alphaolomi
alphaolomi / awesome_laravel.md
Last active November 10, 2022 01:44
Curated List of Awesome Laravel