This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Link broken embeds | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
const mutationObserver = new MutationObserver(() => { | |
const fuckedTweets = document.querySelectorAll('.twitter-tweet a:empty'); | |
if (fuckedTweets.length > 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove bullshit from sites | |
// @version 1 | |
// @grant none | |
// @include https://gizmodo.com/* | |
// @include https://engadget.com/* | |
// @include https://www.engadget.com/* | |
// @include https://lifehacker.com/* | |
// @include https://jalopnik.com/* | |
// @include https://www.avclub.com/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
echo "Searching $1 for unconverted files" | |
for f in $1/**/*.ts; do | |
FILENAME=`basename "$f"` | |
OUTFILE=`echo "$FILENAME" | sed -e "s/\.ts/\.mp4/g"` | |
FULLPATH=`echo "$f" | sed -e "s/$FILENAME/$OUTFILE/g"` | |
if [ -f "$FULLPATH" ]; then | |
echo "File \"$OUTFILE\" exists, skipping conversion" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#282828,#000000,#000000,#ADF26C,#5C6380,#FFFFFF,#ADF26C,#FF0100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@scotchbox:/var/www/public$ ls | |
bin composer.json config index.php package.json plugins src tmp vendor | |
bower.json composer.lock gulpfile.js logs phpunit.xml.dist README.md tests Vagrantfile webroot | |
vagrant@scotchbox:/var/www/public$ bin/cake bake migration CreateUsers id:uuid:primary name:string email:string:unique password:string reset_hash:string[32] role:string[20] created modified deleted:datetime | |
Error: Too many arguments. | |
Bake migration class. | |
Usage: | |
cake bake.bake migration [options] <name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In PHP | |
<? | |
public function some_func(){ | |
$this->set(array( | |
'username'=>'TheUsername', | |
'_serialize'=>array('username') | |
)); | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
less = require('gulp-less'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
uglify = require('gulp-uglify'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
clean = require('gulp-clean'), | |
concat = require('gulp-concat'), | |
notify = require('gulp-notify'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php -q | |
<?php | |
require_once(dirname(__FILE__).'/../Vendor/PHPAGI/PHPAGI.php'); | |
$fastagi = new PHPAGI(); | |
//$fastagi->verbose(print_r($fastagi, true)); | |
if(!isset($fastagi->config['fastagi']['basedir'])){ | |
$fastagi->config['fastagi']['basedir'] = dirname(__FILE__); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/** | |
* Emailer script | |
* | |
* @author Geoff Oliver <[email protected]> for Fourthdoor Creative | |
* @date 03.20.2008 | |
* @version .01 | |
*/ | |
if($_POST){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$cleanupDir = '/path/to/download/folder/'; | |
$movieDir = '/path/to/movies/folder/'; | |
$tvDir = '/path/to/tv/shows/folder/'; | |
$tvNetworks = array( | |
'PBS', | |
'BBC','History','Discovery','DC'=>array('Discovery') | |
); |
NewerOlder