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 / HowtoSolveDesktopBlankUbuntu
Last active August 29, 2015 14:14
How to Fix Desktop Blank Freeze Frozen Ubuntu 14.04 Trusty Tahr [Solved]
#sunday morning my friend get error about desktop ubuntu 14.04 Freeze, i have to try some many my DE trick's but no effect :/
#and Then i'm surfing and get another good review about that same case on his blog's, thank's zhang.
#and now maybe you need it, hope it can help you...
What’s the problem?
After boot into Ubuntu 14.04, you enter your credential and the system just hangs up, freezes. If you are lucky, you might see mouse cursor, background wallpaper but nothing else.
Solutions may work
@CreatorB
CreatorB / OnBackPressed.java
Last active September 17, 2019 13:16
How to Exit App When Press Back Button - Android
///////////////////////////////BACK-BUTTON-PRESSED/////////////////////////////
//////////////////////////////////creatorb////////////////////////////////////
//You can choose one method ;)
//PopUp
@Override
public void onBackPressed() {
new AlertDialog.Builder(this)
.setTitle("Really Exit?")
@CreatorB
CreatorB / remove.sh
Created February 3, 2015 14:21
How to Only Remove All File and Folder Without Github Repository
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
exit 0