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
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
View font-minion-pro.md
View tex.md

(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
View find-util.md

Find & Copy

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

  Find & Handling Spaces in File Names

find . -print0 | xargs -0 <command>
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
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
htr3n / gist-theme.css
Last active Jul 22, 2018
A template for Gist theme
View gist-theme.css
/*
* 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 */,
View m2eclipse-issues.md

M2Eclipse Issues

  • 'Plugin execution not covered by lifecycle configuration: org.apache.cxf:cxf-codegen-plugin'
<build>
  <!--
      ... various plugins ...
      -->
View css-breakpoint-mixins.scss
@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 {
You can’t perform that action at this time.