Skip to content

Instantly share code, notes, and snippets.

View benargo's full-sized avatar

Ben Argo benargo

View GitHub Profile
@benargo
benargo / Gargul.lua
Last active August 22, 2025 13:59
Regrowth Gargul settings
GargulDB = {
["BoostedRolls"] = {
["Points"] = {
},
["Aliases"] = {
},
},
["LoadDetails"] = {
["6.1.11"] = 1690562601,
@benargo
benargo / Example.raw
Last active September 13, 2019 08:10
Code Formatting for Discord
```csharp
using System;
namespace Foo
{
class Bar
{
public static void Main ()
{
Console.WriteLine("Hello World!");
@benargo
benargo / create_client.sh
Created February 23, 2017 16:38
Creates a new client user account, home directory and nginx virtual host
# usage: create_client <username> <domain>
function create_client() {
# create user
sudo adduser $1
# prevent ssh login & assign SFTP group
sudo usermod -g clients $1
sudo usermod -s /bin/nologin $1
# chroot user (so they only see their directory after login)
@benargo
benargo / install-wp.sh
Last active February 16, 2017 13:56
Install WordPress
#!/bin/sh
if [ ! -d $1 ]; then
mkdir -p $1;
fi
cd $1
git init
wget https://wordpress.org/latest.tar.gz
tar -xvzf ./latest.tar.gz
rm ./latest.tar.gz
mv ./wordpress ./html
@benargo
benargo / Category.php
Last active March 12, 2017 12:23
Relationship closures on model factories
<?php
namespace App;
use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
class Category extends Eloquent
{
/**
* The database collection used by the model.
@benargo
benargo / tweets.php
Created July 17, 2011 14:16
PHP Get Standalone Tweets
<?php
/*****************************************
* @author: @ben_argo
* @created: 2011-07-17
* @updated: 2012-01-20
* @url: https://gist.github.com/1087632
* @contact: http://benargo.com/contact
*****************************************/
@benargo
benargo / gist:1087607
Created July 17, 2011 13:47 — forked from jackfranklin/gist:1020435
League Gothic Font Face Declarations
@font-face {
font-family: 'LeagueGothicRegular';
src: url('lib/font/leaguegothic/League_Gothic-webfont.eot');
src: url('lib/font/leaguegothic/League_Gothic-webfont.eot?#iefix') format('embedded-opentype'),
url('lib/font/leaguegothic/League_Gothic-webfont.woff') format('woff'),
url('lib/font/leaguegothic/League_Gothic-webfont.ttf') format('truetype'),
url('lib/font/leaguegothic/League_Gothic-webfont.svg#LeagueGothicRegular') format('svg');
font-weight: normal;
font-style: normal;