Skip to content

Instantly share code, notes, and snippets.

@gblmarquez
gblmarquez / .tmux.conf
Created August 6, 2015 14:28
.tmux.conf with fish as default shell
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color
# support logging out and back in
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
# pbcopy support
set-option -g default-command "reattach-to-user-namespace -l bash"
# vi mode
@derhansen
derhansen / removeJobsRedisDriver.php
Last active November 10, 2022 17:17
Laravel 5 - remove all jobs from a queue (redis driver)
Redis::connection()->del('queues:myqueue');
@marcocarnazzo
marcocarnazzo / 030_update_platform_config.js
Last active January 27, 2026 22:16
Ionic/Cordova update platform config
#!/usr/bin/env node
/** This hook updates platform configuration files based on preferences and config-file data defined in config.xml.
Currently only the AndroidManifest.xml and IOS *-Info.plist file are supported.
See http://stackoverflow.com/questions/28198983/ionic-cordova-add-intent-filter-using-config-xml
Preferences:
1. Preferences defined outside of the platform element will apply to all platforms
2. Preferences defined inside a platform element will apply only to the specified platform
@dwayne
dwayne / 00-ionic-notes.md
Last active January 31, 2025 09:00
My notes on the Ionic Framework.
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active March 31, 2026 18:26
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
@tored
tored / filebasename.js
Last active August 29, 2015 14:02
filebasename
function filebasename(filename) {
return filename.substr(0, filename.lastIndexOf('.'));
}
@Yaffle
Yaffle / URLSearchParams.js
Last active December 2, 2015 11:56
http://url.spec.whatwg.org/ - thanks to Anne van Kesteren for the spec
"use strict";
function URLSearchParams(query) {
var data = [];
query = query.toString();
query = query.replace(/\+/g, " ");
var strings = query.split("&");
var l = strings.length;
var i = 0;
while (i < l) {
@kaezarrex
kaezarrex / LICENSE
Last active September 22, 2021 08:40
punchcard-js
MIT License
Copyright (c) 2019 David Hazinski
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@esfand
esfand / typescript_angular.adoc
Last active May 20, 2026 13:33
AngularJS with TypeScript
@cjonstrup
cjonstrup / Laravel\app\commands\ViewsCommand.php
Last active August 1, 2019 21:17
Clear Laravel 4.* app/storage/views artisan views:clear
<?php
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
class ViewsCommand extends Command {
/**
* The console command name.
*
* @var string