Skip to content

Instantly share code, notes, and snippets.

View kivikakk's full-sized avatar
🐰

Asherah Connor kivikakk

🐰
View GitHub Profile
<?php
function counter() {
$count = 0;
$incr = function() use (&$count) {
$count += 1;
return $count;
};
diff --git a/Scripts/Mac/BuildGVFSForMac.sh b/Scripts/Mac/BuildGVFSForMac.sh
index 9704bb65..c039fd5e 100755
--- a/Scripts/Mac/BuildGVFSForMac.sh
+++ b/Scripts/Mac/BuildGVFSForMac.sh
@@ -17,7 +17,7 @@ if [ ! -d $VFS_OUTPUTDIR ]; then
fi
echo 'Building ProjFS kext and libraries...'
-$VFS_SRCDIR/ProjFS.Mac/Scripts/Build.sh $CONFIGURATION || exit 1
+# $VFS_SRCDIR/ProjFS.Mac/Scripts/Build.sh $CONFIGURATION || exit 1
[2019-05-07 11:50:03 +10:00] GVFSClone (Start) {"Version":"0.2.173.2","EnlistmentRoot":"C:\\Users\\Ashe\\Desktop\\ForTests","Remote":"https://gvfs.visualstudio.com/ci/_git/ForTests","Branch":null,"LocalCacheRoot":null,"SingleBranch":false,"NoMount":false,"NoPrefetch":false,"Unattended":false,"IsElevated":true,"NamedPipeName":"GVFS_C_\\USERS\\ASHE\\DESKTOP\\FORTESTS","EnlistmentRootPathParameter":"","fullEnlistmentRootPathParameter":"C:\\Users\\Ashe\\Desktop\\ForTests"}
[2019-05-07 11:50:03 +10:00] AttemptAnonymousAuth (Start)
[2019-05-07 11:50:06 +10:00] Error {"RepoUrl":"https://gvfs.visualstudio.com/ci/_git/ForTests","ErrorMessage":"Failed to parse credential string for approval"}
[2019-05-07 11:50:06 +10:00] NetworkResponse {"RequestId":1,"availableConnections":2,"CacheName":"","StatusCode":200,"ContentType":"application/json; charset=utf-8","connectionWaitTimeMS":"0.0335","responseWaitTimeMS":"2465.0850"}
[2019-05-07 11:50:06 +10:00] AttemptAnonymousAuth (Stop) {"HttpStatus":"200","QuerySucceeded":true,"I
[2019-05-06 11:07:57 +10:00] GVFSClone (Start) {"Version":"0.2.173.2","EnlistmentRoot":"C:\\Repos\\GVFSFunctionalTests\\enlistment\\cdc34c14441147aeac59","Remote":"https://gvfs.visualstudio.com/ci/_git/ForTests","Branch":"FunctionalTests/20180214","LocalCacheRoot":"C:\\Repos\\GVFSFunctionalTests\\enlistment\\..\\.gvfsCache","SingleBranch":false,"NoMount":false,"NoPrefetch":false,"Unattended":false,"IsElevated":true,"NamedPipeName":"GVFS_C_\\REPOS\\GVFSFUNCTIONALTESTS\\ENLISTMENT\\CDC34C14441147AEAC59","EnlistmentRootPathParameter":"C:\\Repos\\GVFSFunctionalTests\\enlistment\\cdc34c14441147aeac59","fullEnlistmentRootPathParameter":"C:\\Repos\\GVFSFunctionalTests\\enlistment\\cdc34c14441147aeac59"}
[2019-05-06 11:07:57 +10:00] AttemptAnonymousAuth (Start)
[2019-05-06 11:07:58 +10:00] Error {"RepoUrl":"https://gvfs.visualstudio.com/ci/_git/ForTests","ErrorMessage":"Failed to parse credential string for approval"}
[2019-05-06 11:07:58 +10:00] NetworkResponse {"RequestId":1,"availableConnections":2,"CacheName":"",
@kivikakk
kivikakk / fuse2.diff
Created February 12, 2019 02:25
FUSE 2 -- applies to github/libprojfs@35a3da8
diff --git a/configure.ac b/configure.ac
index 3eb59ee..05e5d82 100644
--- a/configure.ac
+++ b/configure.ac
@@ -153,15 +153,33 @@ AC_SEARCH_LIBS([fsetxattr], [attr], [],
[AC_MSG_ERROR([Extended attributes library not found])]dnl
)dnl
+AC_DEFINE(_FILE_OFFSET_BITS, 64)
+
@kivikakk
kivikakk / whitelist.md
Created November 16, 2018 02:18
HTML sanitizer whitelist for user content on GitHub.com
  • Any allowed id and name attributes have "user-content-" prefixed to their value.
  • A maximum of 2 nested sub or sup tags are allowed.
  • A maximum of 10 nested ul or ol tags are allowed.
Allowed Element Allowed Attributes
All allowed elements abbr, accept, accept-charset, accesskey, action, align, alt, axis, border, cellpadding, cellspacing, char, charoff, charset, checked, clear, color, cols, colspan, compact, coords, datetime, dir, disabled, enctype, for, frame, headers, height, hreflang, hspace, id, ismap, itemprop, label, lang, maxlength, media, method, multiple, name, nohref, noshade, nowrap, open, prompt, readonly, rev, rows, rowspan, rules, scope, selected, shape, size, span, start, summary, tabindex, title, type, usemap, valign, value, vspace, width
a As above plus href (must be github-mac, github-windows, http,
@kivikakk
kivikakk / dedup.rb
Last active September 11, 2018 05:31
extract and dedup suppressions in valgrind suppressions files
#!/usr/bin/env ruby
# frozen_string_literal: true
def parse_suppressions(data)
state = :idle
current = nil
result = []
data.lines.each do |line|
case state
{
"name": "Ruby",
"scopeName": "source.ruby",
"patterns": [
{
"name": "meta.class.ruby",
"match": "(?x)\n^\\s*(class)\\s+\n(\n (\n [.a-zA-Z0-9_:]+\n (\\s*(\u003c)\\s*[.a-zA-Z0-9_:]+)? # class A \u003c B\n )\n |\n ((\u003c\u003c)\\s*[.a-zA-Z0-9_:]+) # class \u003c\u003c C\n)",
"captures": {
"1": {
"name": "keyword.control.class.ruby"
diff --git a/Cargo.toml b/Cargo.toml
index 64f9b6c..54d4b57 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,6 +32,7 @@ clap = { version = "2.29", optional = true }
twoway = "0.1"
pest = "1.0"
pest_derive = "1.0"
+jetscii = "0.4"

A glimmering ray of light
fast in soft hands;
I've come so far in search of its holder,
wandering 'til the brink of time.

I've been looking for you all this time,
not even knowing your name;
because I've been wanting to share
just this one feeling with you.