Skip to content

Instantly share code, notes, and snippets.

View Mazuh's full-sized avatar
👨‍💻
Code Summoner

Marcell Guilherme Costa da Silva Mazuh

👨‍💻
Code Summoner
View GitHub Profile
@Mazuh
Mazuh / .gitlab-ci.yml
Last active May 13, 2022 04:53
Example of gitlab CI/CD for a create-react-app application on Amazon S3 Bucket.
image: nikolaik/python-nodejs:latest
stages:
- install
- test
- deploy
prodInstall:
stage: install
script:
@Mazuh
Mazuh / App.js
Last active June 17, 2018 19:47
Dumb sample of SimpleWebRTC lib.
import React from 'react';
import SimpleWebRTC from 'simplewebrtc';
import './App.css';
export default class App extends React.Component {
componentDidMount() {
const webrtc = new SimpleWebRTC({
autoRequestMedia: true,
localVideoEl: 'local-video',
remoteVideosEl: 'remote-videos-container',
@Mazuh
Mazuh / desc_kw.py
Last active April 9, 2018 15:57
Python keywords sorted descendingly by their length, as JSON-like
import keyword
', '.join(['"%s"' % kw for kw in sorted(keyword.kwlist, key=len, reverse=True)])
@Mazuh
Mazuh / src.sh
Created March 11, 2018 18:35
Quck xsetwacom setup
xsetwacom list
pen="Wacom Intuos S 2 Pen stylus"
pad="Wacom Intuos S 2 Pad pad"
xsetwacom set "$pad" Button 3 'key ctrl z' # undo
xsetwacom set "$pen" Button 2 'key p' # paint brush
xsetwacom set "$pen" Button 3 'key shift e' # erase tool
@Mazuh
Mazuh / infobus_data.json
Last active March 7, 2021 00:34
Digital version of UFRN's bus departure times and some other metadata for InfoBus clients. Check InfoBus-UFRN repository for more details: <https://github.com/Mazuh/InfoBusUFRN-App>.
{
"meta": {
"supportedMobileVersions": [
"2.0.0", "2.2.0"
]
},
"content": {
"mobileMessage": {
"title": "Fique seguro(a)!",
"isAnEmergency": true,