This file contains hidden or 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
<template> | |
<div :id="editorId" class="editor"> | |
</div> | |
</template> | |
<script> | |
import * as ace from 'brace'; | |
import 'brace/mode/yaml'; | |
import 'brace/theme/monokai'; | |
export default { |
This file contains hidden or 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
mongodump --host [HOST] --username [USER] \ | |
--password [PASSWORD] --db rfp --authenticationDatabase admin \ | |
--readPreference secondary --ssl --sslCAFile rds-combined-ca-bundle.pem --sslAllowInvalidCertificates | |
mongorestore --uri="mongodb://<target_username>:<target_password>@<target_host>/?authSource=admin&replicaSet=rs0" \ | |
--ssl --sslCAFile rds-combined-ca-bundle.pem --sslAllowInvalidCertificates \ | |
--numInsertionWorkersPerCollection 64 dump |
This file contains hidden or 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
# GIT | |
# Download latest version of git (portable if not admin) | |
git.exe clone https://github.com/bertrandmartel/st7735-raspberry.git \ | |
-c "http.proxy=http://:@proxy_url:proxy_port" \ | |
-c "http.sslverify=false" \ | |
-c "credential.helper=" | |
#credential.helper prevents credentials dialog window | |
#sslverify=false for git host where ca is not recognized |
This file contains hidden or 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
#!/bin/bash | |
mongodump --uri=mongodb+srv://<src_username>:<src_password>@<src_host>/<your_database> \ | |
--readPreference secondary | |
mongorestore --uri="mongodb://<target_username>:<target_password>@<target_host>/?authSource=admin&replicaSet=rs0" \ | |
--ssl --sslCAFile rds-combined-ca-bundle.pem --sslAllowInvalidCertificates \ | |
--numInsertionWorkersPerCollection 64 dump |
This file contains hidden or 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
FROM debian:10 | |
MAINTAINER Bertrand Martel | |
RUN apt-get -qq update && \ | |
apt-get -y install libpng-dev libsdl2-dev | |
RUN apt-get -y install git wget unzip build-essential | |
WORKDIR /data |
This file contains hidden or 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
import requests | |
from bs4 import BeautifulSoup | |
import re | |
import base64 | |
import json | |
import sys | |
from random import choice | |
from string import ascii_uppercase | |
from urllib.parse import urlsplit, parse_qs | |
import jwt |
This file contains hidden or 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
const rp = require('request-promise'); | |
const cheerio = require('cheerio'); | |
const to = require('await-to-js').to; | |
const cookieJar = rp.jar(); | |
var username = 'YOUR_USERNAME'; | |
var password = 'YOUR_PASSWORD'; | |
var slug = 'your_service_staging'; | |
var appletId = '88014779d'; | |
var userAgent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36'; |
This file contains hidden or 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
#!/bin/bash | |
rm -f cookies.txt | |
username="YOUR_USERNAME" | |
password="YOUR_PASSWORD" | |
slug="some_service_staging" | |
applet_id="88014779d" |
This file contains hidden or 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
//gcc -I/usr/local/include/liblouis -l louis -l unistring liblouis-test.c | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "liblouis.h" | |
#include "internal.h" | |
#include "unistr.h" | |
int main(int argc, char **argv) { | |
char * input = "hello world"; |