Skip to content

Instantly share code, notes, and snippets.

View htr3n's full-sized avatar

Alex T. htr3n

View GitHub Profile
@htr3n
htr3n / google-book-search-parameters.txt
Last active January 19, 2018 08:34
Google book search parameters
-inurl:htm -inurl:html intitle:"index of" +("/ebooks") +(pdf|zip) +"wiley"
 
-inurl:htm -inurl:html intitle:"index of" mp3 Iron maiden
 
-inurl:htm -inurl:html intitle:"index of" mp3 Metallica
 
-inurl:htm -inurl:html intitle:"index of" "Last modified" mp3
@htr3n
htr3n / tex.md
Last active January 19, 2018 08:42

(La)TeX Dev Notes

Converting PDF file to a certain compatibility level

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.10 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=new_file.pdf old_file.pdf

Find & Copy

find /path/to/find -name '*.txt' -exec cp {} /new/path \;

  Find & Handling Spaces in File Names

find . -print0 | xargs -0 

M2Eclipse Issues

  • 'Plugin execution not covered by lifecycle configuration: org.apache.cxf:cxf-codegen-plugin'
<build>
  <!--
      ... various plugins ...
      -->
var gulp = require('gulp');
var sass = require('gulp-sass');
var postcss = require('gulp-postcss');
var autoprefixer = require('autoprefixer');
var cssnano = require('cssnano');
var sourcemaps = require('gulp-sourcemaps');
var sass_src_file = 'assets/scss/hyde-hyde.scss';
var output_folder = 'static/css';
var watched_resources = 'assets/scss/**/*';
@htr3n
htr3n / package.json
Last active July 22, 2018 09:36
NPM scripts for running concurrently
{
"scripts": {
"scss-build": "gulp scss",
"scss-watch": "gulp watch",
"hugo-watch": "hugo server -w --buildDrafts --cleanDestinationDir",
"dev": "npm-run-all --parallel scss-watch hugo-watch"
},
"devDependencies": {
"autoprefixer": "^9.0.0",
"cssnano": "^4.0.3",
@htr3n
htr3n / gulpfile.js
Last active October 31, 2021 23:36
Gulp 4 configuration SASS, PostCSS, autoprefixer, cssnano, sourcemaps
const gulp = require('gulp');
const sass = require('gulp-sass');
const postcss = require('gulp-postcss');
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');
const sourcemaps = require('gulp-sourcemaps');
const log = require('fancy-log');
const sassSourceFile = 'assets/scss/hyde-hyde.scss';
const outputFolder = 'static/css';
@htr3n
htr3n / gist-theme.css
Last active December 23, 2020 01:22
A template for Gist theme
/*
* https://github.com/StylishThemes/GitHub-Dark/issues/197#issuecomment-63095957
*/
.pl-coc /* constant.other.color */,
.pl-entl /* entity.name.tag.label */,
.pl-entm /* entity.name.type.module */,
.pl-eoa /* entity.other.attribute-name */,
.pl-mai .pl-sf /* meta.at-rule.include support.function */,
.pl-mm /* meta.module-reference */,
.pl-pdv /* punctuation.definition.variable */,