This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Android Studio | |
Exec="/opt/android-studio/bin/studio.sh" %f | |
Icon=/opt/android-studio/bin/studio.png | |
Categories=Development;IDE; | |
Terminal=false | |
StartupNotify=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="12"> | |
<profile kind="CodeFormatterProfile" name="Oguzhan" version="12"> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemProp.http.proxyHost=proxyhost | |
systemProp.http.proxyPort=80 | |
systemProp.http.proxyUser=username | |
systemProp.http.proxyPassword=password | |
systemProp.http.nonProxyHosts=localhost | |
systemProp.https.proxyHost=proxyhost | |
systemProp.https.proxyPort=80 | |
systemProp.https.proxyUser=username | |
systemProp.https.proxyPassword=password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn install:install-file \ | |
-Dfile=apns-1.0.0.Beta7-SNAPSHOT.jar \ | |
-DgroupId=com.notnoop.apns \ | |
-DartifactId=apns \ | |
-Dversion=1.0.0.Beta7_2-SNAPSHOT \ | |
-Dpackaging=jar | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# undo last push | |
git push -f origin ab123c4:master | |
# undo last commit | |
git reset --hard HEAD~2 | |
# undo last push (7cdab32) | |
git push origin +7cdab32^:master | |
# show last commit changed files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-startup | |
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417 | |
-product | |
org.eclipse.epp.package.jee.product | |
--launcher.defaultAction | |
openFile | |
--launcher.XXMaxPermSize | |
256M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install python 2.7.+ and install android-resource-remover module with following command | |
pip install android-resource-remover | |
# investigate project with lint that delivers with android-sdk | |
gradlew.bat :app:lint | |
# this python module will remove unused resources from android project | |
android-resource-remover --xml app\build\outputs\lint-results.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Base64Test { | |
public static void main(String[] args) { | |
Decoder decoder = Base64.getDecoder(); | |
Encoder encoder = Base64.getEncoder(); | |
byte[] raw = "any text".getBytes(); | |
byte[] encoded = encoder.encode(raw); | |
System.out.println(new String(encoded)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author oguzhan | |
* | |
*/ | |
public class DnsRegexDemo { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { |