Skip to content

Instantly share code, notes, and snippets.

View semihozkoroglu's full-sized avatar

Semih Özköroğlu semihozkoroglu

View GitHub Profile
@semihozkoroglu
semihozkoroglu / InstallRedis.sh
Last active May 14, 2017 19:03
How to install redis to amazon server
[ec2-user ~]$ sudo yum-config-manager --enable epel
[ec2-user ~]$ sudo yum install redis
public class AnimatedActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
//opening transition animations
overridePendingTransition(R.anim.activity_open_translate,R.anim.activity_close_scale);
}

Mint upgrade procedures

Some investigation and tests on how to upgrade Mint machine.

Tests performed on Mint Cinnamon 14/15/16, on physical machine 14->15 and VirtualBox VMs for 14->15->16 and 14->16.

As usual you could break your machine, so please do backups before and cross fingers.

Mint 14 -> Mint 15

@semihozkoroglu
semihozkoroglu / cursorPath
Created June 11, 2014 17:58
Linux mint cursor theme
/usr/share/icons/default/index.theme
@semihozkoroglu
semihozkoroglu / crashLog
Created June 5, 2014 10:49
NullPointerException GLES20RecordingCanvas.drawBitmap
java.lang.NullPointerException
at android.view.GLES20RecordingCanvas.drawBitmap(GLES20RecordingCanvas.java:118)
at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:393)
at android.view.View.draw(View.java:10968)
at android.view.ViewGroup.drawChild(ViewGroup.java:2887)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at com.slidingmenu.lib.CustomViewAbove.dispatchDraw(CustomViewAbove.java:1067)
at android.view.View.draw(View.java:10986)
at android.view.View.getDisplayList(View.java:10422)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)
#!/usr/bin/python
import os
import fileinput
content = []
for line in fileinput.input():
os.system(line.strip())
fileinput.close()
public class myWebClient extends WebViewClient {
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
super.onPageStarted(view, url, favicon);
}
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
@semihozkoroglu
semihozkoroglu / convert.sh
Created January 5, 2014 12:03
resim boyutunu küçültmek için
convert -resize 50% <kullanıcılacak-resim>.* <oluşrutulacak-resim>.*
keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android
keytool -list -v -keystore debug.keystore
- sudo su - postgres // Change current user
- psql <dbname> // Connect to DB with selected user
- \list // Show all database
- \dt // List all tables in the current database
- \d <tablename> // Describe table