Skip to content

Instantly share code, notes, and snippets.

View CreatorB's full-sized avatar
🏠
Working from home

Hasan Basri CreatorB

🏠
Working from home
View GitHub Profile
@CreatorB
CreatorB / AuthenticationInterceptor.java
Created September 7, 2021 00:46 — forked from libindev/AuthenticationInterceptor.java
Retrofit service with oAuth 2.
public class AuthenticationInterceptor implements Interceptor {
private String authToken;
public AuthenticationInterceptor(String token) {
this.authToken = token;
}
@Override
public Response intercept(Chain chain) throws IOException {
@CreatorB
CreatorB / adb-screenshot.sh
Last active April 13, 2017 16:26 — forked from hkurokawa/adb-screenshot.sh
A shell script to take a screen shot of the android device, resize it and copy to clipboard
#! /bin/bash
## This script is for taking a screen shot of an Android device.
## If possible, it tries to resize the image file and then copy to the clipboard.
##
## Note the script generates screenshot_yyyyMMddHHmmss.png and screenshot_yyyyMMddHHmmss_s.png
## under /sdcard on the device (you can specify another location with '-t' option)
## and copies it to the current working directory.
##
## The script passes unrecognized arguments to adb command, which means you can specify "-e" or "-d"
@CreatorB
CreatorB / latest-firefox
Last active November 13, 2015 15:07 — forked from ruario/latest-firefox.sh
Rocks script will find the latest Firefox binary package, download it and repackage it into Slackware format.
#!/bin/bash
# latest-firefox Version 1.2
# This script will find the latest Firefox binary package, download it
# and repackage it into Slackware format.
# I don't use Firefox for regular browsing but it is handy for
# comparative tests against Opera. :P
# Copyright 2015 Ruari Oedegaard, Oslo, Norway
@CreatorB
CreatorB / OrderStyle
Last active January 27, 2016 20:43 — forked from clintel/gist:1155906
Markdown Order List
## Fenced code blocks inside ordered and unordered lists
1. This is a numbered list.
2. I'm going to include a fenced code block as part of this bullet:
```
Code
More Code
```