Skip to content

Instantly share code, notes, and snippets.

View CreatorB's full-sized avatar
Open to Remote Work

Hasan B CreatorB

Open to Remote Work
View GitHub Profile
@CreatorB
CreatorB / CompleteUninstalledlLibreOffice
Created December 18, 2014 13:52
How to Complete Remove Libre Office Ubuntu Linux
Get error when installed openoffice desktop integrations, finally i can solved it by complete removed libreoffice.
sudo apt-get remove --purge libreoffice-core
sudo apt-get remove libreoffice-common
@CreatorB
CreatorB / 32-bit.AndroidBinary
Last active March 28, 2018 09:52
How to solved ERROR: 32-bit Linux Android emulator binaries are DEPRECATED when attemping to run the Android emulator
[Solved Your Probs by 3 step]
1. Open terminal in ubuntu, and then type gedit .profile
2. paste this text: export ANDROID_EMULATOR_FORCE_32BIT=true
3. refresh source: source .profile
When no effect, finishing that by restart your device (laptop,pc)
Okkay happy emulate andev ;)
@CreatorB
CreatorB / How to Install Google Chrome on Ubuntu 14.04
Created December 31, 2014 06:22
Errors were encountered while processing : google-chrome-stable ubuntu 14.04 | visit : http://tricktux.blogspot.com/2014/12/errors-were-encountered-while.html
in generally you can install your deb packages with dpkg -i [file.deb]
$ dpkg -i google-chrome-stable_current_i386.deb
When get error like Errors were encountered while processing google-chrome-stable, now try this command
$ sudo apt-get update
$ sudo apt-get install libgconf2-4 libnss3-1d libxss1
$ dpkg -i google-chrome-stable_current_i386.deb
@CreatorB
CreatorB / scp run in the background
Last active March 13, 2024 10:32
How to put scp in background
To execute any linux command in background we use nohup. But the problem with scp command is that it prompts for the password (if password authentication is used). So to make scp execute as a background process do this:
1>
$ nohup scp file_to_copy user@server:/path/to/copy/the/file > nohup.out 2>&1
if it prompts for password then enter password.
Then press ctrl + z which will temporarily suspend the command,
SCP will give output:
@CreatorB
CreatorB / cmd_error
Created January 24, 2015 07:33
Windows Command is not recognized as an internal or external command operable program or batch file error
Case : Just sample notes about how to solve windows command error like is not recognized as an internal or external command operable program or batch file error
Solutions :
1. Click start, right-click My Computer and click Properties.
2. In the System Properties window, click on the Advanced tab.
3. In the Advanced section, click the Environment Variables button.
4. Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.
Default path of windows 7 fresh install :
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
@CreatorB
CreatorB / chmod_exception
Created February 3, 2015 07:30
chmod exception - creatorb
* change permission only file in all subdirectories :
$ find . -type f -exec chmod 775 {} +
* change permission only folder in all subdirectories :
$ find . -type d -exec chmod 777 {} +
@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
@CreatorB
CreatorB / transparent_button.xml
Created February 4, 2015 13:13
How to Create Android Transparent Background Color
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="#000000" >
<Button
android:id="@+id/transparantButton"
android:layout_width="wrap_content"
@CreatorB
CreatorB / styles.xml
Last active August 29, 2015 14:14
AppCompact Set Fullscreen Theme No ActionBar No TitleBar
<!-- You can set this on your style.xml -->
<resources>
<style name="Theme.AppCompat.Light.NoActionBar.FullScreen" parent="@style/Theme.AppCompat.Light">
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
</resources>
@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?")