This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>ERC20 Permit Signing</title> | |
<script src="https://cdn.jsdelivr.net/npm/web3/dist/web3.min.js"></script> | |
</head> | |
<style> | |
body { |
This file contains 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
public static class ExtensionMethods { | |
public static string ToUnderscoreCase(this string str) { | |
return string.Concat(str.Select((x, i) => i > 0 && char.IsUpper(x) ? "_" + x.ToString() : x.ToString())).ToLower(); | |
} | |
} |
This file contains 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
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace Data.GenericRepo { | |
public interface IRepository<T> : IDisposable where T : class { | |
T[] GetAll(); | |
IQueryable<T> Query(Expression<Func<T, bool>> predicate); |
This file contains 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
#include <linux/module.h> | |
#include <crypto/hash.h> | |
struct sdesc { | |
struct shash_desc shash; | |
char ctx[]; | |
}; | |
static struct sdesc *init_sdesc(struct crypto_shash *alg) | |
{ |
This file contains 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
<body onload="get()"> | |
<form id="form-payload" action="?action=profile" method="POST" enctype="multipart/form-data"> | |
<input type="hidden" name="username" value="your_username"/> | |
<input type="hidden" name="status" value="on"/> | |
<input type="hidden" id="forged-token" name="token" value=""/> | |
<input type="submit" value="go"/> | |
</form> | |
<script> |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Imported Rule 1" stopProcessing="true"> | |
<match url="^(.*)$" ignoreCase="false" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> | |
</conditions> |
This file contains 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
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/cred.h> | |
#include <linux/fs.h> | |
MODULE_LICENSE("GPL"); | |
struct task_struct *get_task_struct_by_pid(unsigned pid) | |
{ | |
struct pid *proc_pid = find_vpid(pid); |
This file contains 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
! special | |
*.foreground: #d1d1d1 | |
! *.background: #221e2d | |
*.cursorColor: #d1d1d1 | |
! black | |
*.color0: #272822 | |
*.color8: #75715e | |
! red |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
namespace Vkobel.ExtensionMethods { | |
public static class GenericPropertyMethods { | |
public static PropertyInfo GetProperty(this object obj, string name) { | |
return obj.GetType().GetProperty(name); | |
} |
This file contains 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
using System; | |
using System.Reactive.Linq; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Input; | |
namespace RxDragAndDrop { | |
public partial class MainWindow : Window { |
NewerOlder