Skip to content

Instantly share code, notes, and snippets.

View tobysteward's full-sized avatar
🔥
kubecthell

Toby Steward tobysteward

🔥
kubecthell
View GitHub Profile
@tobysteward
tobysteward / BlogController.php
Last active March 4, 2024 23:11
Laravel AJAX Pagination with JQuery
<?php
class BlogController extends Controller
{
/**
* Posts
*
* @return void
*/
public function showPosts()
@tobysteward
tobysteward / gist:6765113
Created September 30, 2013 15:03
Look for duplicates
select columnName,count(columnName) from tableName
group by columnName having count(columnName) > 1
@tobysteward
tobysteward / gist:7430765
Created November 12, 2013 13:26
Remove ._* files
find /Volumes/Music -name "._*" -delete
@tobysteward
tobysteward / gist:7430973
Created November 12, 2013 13:40
Reset repo to latest commit
git fetch origin master
git reset --hard FETCH_HEAD
git clean -df
@tobysteward
tobysteward / keybase.md
Last active June 13, 2019 15:05
Keybase Verification

Keybase proof

I hereby claim:

  • I am tobysteward on github.
  • I am tobysteward (https://keybase.io/tobysteward) on keybase.
  • I have a public key ASAmdAj_07x5Nef468PQp8WFSmNL243bkSQYFwb5PNsaqQo

To claim this, I am signing this object: