Skip to content

Instantly share code, notes, and snippets.

View sylvainSUPINTERNET's full-sized avatar
🗑️
:(){ :|: & };:

sylvainSUPINTERNET

🗑️
:(){ :|: & };:
View GitHub Profile

Fytorio

  1. ####Test

directory : ./imports/startup/server/index.js

Using API

<select>
<option value="AF">Afghanistan</option>
<option value="AX">Åland Islands</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>
'use strict';
// dependencies
const crypto = require('crypto');
const base64Url = require('base64-url');
// dans un vrai cas d'usage, mettre en variable d'environnement !
const SECRET = "dd8a2c4fbcfbaa9940aeb830ed507f5c852681797eacaf627fc75a8c1bddf25f"; // -> 256-bit key
@sylvainSUPINTERNET
sylvainSUPINTERNET / test_curl.sh
Last active May 6, 2020 14:49
args_parser_shell
#!/bin/bash
# /!\ Make sure docker runs with the right model (model input byte for JPEG / b64) - (model for ROW)
# /!\ the name (resnet50) is defined by the docker runs above, so change it for your tests with the right docker volume name
# time curl -i -X POST http://localhost:8501/v1/models/resnet50:predict -H "Content-Type: application/json" -d @out64_format.json
# default values
TFS_URL="http://localhost:8501/v1/models"
MODEL_NAME="resnet50"
<div class="content">
<div *ngIf="displayNotifications">
<app-notifications-list></app-notifications-list>
</div>
<!-- <header class="main-header main-header--details mobile-only">
<a class="main-header__back" (click)='prevPage()'>
<span class="icon-keyboard_arrow_left"></span>
</a>
<h1 class="main-header__title main-header__title--details">{{'CAMERA_SETTING.TITLE' | translate}}</h1>
</header> -->
@sylvainSUPINTERNET
sylvainSUPINTERNET / stuns
Created March 20, 2021 22:33 — forked from yetithefoot/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
@sylvainSUPINTERNET
sylvainSUPINTERNET / auth_coinbase_pro_example.js
Last active April 27, 2022 21:57
Auth for real api / sandbox api coinbasepro - nodejs
const crypto = require('crypto');
const axios = require('axios');
// FUKIN INVALID SIGNATURE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
( async () => {
/*
// USING PROD ?
const { data } = await axios.get('https://api.coinbase.com/v2/time');
@sylvainSUPINTERNET
sylvainSUPINTERNET / tinder.user.js
Last active May 15, 2022 15:42 — forked from tajnymag/tinder.user.js
Tinder Deblur Userscript without payment KEKW
// Copy this into your chrome console ( when you are on the page with blur pics )
async function unblur() {
const teasers = await fetch("https://api.gotinder.com/v2/fast-match/teasers", { "headers": { "X-Auth-Token": localStorage.getItem('TinderWeb/APIToken') }}).then(res => res.json()).then(res => res.data.results);
const teaserEls = document.querySelectorAll('.Expand.enterAnimationContainer > div:nth-child(1)');
for (let i = 0; i < teaserEls.length; ++i) {
const teaser = teasers[i];
@sylvainSUPINTERNET
sylvainSUPINTERNET / redis-streams-overview.java
Created August 12, 2022 15:46 — forked from raj454raj-harness/redis-streams-overview.java
Redis Streams placeholder implementation
// Publish API for redis stream
void send(Map<String, String> messagePayload) {
StreamMessageId messageId = redisClient.getStream(streamName, new StringCodec("UTF-8")).addAll(messagePayload, maxTopicSize);
log.info("Message {} was inserted to stream", messageId);
}
// Read API for polling redis stream
List<Message> read(long maxWaitTime) {
// If you are using Redis 6.2 or above, consider using XAUTOCLAIM instead of a combination of XPENDING and XCLAIM