Skip to content

Instantly share code, notes, and snippets.

View codelion's full-sized avatar

Asankhaya Sharma codelion

View GitHub Profile
@codelion
codelion / Main.java
Last active August 27, 2015 00:34 — forked from jsyeo/Main.java
Object Equals
public class Main {
public static void main(String[] args) {
VulnerableClass a = new VulnerableClass(1);
VulnerableClass b = new VulnerableClass(2);
a.equals(b);
HarmlessClass ha = new HarmlessClass(1);
HarmlessClass hb = new HarmlessClass(2);
ha.equals(hb);
Object oa = new VulnerableClass(1);
public void copy() throws java.io.FileNotFoundException;
Code:
0: new #22 // class java/io/FileInputStream
3: dup
4: ldc #29 // String in.txt
6: invokespecial #23 // Method java/io/FileInputStream."<init>":(Ljava/lang/String;)V
9: astore_1
10: new #30 // class java/io/FileOutputStream
13: dup
14: ldc #31 // String out.txt
public void copy(java.lang.String) throws java.io.FileNotFoundException;
Code:
0: new #22 // class java/io/FileInputStream
3: dup
4: ldc #29 // String in.txt
6: invokespecial #23 // Method java/io/FileInputStream."<init>":(Ljava/lang/String;)V
9: astore_2
10: aconst_null
11: astore_3
12: new #30 // class java/io/FileOutputStream
@codelion
codelion / gist:dd4d3aa5c6e8444e2c37
Created May 14, 2015 14:08
Error while deploying on heroku
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
Sprockets::FileNotFound: couldn't find file 'turbolinks' with type 'application/javascript'
/tmp/build_9594f39b4726bbe08ca2d4d9a61e4e3f/Okyasoft-instajobs-0ab69e3/app/assets/javascripts/application.js:15
/tmp/build_9594f39b4726bbe08ca2d4d9a61e4e3f/Okyasoft-instajobs-0ab69e3/vendor/bundle/ruby/2.0.0/gems/sprockets-3.1.0/lib/sprockets/resolve.rb:64:in `resolve!'
/tmp/build_9594f39b4726bbe08ca2d4d9a61e4e3f/Okyasoft-instajobs-0ab69e3/vendor/bundle/ruby/2.0.0/gems/sprockets-3.1.0/lib/sprockets/directive_processor.rb:399:in `resolve'
/tmp/build_9594f39b4726bbe08ca2d4d9a61e4e3f/Okyasoft-instajobs-0ab69e3/vendor/bundle/ruby/2.0.0/gems/sprockets-3.1.0/lib/sprockets/directive_processor.rb:207:in `process_require_directive'
/tmp/build_9594f39b4726bbe08ca2d4d9a61e4e3f/Okyasoft-instajobs-0ab69e3/vendor/bundle/ruby/2.0.0/gems/sprockets-3.1.0/lib/sprockets/directive_processor.rb
@codelion
codelion / Main.java
Last active September 7, 2015 02:46 — forked from jsyeo/Main.java
Reflection
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class Reflection {
public static void vulnerableMethod() {
}
public void reflectVulnerableMethod() throws ClassNotFoundException, NoSuchMethodException, SecurityException,
default-src 'self'; font-src 'self' https://maxcdn.bootstrapcdn.com; form-action 'self'; frame-ancestors 'none'; report-uri https://report-uri.io/report/camjackson; script-src 'self' https://oss.maxcdn.com; style-src 'self' https://maxcdn.bootstrapcdn.com https://cdn.jsdelivr.net
@codelion
codelion / listlength.c
Last active June 14, 2017 07:21
Verifying shape property
struct node{
int val;
struct node* next;
};
/*@
list<> == self=null or self::node<_,q> * q::list<>;
*/
int length(struct node* p)
@codelion
codelion / listlengthv2.c
Created June 14, 2017 07:59
Verifying shape property for modified version
struct node{
int val;
struct node* next;
};
/*@
list<> == self=null or self::node<_,q> * q::list<>;
*/
int length(struct node* p)
Model ARC HellaSwag MMLU TruthfulQA Winogrande GSM8K
mera-mix-4x7B Error: File does not exist Error: File does not exist Error: File does not exist Error: File does not exist Error: File does not exist Error: File does not exist

ARC

Average: Error: File does not exist%

HellaSwag

Model ARC HellaSwag MMLU TruthfulQA Winogrande GSM8K
mera-mix-4x7B Error: File does not exist Error: File does not exist Error: File does not exist Error: File does not exist Error: File does not exist Error: File does not exist

ARC

Average: Error: File does not exist%

HellaSwag