Skip to content

Instantly share code, notes, and snippets.

View Amar1729's full-sized avatar

Amar Paul Amar1729

View GitHub Profile
package main
import "fmt"
import "bufio"
import "sort"
import "os"
import "strings"
import "strconv"
@Amar1729
Amar1729 / _chunkc.zsh
Last active October 17, 2018 03:20
Zsh completions for chunkc
#compdef chunkc
# Note for plugin authors:
# You can make your own zsh completions, and include these by calling `_chunkc'
# in the top-level function of the new completions and defining your subcommand
# with syntax: _chunkc_<plugin>_<subcmd> like so:
# Fake chunkc plugin
#
# function _chunkc_plugin_set { return }
@Amar1729
Amar1729 / README.md
Created October 30, 2018 17:09 — forked from mbbx6spp/README.md
How to install Nix in your home directory

Nix

Prerequisites

  • wget is installed
  • tar is installed

Purpose

If you really don't want to install Nix under /nix (or you can't) then you can install Nix

@Amar1729
Amar1729 / interception.jelly
Created January 27, 2019 02:35
FB-2018-hackercup 1: python and jelly solution
Ɠ‘©
ɠø¢¡ø®’Ḃ
“`ȥ)øỊm»ø“6I»ø¢ø?
“ŒXɗ?»;⁸;“M»;¢
ƓRÇ€Y
diff --git a/configure b/configure
index 84dce93..3de6e1f 100755
--- a/configure
+++ b/configure
@@ -59469,10 +59469,17 @@ fi
ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
+else
+
diff --git a/gnulib/lib/Makefile.am b/gnulib/lib/Makefile.am
index 236b996..b881059 100644
--- a/gnulib/lib/Makefile.am
+++ b/gnulib/lib/Makefile.am
@@ -1502,6 +1502,8 @@ EXTRA_libgnu_la_SOURCES += open.c
## end gnulib module open
+libgnu_la_SOURCES += open_memstream.c
+
@Amar1729
Amar1729 / keybase.md
Created April 21, 2019 16:07
Proof of keybase identity.

Keybase proof

I hereby claim:

  • I am amar1729 on github.
  • I am amar1729 (https://keybase.io/amar1729) on keybase.
  • I have a public key ASAfL2E0q7ao1BOrrXz1V4_2AqrsSERiBnf8oAwt1FvgIQo

To claim this, I am signing this object:

these derivations will be built:
/nix/store/2gp07d7nn4pw697y7n6rpkcpw638404s-cdrtools-3.02a06.drv
building '/nix/store/2gp07d7nn4pw697y7n6rpkcpw638404s-cdrtools-3.02a06.drv'...
unpacking sources
unpacking source archive /nix/store/gmczwh9b78gcz6k3n25axr95xi3dxrnf-cdrtools-3.02a06.tar.bz2
source root is cdrtools-3.02
setting SOURCE_DATE_EPOCH to timestamp 1453992581 of file cdrtools-3.02/AN-3.02a06
patching sources
applying patch /nix/store/3c5nr70ywnpqk11vqzq78vyisnhi5bjd-fix-paths.patch
patching file DEFAULTS/Defaults.linux
@Amar1729
Amar1729 / 0001-fix-update-to-head-script-more-robust.patch
Last active October 27, 2019 18:55
Proposed fixes for some pyrocore files.
From e8f099e3be53311cfec4bde0699de9559e972cb5 Mon Sep 17 00:00:00 2001
From: Amar1729 <amar.paul16@gmail.com>
Date: Tue, 22 Oct 2019 03:14:48 -0400
Subject: [PATCH 1/1] fix update-to-head script (more robust)
---
pavement.py | 12 +++++++-----
update-to-head.sh | 28 +++++++++++++++-------------
2 files changed, 22 insertions(+), 18 deletions(-)
src/infer $ git checkout v0.17.0
M facebook-clang-plugins
Note: switching to 'v0.17.0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may