Skip to content

Instantly share code, notes, and snippets.

@hqn-scl
hqn-scl / install.sh
Created March 8, 2020 12:58
New gulp project
mkdir project
npm install gulp-cli -g
npm init
npm install --save-dev gulp gulp-sass browser-sync
vi gulpfile.js
@hqn-scl
hqn-scl / gulpfile.js
Last active March 8, 2020 12:53
This is it.
const gulp = require("gulp");
const sass = require("gulp-sass");
const browserSync = require("browser-sync");
// Compile into CSS
function style() {
// 1 where is my scss file?
return (
gulp
.src("app/scss/**/*.scss")
@hqn-scl
hqn-scl / 00_etc-hosts.md
Created March 3, 2020 02:42 — forked from mul14/00_etc-hosts.md
/etc/hosts for Vimeo, Reddit, and Imgur.

Unblock Vimeo, Reddit, Imgur, dan Netflix

Saya support Internet Positif untuk memblokir porn, situs judi, dan hal-hal ilegal lainnya. Tapi pemerintah dan ISP sangat konyol karena tidak mengizinkan akses ke Vimeo, Reddit, Imgur, Netflix--yang mana bukanlah situs dengan konten utama ilegal.

Linux / BSD / macOS

Tambahkan list di bawah ke /etc/hosts.

Windows

@hqn-scl
hqn-scl / git-ignore.sh
Created February 29, 2020 03:36 — forked from jeffjohnson9046/git-ignore.sh
Remove unwanted files from a git repo AFTER adding a .gitignore. The files will remain on disk.
## I just ran into this after initializing a Visual Studio project _before_ adding a .gitignore file (like an idiot).
## I felt real dumb commiting a bunch of files I didn't need to, so the commands below should do the trick. The first two commands
## came from the second answer on this post: http://stackoverflow.com/questions/7527982/applying-gitignore-to-committed-files
# See the unwanted files:
git ls-files -ci --exclude-standard
# Remove the unwanted files:
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached

Keybase proof

I hereby claim:

  • I am arjenbokhoven on github.
  • I am arjenbokhoven (https://keybase.io/arjenbokhoven) on keybase.
  • I have a public key ASBZigQ8qSw2Al5DW1suWbyeEmnut0NX7RdQ09UU-2CUuAo

To claim this, I am signing this object: