Skip to content

Instantly share code, notes, and snippets.

View jirevwe's full-sized avatar
😁

Raymond Tukpe jirevwe

😁
View GitHub Profile
@jirevwe
jirevwe / twitter.go
Created July 7, 2022 13:27 — forked from subomi/twitter.go
Set up Twitter webhooks in Golang.
// Generate webhook URL.
package main
import (
"errors"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"time"
@jirevwe
jirevwe / app_version.gradle
Last active January 9, 2019 13:22 — forked from IlyaEremin/app_version.gradle
Npm version for gradle
// Utility function to get version properties
def getVersionProps() {
def versionPropsFile = file('gradle.properties')
if (!versionPropsFile.exists()) {
versionPropsFile.createNewFile()
}
def versionProps = new Properties()
versionProps.load(new FileInputStream(versionPropsFile))
return versionProps
}
@jirevwe
jirevwe / gist:0a0a1eade41a34bcbeb69340332b8853
Created April 27, 2018 22:47 — forked from yqritc/gist:ccca77dc42f2364777e1
Equal column spacing for Android RecyclerView GridLayoutManager by using custom ItemDecoration

ItemOffsetDecoration

public class ItemOffsetDecoration extends RecyclerView.ItemDecoration {

    private int mItemOffset;

    public ItemOffsetDecoration(int itemOffset) {
        mItemOffset = itemOffset;
    }
@jirevwe
jirevwe / .bash_profile
Last active February 23, 2019 11:10 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
8. WEB DEVELOPMENT
# ---------------------------------------
alias apacheEdit='sudo edit /etc/httpd/httpd.conf' # apacheEdit: Edit httpd.conf
alias apacheRestart='sudo apachectl graceful' # apacheRestart: Restart Apache
alias editHosts='sudo edit /etc/hosts' # editHosts: Edit /etc/hosts file
alias herr='tail /var/log/httpd/error_log' # herr: Tails HTTP error logs
alias apacheLogs="less +F /var/log/apache2/error_log" # Apachelogs: Shows apache error logs
httpHeaders () { /usr/bin/curl -I -L $@ ; } # httpHeaders: Grabs headers from web page