Skip to content

Instantly share code, notes, and snippets.

View Sama34's full-sized avatar
👽
I may be slow to respond due to language differences.

Omar G. Sama34

👽
I may be slow to respond due to language differences.
View GitHub Profile
@Sama34
Sama34 / README.md
Created March 13, 2021 21:27 — forked from BoGnY/README.md
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)

Requirements

  • Install GPG4Win: this software is a bundle with latest version of GnuPG v2, Kleopatra v3 certificate manager, GNU Privacy Assistant (GPA) v0.9 which is a GUI that uses GTK+, GpgOL and GpgEX that are respectively an extension for MS Outlook and an extension for Windows Explorer shell
  • Install Git for Windows: so you can have a *nix based shell, this software is a bundle with latest version of Git which use MINGW environment, a Git bash shell, a Git GUI and an extension for Windows Explorer shell (Make sure your local version of Git is at least 2.0, otherwise Git don't have support for automatically sign your commits)
  • Verify
@Sama34
Sama34 / diceroller.php
Last active May 9, 2022 23:24
Dice Roller MyCode 1.2.0
<?php
/**
* Dice Roller MyCode
* Copyright 2017 Shinka, All Rights Reserved
*
* License: http://www.mybb.com/about/license
*
*/
global $alias, $patterns;
@Sama34
Sama34 / _dump.php
Last active April 29, 2018 21:07
MyBB dump helper
<?php
defined('IN_MYBB') or die('');
function _dump_info()
{
return array(
'name' => '_dump',
'author' => 'Omar G.',
'version' => '1.0',

Keybase proof

I hereby claim:

  • I am sama34 on github.
  • I am omarg (https://keybase.io/omarg) on keybase.
  • I have a public key ASCg5a67htcIrfsUg3KQc652aP8c3YgmYGJWHwKQnJYAXAo

To claim this, I am signing this object:

@Sama34
Sama34 / ougc_getpreview.php
Created October 22, 2015 18:53
OUGC Get Preview Plugin
<?php
/***************************************************************************
*
* OUGC Get Preview Plugin
* Author: Omar Gonzalez
* Copyright: © 2015 Omar Gonzalez
*
* Website: http://omarg.me
*
@Sama34
Sama34 / index.html
Last active August 29, 2015 14:17 — forked from agarie/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Pok&eacute;mon Buttons for each type</title>
<link rel="stylesheet" type="text/css" href="./types.css" />
</head>
<body>
<div class='container'>
<span class="type normal left">normal</span>
<?php
/**
* Convert a comma separated file into an associated array.
* The first row should contain the array keys.
*
* Example:
*
* @param string $filename Path to the CSV file
* @param string $delimiter The separator used in the file
* @return array
@Sama34
Sama34 / disposemail.php
Created February 13, 2015 22:14
MyBB: Disposable Email Blacklist
<?php
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}
function disposemail_info()
{
return array(
"name" => "Disposable Email Blacklist",
@Sama34
Sama34 / ougc_newthread.php
Created January 28, 2015 02:49
OUGC New Thread plugin
<?php
/***************************************************************************
*
* OUGC New Thread plugin (/inc/plugins/ougc_newthread.php)
* Author: Omar Gonzalez
* Copyright: © 2014 Omar Gonzalez
*
* Website: http://omarg.me
*
@Sama34
Sama34 / foo.php
Last active August 29, 2015 14:10
MyBB::Plugin uninstallation confirmation page
<?php
// _uninstall() routine for our plugins
function foo_uninstall()
{
global $mybb;
// Only run if a post request
if($mybb->request_method != 'post')
{