Skip to content

Instantly share code, notes, and snippets.

View nadeemkhan's full-sized avatar
👨‍💻
Focusing... 🎯

Nadeem Khan nadeemkhan

👨‍💻
Focusing... 🎯
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nadeemkhan on github.
  • I am nadeemkhan (https://keybase.io/nadeemkhan) on keybase.
  • I have a public key ASAW5M_cAC31nfqSrwbkupMfPEe9epoOz3lxsXkNVRPzmAo

To claim this, I am signing this object:

@nadeemkhan
nadeemkhan / ChangePassword.java
Created March 4, 2019 06:17 — forked from zach-klippenstein/ChangePassword.java
The keystore password on Java keystore files is utterly pointless. You can reset it without knowing it, as shown by this code. Note that private keys are still secure, as far as I know. The JKS implementation is copyright Casey Marshall (rsdio@metastatic.org), and the original source is available at http://metastatic.org/source/JKS.java. I've in…
import java.util.*;
import java.io.*;
import java.security.*;
public class ChangePassword
{
private final static JKS j = new JKS();
public static void main(String[] args) throws Exception
{
{
"array":[
{
"messageId":"1",
"userId":"5",
"userName":"cp",
"userImgUrl":"./assets/user.jpg",
"toUserId":"210000198410281948",
"toUserName":"nk",
"userAvatar":"https://www.talentswag.com/assets/uploads/users/profile/profile_5_1528357916.png",
@nadeemkhan
nadeemkhan / Amazon-Linux-AMI PHP55
Created April 30, 2018 07:43 — forked from sl-digital/Amazon-Linux-AMI PHP55
Install Apache, MySQL and PHP 5.5 on Amazon Linux AMI
:: UPDATE YUM ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
sudo yum update -y
:: INSTALL WEBSERVER :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
sudo yum install httpd24
sudo service httpd start
sudo chkconfig httpd on
chkconfig --list httpd

Keybase proof

I hereby claim:

  • I am nadeemkhan on github.
  • I am nadeemkhan (https://keybase.io/nadeemkhan) on keybase.
  • I have a public key ASDWg7fulJbIDhHX1EuY-v7TQFZGTquIUd9bKIFunui-EQo

To claim this, I am signing this object:

2017-11-16 11:24:57.823498+0530 Viddiflash[6666:5492122] API error: <_UIKBCompatInputView: 0x104f292a0; frame = (0 0; 0 0); layer = <CALayer: 0x1c422c8a0>> returned 0 width, assuming UIViewNoIntrinsicMetric
2017-11-16 11:24:57.823700+0530 Viddiflash[6666:5492122] API error: <_UIKBCompatInputView: 0x104f292a0; frame = (0 0; 0 0); layer = <CALayer: 0x1c422c8a0>> returned 0 width, assuming UIViewNoIntrinsicMetric
2017-11-16 11:24:57.881862+0530 Viddiflash[6666:5492122] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0
default 11:38:36.736463 +0530 Twist [0x7fad62a1fc00] Created session
default 11:38:36.736847 +0530 Twist [0x7fad62a12200] Created session
default 11:38:36.737185 +0530 Twist [0x7fad62b53400] Created session
default 11:38:36.755557 +0530 Twist [0x7fad629c5000] Created session
default 11:38:36.764288 +0530 Twist [0x7fad62a12200] Releasing session
default 11:38:36.764409 +0530 Twist [0x7fad62a1fc00] Releasing session
default 11:38:36.774332 +0530 Twist [0x7fad629c5000] Decoding: C0 0x00230023 0x0000304A 0x22111100 0x00000000 1156
default 11:38:36.774376 +0530 Twist [0x7fad629c5000] Options: 35x35 [FFFFFFFF,FFFFFFFF] 0001D060
default 11:38:36.774460 +0530 Twist [0x7fad629c5000] Decoding completed without errors
default 11:38:36.777177 +0530 Twist [0x7fad62b53400] Decoding: C0 0x003C003C 0x0000304A 0x22111100 0x00000000 1575
@nadeemkhan
nadeemkhan / install-ffmpeg-amazon-linux.sh
Created February 28, 2017 09:22 — forked from gboudreau/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF