Skip to content

Instantly share code, notes, and snippets.

View thisconnect's full-sized avatar
💭
Set status

tcme thisconnect

💭
Set status
View GitHub Profile
@thisconnect
thisconnect / webbuild.diff
Created April 23, 2024 15:17
diff the built files
diff --git a/build/assets/index.es.js b/build/assets/index.es.js
index e296771..b90fa8b 100644
--- a/build/assets/index.es.js
+++ b/build/assets/index.es.js
@@ -1578,7 +1578,7 @@ function requireBrowser() {
function wrap(opts, logger, level) {
if (!opts.transmit && logger[level] === noop)
return;
- logger[level] = function(write) {
+ logger[level] = /* @__PURE__ */ function(write) {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const fs = require('fs')
const init = require('./init.js')
// WebRTC-Star Signal Server for js-ipfs
// SignalServer: null,
init({
repo: process.env.IPFS_PATH || './ipfs',
Addresses: {
API: '/ip4/127.0.0.1/tcp/5001',
Swarm: ['/ip4/0.0.0.0/tcp/4001'],
@thisconnect
thisconnect / install-go.sh
Last active September 5, 2016 11:24
compile go from source
#!/bin/bash
mkdir -p ~/go
cd ~/go
# first install go1.4
git clone --branch go1.4.3 --depth 1 https://go.googlesource.com/go go1.4
cd go1.4/src
./make.bash
../bin/go version
@thisconnect
thisconnect / fromcjs.html
Last active February 7, 2016 16:07
Build redux with rollup, download, `npm i && npm start`
<!doctype html>
<meta charset="utf-8">
<title>fromcjs</title>
<script src="fromcjs.iife.js"></script>
const postcss = require('postcss');
const importCSS = require('postcss-import');
const copyCSS = require('postcss-copy');
const prefixCSS = require('autoprefixer');
const customPropertiesCSS = require('postcss-custom-properties');
const pxtoremCSS = require('postcss-pxtorem');
const pixremCSS = require('pixrem');
// const cssnano = require('cssnano');
const fildes = require('fildes');
const readFile = fildes.readFile
@thisconnect
thisconnect / app.js
Last active July 14, 2020 06:40
rollup split lib and app
import * as Lib from 'lib';
console.log('APP');
console.log(Lib);
console.log(Lib.capitalize('hello world'));
@thisconnect
thisconnect / output.txt
Created November 9, 2015 17:24
fs.close twice
open 10
close - should have no error
close2 - should have error
{ [Error: EBADF: bad file descriptor, close] errno: -9, code: 'EBADF', syscall: 'close' }
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@thisconnect
thisconnect / build.sh
Created January 6, 2014 09:24 — forked from eerne/build.sh
git clone git://pure-data.git.sourceforge.net/gitroot/pure-data/pure-data
cd pure-data
./autogen.sh
CFLAGS="-mmacosx-version-min=10.5" ./configure --enable-universal=i386
make -j3
cd src
./pd -nogui