Skip to content

Instantly share code, notes, and snippets.

View ademuanthony's full-sized avatar

Ademu Enyo Anthony ademuanthony

View GitHub Profile
@ademuanthony
ademuanthony / ubuntu-nextjs-nginx-config-file
Created October 16, 2022 18:24 — forked from oelbaga/01 - Setup Nextjs site on Ubuntu Server - Terminal commands
Setup NextJS app on Digital Ocean Ubuntu server Full Terminal Commands Step by Step
#nginx config file for Nextjs App
#place in /etc/nginx/sites-available/name_of_config_file
server {
listen 80;
server_name domainname.com;
gzip on;
gzip_proxied any;
gzip_types application/javascript application/x-javascript text/css text/javascript;
gzip_comp_level 5;
@ademuanthony
ademuanthony / gist:5a5ec8ff7b72118014d2ffeea9099409
Last active July 28, 2021 18:49
Setup github's personal access token on the command line
Add your access token enviroment variable with a name, e.g. GITTOKEN
cd project-folder
git remote set-url origin https://username:$GITTOKEN@github.com/usernane/repo-name.git
@ademuanthony
ademuanthony / gist:e9e5a2a21b867eea09338840b3f4efa6
Created May 24, 2018 17:14 — forked from cairey/gist:5501024
Programmatically start IIS Express from code.
public static class IISExpress
{
private static readonly List<string> sites = new List<string>();
private static readonly List<string> paths = new List<string>();
public static void StartIISExpress(string site, int port = 7329)
{
if(!sites.Contains(site.ToLower()))
sites.Add(site.ToLower());
else return;
@ademuanthony
ademuanthony / Inflect.php
Created September 17, 2016 22:04 — forked from tbrianjones/Inflect.php
A PHP Class for converting English words between Singular and Plural.
<?php
// original source: http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/
/*
The MIT License (MIT)
Copyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy