I hereby claim:
- I am bjorn-ali-goransson on github.
- I am bjornagoransson (https://keybase.io/bjornagoransson) on keybase.
- I have a public key ASAro2TnvjBS__JKCLOkouQh3UcZAs-qKafn7SGpdQMLgAo
To claim this, I am signing this object:
| using System; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| using System.Reflection.Emit; | |
| using System.Text; | |
| namespace Cloudy.CMS.UI.ContentAppSupport.NameExpressionParserSupport | |
| { | |
| public class Disassembler // http://www.albahari.com/nutshell/cs4ch18.aspx | |
| { |
| # http://robertwesterlund.net/post/2014/12/27/removing-utf8-bom-using-powershell | |
| foreach($file in Get-ChildItem -Path $PSScriptRoot -Include *.php -Recurse -ErrorAction Continue -Force) { | |
| $reader = $file.OpenRead() | |
| $byteBuffer = New-Object System.Byte[] 3 | |
| $bytesRead = $reader.Read($byteBuffer, 0, 3) | |
| if ($bytesRead -eq 3 -and | |
| $byteBuffer[0] -eq 239 -and | |
| $byteBuffer[1] -eq 187 -and | |
| $byteBuffer[2] -eq 191) |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| require 'wp-blog-header.php'; | |
| if(isset($_GET['delete_post'])){ | |
| wp_delete_post($_GET['delete_post']); | |
| die; | |
| } | |
| ?> |
| <?php | |
| function define_find( $filename = 'wp-config.php' ) { // https://github.com/interconnectit/Search-Replace-DB/blob/master/index.php#L726 | |
| if ( $filename == 'wp-config.php' ) { | |
| $filename = dirname( __FILE__ ) . '/' . basename( $filename ); | |
| // look up one directory if config file doesn't exist in current directory | |
| if ( ! file_exists( $filename ) ) | |
| $filename = dirname( __FILE__ ) . '/../' . basename( $filename ); |
| <Project Sdk="Microsoft.NET.Sdk.Web"> | |
| <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | |
| <OutputType>Library</OutputType> | |
| </PropertyGroup> | |
| <PropertyGroup> | |
| <TargetFramework>net461</TargetFramework> | |
| <RuntimeIdentifier>win7-x86</RuntimeIdentifier> | |
| <OutputTypeEx>library</OutputTypeEx> | |
| <BuildOutputTargetFolder>lib\net461</BuildOutputTargetFolder> | |
| </PropertyGroup> |
| <%@ Page Language="C#" %> | |
| <script runat="server"> | |
| protected override void OnInit(EventArgs e){ | |
| Response.Write(User.Identity.Name); | |
| Response.Write("<br>"); | |
| foreach(var role in System.Web.Security.Roles.GetRolesForUser()){ | |
| Response.Write(role); | |
| Response.Write("<br>"); | |
| } | |
| } |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Collections.Specialized; | |
| using System.Globalization; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Security.Cryptography; | |
| namespace Rest.Authentication | |
| { | |
| public class AwsAuthenticator : RestSharp.Authenticators.IAuthenticator | |
| { | |
| public string AccessKeyId { get; } |
| /* HAS ATTRIBUTE */ | |
| $.fn.hasAttr = function(attrName){ | |
| var element = this[0]; | |
| if(element.hasAttribute){ | |
| return element.hasAttribute(attrName); |