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
ssh -o ServerAliveInterval=10 -p 22 user@host |
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
// available fonts listed in xcode output | |
for (id familyName in [UIFont familyNames]) { | |
NSLog(@"%@", familyName); | |
for (id fontName in [UIFont fontNamesForFamilyName:familyName]) NSLog(@" %@", fontName); | |
} |
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
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.os.Build; | |
import android.support.percent.PercentRelativeLayout; | |
import android.util.AttributeSet; | |
import android.widget.RelativeLayout; | |
public class SquarePercentRelativeLayout extends PercentRelativeLayout { | |
public SquarePercentRelativeLayout(Context context) { |
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
#!/bin/bash | |
SEDMAGIC='s;[^/]*/;|____;g;s;____|; |;g' | |
if [ "$#" -gt 0 ] ; then | |
dirlist="$@" | |
else | |
dirlist="." | |
fi |
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
Upgrade node: | |
1. sudo npm cache clean -f | |
2. sudo npm install -g n | |
3. sudo n stabl |
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/local/psa/admin/sbin/mail_auth_view |
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
import android.app.Activity; | |
import android.app.Application; | |
import android.content.ComponentCallbacks2; | |
import android.content.res.Configuration; | |
import android.os.Bundle; | |
import android.util.Log; | |
/** | |
* Created by Fabrizio on 13/11/17. | |
*/ |