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 
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",

M2Eclipse Issues

  • 'Plugin execution not covered by lifecycle configuration: org.apache.cxf:cxf-codegen-plugin'
<build>
  <!--
      ... various plugins ...
      -->
@mixin for-phone-only {
@media (max-width: 599px) { @content; }
}
@mixin for-tablet-portrait-up {
@media (min-width: 600px) { @content; }
}
@mixin for-tablet-landscape-up {
@media (min-width: 900px) { @content; }
}
@mixin for-desktop-up {
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
//...
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
//...
}