Skip to content

Instantly share code, notes, and snippets.

@deepfriedfilth
deepfriedfilth / main.js
Last active April 10, 2020 18:11
Add legibility to old school website content with minimal CSS
function addStyles() {
document.body.style.margin = '50px auto';
document.body.style.maxWidth = '38em'; // 680px
document.body.style.fontSize = '18px';
document.body.style.lineHeight = '1.4';
document.body.style.wordBreak = 'break-word';
document.body.style.hyphens = 'auto';
}
@deepfriedfilth
deepfriedfilth / wp.fish
Created September 30, 2019 01:57
wp-cli fish autocomplete
# wp-cli
complete -c wp -l cache --description 'Manage the object cache.'
complete -c wp -l cap --description 'Manage user capabilities.'
complete -c wp -l cli --description 'Get information about WP-CLI itself.'
complete -c wp -l comment --description 'Manage comments.'
complete -c wp -l core --description 'Download, install, update and otherwise manage WordPress proper.'
complete -c wp -l cron --description 'Manage WP-Cron events and schedules.'
complete -c wp -l db --description 'Perform basic database operations.'
complete -c wp -l eval --description 'Execute arbitrary PHP code.'
complete -c wp -l eval-file --description 'Load and execute a PHP file.'
/* Mac Pro webpage reverse video animation thing */
/* */
Object.defineProperties = Object.defineProperties || function() {};
(function() {
var b = 0;
var c = ["ms", "moz", "webkit", "o"];
for (var a = 0; a < c.length && !window.requestAnimationFrame; ++a) {
window.requestAnimationFrame = window[c[a] + "RequestAnimationFrame"];
window.cancelAnimationFrame =
This file has been truncated, but you can view the full file.
2019-03-19 11:24:03.504 controllersupportd[29063:1501914] the error: (null)
2019-03-19 19:49:50.372 controllersupportd[29821:1543410] the error: (null)
2019-03-20 01:23:28.631 controllersupportd[30025:1577759] the error: (null)
2019-03-20 12:58:44.951 controllersupportd[31128:1629719] the error: (null)
2019-03-20 17:52:52.870 controllersupportd[31399:1665382] the error: (null)
2019-03-20 20:39:09.026 controllersupportd[31556:1689579] the error: (null)
2019-03-21 09:02:55.164 controllersupportd[32873:1746581] the error: (null)
2019-03-21 10:51:18.996 controllersupportd[33028:1764633] the error: (null)
2019-03-21 13:55:22.230 controllersupportd[34856:1788971] the error: (null)
2019-03-21 17:13:33.256 controllersupportd[35588:1830538] the error: (null)
@deepfriedfilth
deepfriedfilth / gulpfile.js
Last active December 6, 2018 20:32
minimal gulp config
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var browserSync = require('browser-sync').create();
var reload = browserSync.reload;
gulp.task('styles', function(done) {
/* Sass it up, pack it up */
gulp.src('sass/**/*.scss')
.pipe(sourcemaps.init())
@deepfriedfilth
deepfriedfilth / lol@siriport-in-2017.md
Last active August 25, 2017 16:41
Fix SiriPort iOS 7 [Dev] on iOS 7.0.4

For some reason the ownership of the Assistant (Siri) files gets b0rked on install thru their Cydia repo.

Here's how to "fix" it.

  • Make sure to Reboot after installing the package from Cydia (it only requires Respring)
  • If you are jailbroken via evasion7, make sure to reinstall Mobile Substrate after Reboot
  • Open Mobile Terminal
  • Gitcha root on for the session (su, then enter yer password)
  • Run the following lines to apply proper ownership: