Skip to content

Instantly share code, notes, and snippets.

Huy Tran htr3n

Block or report user

Report or block htr3n

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
htr3n / google-book-search-parameters.txt
Last active Jan 19, 2018
Google book search parameters
View google-book-search-parameters.txt
-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

(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 <command>

M2Eclipse Issues

  • 'Plugin execution not covered by lifecycle configuration: org.apache.cxf:cxf-codegen-plugin'
      ... various plugins ...
View gulpfile.js
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 / package.json
Last active Jul 22, 2018
NPM scripts for running concurrently
View package.json
"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 / gulpfile.js
Last active Jan 27, 2019
Gulp 4 configuration SASS, PostCSS, autoprefixer, cssnano, sourcemaps
View gulpfile.js
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 / gist-theme.css
Last active Jul 22, 2018
A template for Gist theme
View gist-theme.css
.pl-coc /* constant.other.color */,
.pl-entl /* */,
.pl-entm /* */,
.pl-eoa /* entity.other.attribute-name */,
.pl-mai .pl-sf /* support.function */,
.pl-mm /* meta.module-reference */,
.pl-pdv /* punctuation.definition.variable */,
You can’t perform that action at this time.