Skip to content

Instantly share code, notes, and snippets.

Avatar

Afdallah Wahyu Arafat afdallah

View GitHub Profile
@afdallah
afdallah / karabiner.json
Created May 2, 2019
Karabiner-element remap escape capslock
View karabiner.json
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@afdallah
afdallah / App.js
Created Jan 16, 2018 — forked from madcoda/App.js
React-router v4 multi layout
View App.js
import React, { Component } from 'react'
import { BrowserRouter as Router, Route, Link, Match, Redirect, Switch } from 'react-router-dom'
import OverviewPage from './page/OverviewPage'
import AccountPage from './page/AccountPage'
/*
Layouts, inline define here for demo purpose
you may want to define in another file instead
*/
@afdallah
afdallah / header.php
Last active Oct 3, 2017
Header di single post background dengan post thumbnail(featured image)
View header.php
<header
id="masthead"
class="hero"
<?php
/**
* Gunakan thumbnail default jika thumbnail post tidak di set
*/
if ( is_single() ) {
if ( has_post_thumbnail() ) {
@afdallah
afdallah / LICENCE SUBLIME TEXT
Created Sep 13, 2017 — forked from RoseySoft/LICENCE SUBLIME TEXT
Sublime Text 3 Serial key build is 3103
View LICENCE SUBLIME TEXT
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
View Bypass Vimeo, Reddit, Telegram
# ---------------------------------------------------
# Vimeo
# ---------------------------------------------------
104.156.85.217 vimeo.com
23.214.58.223 secure-c.vimeocdn.com
74.113.233.128 developer.vimeo.com
#23.235.43.143 i.vimeocdn.com
#23.235.43.143 f.vimeocdn.com
80.239.137.98 a.vimeocdn.com
@afdallah
afdallah / Bypass vimeo, reddit
Created May 12, 2017
Tambahkan pada file /etc/hosts
View Bypass vimeo, reddit
# ---------------------------------------------------
# Vimeo
# ---------------------------------------------------
104.156.85.217 vimeo.com
23.214.58.223 secure-c.vimeocdn.com
74.113.233.128 developer.vimeo.com
23.235.43.143 i.vimeocdn.com
23.235.43.143 f.vimeocdn.com
80.239.137.98 a.vimeocdn.com
@afdallah
afdallah / Omnicomplete Love YCM
Last active Apr 1, 2017
Enable omnifcomplete on YouCompleteMe
View Omnicomplete Love YCM
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@afdallah
afdallah / gitignore
Created Apr 26, 2016
gitignore boilerplate for front end developer
View gitignore
# Metadata files
Thumbs.db
.DS_Store
# Frontend
.sass-cache
/bootstrap/compiled.php
public/assets/**/min/*
public/assets/images/originals/*
node_modules
bower_components