Skip to content

Instantly share code, notes, and snippets.

View wwiv's full-sized avatar

Rushfan wwiv

View GitHub Profile
@wwiv
wwiv / syncterm.diff
Last active February 3, 2018 04:58
hacky way to make syncterm compile on mac
diff --git a/src/xpdev/Common.gmake b/src/xpdev/Common.gmake
index 4588fbc..4bf00a2 100644
--- a/src/xpdev/Common.gmake
+++ b/src/xpdev/Common.gmake
@@ -203,3 +203,8 @@ ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
XPDEV-MT_LIBS += -ldl
XPDEV_LIBS += -ldl
endif
+
+ifeq ($(os),darwin) # Mac OS/X
class qscan_bitfield {
public:
qscan_bitfield(uint32_t* q, size_t max_size) : q_(q), max_size_(max_size) {}
~qscan_bitfield() = default;
void set(int n) {
q_[n / 32] |= (1L << (n % 32));
}
void clear(int n) {
@wwiv
wwiv / kick-vmware-network.sh
Created January 28, 2018 04:23
Workaround vmware fusion networking not working after sleeping your mac in 10.1
#!/bin/bash
# See https://communities.vmware.com/thread/580365
UUID=$(id -u)
if [[ "${UUID}" -ne 0 ]]; then
echo "You must be root to run this, not $(id -u -n), id: ${UUID}"
exit 1
fi
@wwiv
wwiv / keybase.md
Created October 25, 2017 03:31
keybase.md

Keybase proof

I hereby claim:

  • I am wwiv on github.
  • I am rushfan (https://keybase.io/rushfan) on keybase.
  • I have a public key ASDBOobYeCRDzuCiPo3jcvL_WBhzF4M17WhMkgCrDrtg5Qo

To claim this, I am signing this object:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BuildNFO
{
class Program
{
@wwiv
wwiv / binkp.cmd
Created September 18, 2015 19:20
Simple binkp runner for wwiv
rem NetworkB controller
:start
C:
cd \wwiv
networkb --receive
goto start