Skip to content

Instantly share code, notes, and snippets.

View JeansBolong's full-sized avatar

JeansBolong JeansBolong

  • Jakarta - Indonesia
View GitHub Profile
@JeansBolong
JeansBolong / webpack.config.js
Last active October 22, 2017 12:15
Webpack Config
// var webpack = require("webpack");
const path = require('path');
module.exports ={
entry: "./src/client.js",
output:{
path: path.resolve(__dirname, 'dist/assets/js'),
filename: "bundle.js",
publicPath: "assets/js"
},
@JeansBolong
JeansBolong / createLoader.js
Created September 18, 2017 09:12
React STUFF
constructor(){this.state = {isLoading: true} }
componentDidMount() { this.setState ({isLoading: false})}
render(){
return(
this.state.isLoading? *showLoadingScreen* : *yourPage()*)
}
@JeansBolong
JeansBolong / handy shortcut
Created October 15, 2017 06:44
Vim stuff
** copy whole text inside file to system-clipboar
1. goto visual mode using by pressing ( v )
2. :w !pbcopy

Compress untuk 1 video

ffmpeg -i path/inputVideo.mp4 -vcodec h264 -acodec aac outputVideo.mp4

Convert mp4 to HLS format video

ffmpeg -i input.mp4 -profile:v baseline -level 3.0 -s 640x360 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls index.m3u8
@JeansBolong
JeansBolong / tutor.txt
Created July 31, 2019 01:41
create xmpp chat using javascript
# How to echobot with XMPP, BOSH, and Strophe
1. Setup ejabberd(http://www.ejabberd.im/) server and setup account [email protected]
NOTE: localhost should be enough. If you setup something else, make sure you add it at /etc/hosts like this
#/etc/hosts
127.0.0.1 localhost.local
NOTE: Also download Psi(http://psi-im.org/), and make sure you can connect to your ejabberd server.
2. Download strophe(http://code.stanziq.com/strophe/) and place it (eg: /Users/makoto/work/sample/strophejs-1.0)
@JeansBolong
JeansBolong / giuthub.md
Last active August 2, 2019 15:51
GITHUB

store password

run git config credential.helper store

then ` git pull

https://www.googleapis.com/oauth2/v3/tokeninfo?access_token=<token>
@JeansBolong
JeansBolong / Link.md
Last active August 26, 2022 01:45
WP BASIC
@JeansBolong
JeansBolong / Content.md
Last active July 14, 2021 01:51
Web Stuff

wa link

https://wa.me/628111701530?text=Hello%20Akasha%20CS,%20