Skip to content

Instantly share code, notes, and snippets.

View teamgroove's full-sized avatar

René teamgroove

  • SMILEUPPS-F091BA1E67
  • -`ღ´-
View GitHub Profile
@teamgroove
teamgroove / .gitignore
Created April 24, 2023 13:29
gitignore nodejs
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
@teamgroove
teamgroove / hello_world.c
Created April 20, 2023 10:09 — forked from kripken/hello_world.c
Standalone WebAssembly Example
int doubler(int x) {
return 2 * x;
}
module.exports = {
apps: [
{
name: "backend",
script: "./app.js",
instances: 10,
exec_mode: "cluster",
interpreter: "/home/rsx/.nvm/versions/node/v16.14.0/bin/node",
},
],
@teamgroove
teamgroove / rain.gs
Created January 9, 2023 22:40 — forked from eiiot/rain.gs
Hourly Rain in Google Calendar
Date.prototype.addHours= function(h){
this.setHours(this.getHours()+h);
return this;
}
function updateCalendar() {
let response = UrlFetchApp.fetch('https://api.openweathermap.org/data/2.5/onecall?lat={{YOUR LATITUTE HERE}}&lon={{YOUR LONGITUDE HERE}}&units=imperial&appid={{YOUR API KEY HERE}}')
let weather = JSON.parse(response.getContentText());
@teamgroove
teamgroove / plink-plonk.js
Created February 15, 2020 18:40 — forked from tomhicks/plink-plonk.js
Listen to your web pages
@teamgroove
teamgroove / gist:48bd9b79501977ef1c91e6d58e62bffd
Created March 1, 2019 11:32
delete remote branches, that have been merged into master (except develop and release-branch)
git branch -r --merged origin/master | grep -v master | grep -v develop | grep -v origin/release | grep "origin/" | cut -d "/" -f 3- | xargs -n 20 git push --delete origin
@teamgroove
teamgroove / graphql-axios.js
Created March 7, 2018 18:12 — forked from bjunc/graphql-axios.js
application/graphql vs application/json using axios
let input = { first_name: 'Foo', last_name: 'Bar' };
// application/graphql example
/* eslint-disable no-unused-vars */
let configGraphQL = {
url: '/graphql',
method: 'post',
headers: { 'Content-Type': 'application/graphql' },
data: `mutation { user(id: 1, input: ${ JSON.stringify(input) }){ full_name } }`
};

Keybase proof

I hereby claim:

  • I am teamgroove on github.
  • I am renethiel (https://keybase.io/renethiel) on keybase.
  • I have a public key whose fingerprint is D034 F4DF F49C 7F4D 5CD5 768C 07CA AE3C B313 EBEA

To claim this, I am signing this object:

@teamgroove
teamgroove / js.js
Created October 27, 2015 13:57
yiq formula to define black or white text for maximum contrast automatically
var textColor = function (bgColor) {
var r = bgColor.r * 255,
g = bgColor.g * 255,
b = bgColor.b * 255;
var yiq = (r * 299 + g * 587 + b * 114) / 1000;
return (yiq >= 128) ? 'black' : 'white';
}
@teamgroove
teamgroove / gist:ba916f9397d93ccffba2
Created February 1, 2015 19:27
osx: remove auto-starting processes
#type1
sudo launchctl unload -w /System/Library/LaunchDaemons/FOO
#type2
sudo launchctl unload -w /Library/LaunchDaemons/FOO