This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
DISCLAIMER: Use at your own risk! | |
Discussion: https://github.com/directus/directus/discussions/18297#discussioncomment-5695833 | |
Based on: https://gist.github.com/lukas-schaetzle/f93eff3d961ac595d0e1ab4be5f34536 | |
Tested with Directus 10.11.2 and PostgreSQL | |
This will delete all flow execution logs, revisions and acitivites which are older | |
than the specified MinTimestamp and are not in the top <specified MinItems> latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Automate Slack invitations | |
* See https://github.com/ErikKalkoken/slackApiDoc/blob/master/users.admin.invite.md | |
*/ | |
const inviteToSlack = | |
(token, email) => new Promise((resolve, reject) => { | |
const data = querystring.stringify({ | |
resend: true, | |
token, | |
email, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am madc on github. | |
* I am matthiasesterl (https://keybase.io/matthiasesterl) on keybase. | |
* I have a public key ASBTMaDljXoVLqcbVm_Z-UmmZpVchjmkVZh1ayFXr4XdHAo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Francisco Martinez <zomernifalt at gmail dot com> | |
pkgname=makerbot-desktop | |
pkgver=3.8.0 | |
_openmeshver=3.2_3.2 | |
pkgrel=2 | |
pkgdesc="A complete, free 3D printing solution for discovering, managing, and sharing your 3D prints." | |
arch=('x86_64') | |
url="https://www.makerbot.com/desktop" | |
license=('GPL') | |
depends=('boost' 'glibc>=2.4' 'hicolor-icon-theme' 'libdbus>=1.0.2' 'libgl' 'qt5-base>=5.3.0' 'qt5-webkit>=5.0.2' 'zenity' 'zlib>=1.1.4') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# A little helper script to archive a BoltCMS installation | |
# Usage: | |
# Default behaviour: | |
# $ ./archive | |
# Restore: | |
# $ ./archive --restore <archive> | |
if [ $1 ] && [ $2 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=jsoncpp | |
pkgver=0.6.0rc2 | |
_pkgver=0.6.0-rc2 | |
pkgrel=1 | |
pkgdesc='A C++ library for interacting with JSON' | |
url='https://github.com/open-source-parsers/jsoncpp' | |
license=('MIT' 'custom:Public_Domain') | |
arch=('i686' 'x86_64') | |
depends=('gcc-libs') | |
makedepends=('scons') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pitches.h" | |
const int pinButton = 2; | |
const int pinSpeaker = 4; | |
const int pinLED[] = {3, 5, 6, 9, 10, 11}; | |
boolean running = false; | |
volatile int mode = 0; | |
volatile unsigned long button_pressed = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <IRremote.h> | |
/* | |
Send infrared commands from the Arduino to the iRobot Roomba | |
by probono | |
2013-03-17 Initial release | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void testApp::draw(){ | |
ofSetColor(0); | |
ofDrawBitmapString("FPS: " + ofToString((int)ofGetFrameRate()), 20, 20); | |
// [...] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _THREADED_CAM | |
#define _THREADED_CAM | |
#include "ofMain.h" | |
class threadedCam : public ofThread{ | |
public: | |
ofVideoGrabber vidGrabber; | |
ofImage exportImage; |
NewerOlder