Skip to content

Instantly share code, notes, and snippets.

View gokulnath's full-sized avatar
🎯
Focusing

Gokulnath gokulnath

🎯
Focusing
View GitHub Profile
@gokulnath
gokulnath / nmap.txt
Last active November 9, 2016 10:30
nginx nmap
nmap --script http-methods domain.com !10120
Starting Nmap 7.01 ( https://nmap.org ) at 2016-11-09 15:00 IST
Nmap scan report for domain.com (IP)
Host is up (0.081s latency).
Other addresses for domain.com (not scanned): IPv6
rDNS record for IP: illekm-static-IP.vsnl.net.in
Not shown: 998 filtered ports
PORT STATE SERVICE
113/tcp closed ident
@gokulnath
gokulnath / Crypto-min.js
Created November 5, 2016 05:37
Crypto Library by Google
/*
CryptoJS v3.1.2
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
var CryptoJS=CryptoJS||function(u,p){var d={},l=d.lib={},s=function(){},t=l.Base={extend:function(a){s.prototype=this;var c=new s;a&&c.mixIn(a);c.hasOwnProperty("init")||(c.init=function(){c.$super.init.apply(this,arguments)});c.init.prototype=c;c.$super=this;return c},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var c in a)a.hasOwnProperty(c)&&(this[c]=a[c]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
r=l.WordArray=t.extend({init:function(a,c){a=this.words=a||[];this.sigBytes=c!=p?c:4*a.length},toString:function(a){return(a||v).stringify(this)},concat:function(a){var c=this.words,e=a.words,j=this.sigBytes;a=a.sigBytes;this.clamp();if(j%4)for(var k=0;k<a;k++)c[j+k>>>2]|=(e[k>>>2]>>>24-8*(k%4)&255)<<24-8*((j+k)%4);else if(65535<e.le
@gokulnath
gokulnath / Error
Created June 29, 2016 18:04
php debug error
INFO - 2016-06-29 23:33:15 --> Config Class Initialized
INFO - 2016-06-29 23:33:15 --> Hooks Class Initialized
DEBUG - 2016-06-29 23:33:15 --> UTF-8 Support Enabled
INFO - 2016-06-29 23:33:15 --> Utf8 Class Initialized
INFO - 2016-06-29 23:33:15 --> URI Class Initialized
INFO - 2016-06-29 23:33:15 --> Router Class Initialized
INFO - 2016-06-29 23:33:15 --> Output Class Initialized
INFO - 2016-06-29 23:33:15 --> Security Class Initialized
DEBUG - 2016-06-29 23:33:15 --> Global POST, GET and COOKIE data sanitized
INFO - 2016-06-29 23:33:15 --> Input Class Initialized
{
"constraints": {
"NEFT": {
"DAILY_LIMIT": 300000,
"TRANSACTIONS_PER_DAY": 20,
"MIN_AMOUNT": 1,
"PER_TRANSACTION_LIMIT": 100000
},
"RTGS": {
"DAILY_LIMIT": 500000,
@gokulnath
gokulnath / invoke.js
Created November 11, 2015 09:12
Recursive worklight http invoke
function invokeBackendHttp(input, count) {
// count is used for breaking recursion.
count = typeof(count) !== 'undefined' ? count : 0;
try {
count++;
var result = WL.Server.invokeHttp(input);
}
catch (e) {
if (count > 3)
@gokulnath
gokulnath / AES.java
Created October 10, 2015 12:05
AES JAVA class
import java.security.Key;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
public class AES {
private static String algorithm = "AES";
private static byte[] keyValue =
new byte[] { 'A', 'S', 'e', 'c', 'u', 'r', 'e',
'S', 'e', 'c', 'r', 'e', 't', 'K', 'e', 'y' };
@gokulnath
gokulnath / user_preference.py
Created October 3, 2015 05:56
slublime text user preferences.
{
"auto_ complete_comit_on_tab": true,
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/User/SublimeLinter/predawn (SL).tmTheme",
"copy_with_empty_selection": false,
"drag_text": false,
"draw_minimap_border": true,
"enable_tab_scrolling": false,
https://player.fm/series/beats-rye-types
https://player.fm/series/one-universe-at-a-time
https://player.fm/series/the-skeptics-guide-38316
https://player.fm/series/slate-money
https://player.fm/series/the-math-dude-quick-and-dirty-tips-to-make-math-easier
https://player.fm/series/planet-money
https://player.fm/series/fwthinking
https://player.fm/series/the-story-collider-10557
https://player.fm/series/spilled-milk
https://player.fm/series/goggles-optional
@gokulnath
gokulnath / route
Created June 2, 2015 05:40
routes
```
namespace :admin do
mount Logster::Web => "/logs"
end
```

Keybase proof

I hereby claim:

  • I am gokulnath on github.
  • I am gokulnath (https://keybase.io/gokulnath) on keybase.
  • I have a public key whose fingerprint is 3B3F 48D1 70AE 1652 C884 BC78 AB1E AAE8 8798 F42A

To claim this, I am signing this object: