Skip to content

Instantly share code, notes, and snippets.

View Ambroos's full-sized avatar

Ambroos Ambroos

View GitHub Profile
diff --git a/dist/index.js b/dist/index.js
index 4cb150acd490b4ec5c6d1884b2f7819ef6866dc2..df72cab2983b7032c945c074aaacaf6ebebfc755 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -12907,6 +12907,10 @@ async function buildFile(contents, filePath, { relativeTo } = {}) {
)
);
await (0, import_promises8.mkdir)((0, import_node_path7.dirname)(filePath), { recursive: true });
+ const nextBuildID = await (0, import_promises3.readFile)(
+ (0, import_path4.resolve)('.next', 'BUILD_ID'),

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@Ambroos
Ambroos / WARNING.md
Last active March 13, 2025 04:04
Remove SentinelOne agent from Mac. Because honestly, it doesn't seem to do anything at all. Run as root, best is to do this from a recovery mode, single user mode with writeable filesystem, ...

USE AT OWN RISK

This was only tested on a 'partial' SentinelOne installation on the High Sierra beta, where SentinelOne was never allowed to enable it's kernel extension. (Some things failed while I was messing around with OS betas.)

This script is most likely outdated.

A lot happens in 2+ years, at this point there's a good chance this script will do more harm than good. Read the comments before using!

@Ambroos
Ambroos / partyparrots.yml
Created January 18, 2017 13:57
For emojipacks
title: parrotparty
emojis:
- name: aussiecongaparrot
src: http://cultofthepartyparrot.com/parrots/aussiecongaparrot.gif
- name: aussieparrot
src: http://cultofthepartyparrot.com/parrots/aussieparrot.gif
- name: aussiereversecongaparrot
src: http://cultofthepartyparrot.com/parrots/aussiereversecongaparrot.gif
- name: bananaparrot
src: http://cultofthepartyparrot.com/parrots/bananaparrot.gif
@Ambroos
Ambroos / Ad.jsx
Created April 29, 2015 14:18
Loading synchronous / document.write-ing ads asynchronously against their will in a React component
import React from 'react';
import $script from 'scriptjs';
require('postscribe/htmlParser/htmlParser.js'); // This is required for postScribe, postScribe is a bit annoying.
const postscribe = require('exports?postscribe!postscribe'); // Needs webpack exports-loader! Otherwise, just require it and use window.postscribe.
// This GlobalAdCodePromise is a simple promise that uses script.js to load a javascript file and then resolve.
const GlobalAdCodePromise = new Promise((resolve) => {
setTimeout(() => {
$script('http://annoying.adprovider.com/ad.js', () => {
@Ambroos
Ambroos / MyRouteHandler.js
Created April 20, 2015 08:02
Async data fetching sample with React-Router and Fluxible
import loadData from '../actions/loadData';
// Other imports
class MyRouteHandler extends React.Component { ... }
let Handler = connectToStores(MyRouteHandler, ...);
Handler.navigateActions = { // Where the magic happens
client: [ loadData ],
server: [ loadData ]