Skip to content

Instantly share code, notes, and snippets.

View icaromh's full-sized avatar
🦉

Ícaro Heimig icaromh

🦉
View GitHub Profile
@icaromh
icaromh / keybindings.json
Created May 5, 2021 15:14
keybindings.json
[
{
"key": "cmd+enter",
"command": "workbench.action.toggleMaximizedPanel",
"when": "!editorFocus"
},
{
"key": "cmd+t",
"command": "workbench.action.terminal.focusNextPane",
},

Keybase proof

I hereby claim:

  • I am icaromh on github.
  • I am icaromh (https://keybase.io/icaromh) on keybase.
  • I have a public key whose fingerprint is 6F4D 4098 6265 5F6C 6EB3 3CC3 497D 1EAC 9471 B6EF

To claim this, I am signing this object:

@icaromh
icaromh / tweet.py
Last active September 18, 2017 20:15
import TwitterCredentials as c
from twython import TwythonStreamer
class MyStreamer(TwythonStreamer):
def on_success(self, data):
if 'text' in data:
print data['text'].encode('utf-8')
stream = MyStreamer(c.APP_KEY, c.APP_SECRET, c.OAUTH_TOKEN, c.OAUTH_TOKEN_SECRET)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Installer</title>
</head>
<body>
<script src="installer.js">
var Installer = {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script type="text/javascript" src="https://cdn.jsdelivr.net/clappr/latest/clappr.min.js"></script>
</head>
<body>
<style>h1{text-align:center}body{ padding: 0; margin: 0; }</style>
@icaromh
icaromh / app.js
Last active December 14, 2016 13:45
var LivePublish = {
pushstream: {},
broadcastConfig: {
host: "stream.push.qa.globoi.com/ws/p.bslive",
port: 80,
// channel: "p.ZzEuZ2xvYm8uY29tL3Nhby1wYXVsby90cmFuc2l0by9yYWRhci10ZW1wby10cmFuc2l0by1hZ29yYS5odG"
channel: "p.test"
},
curl -X POST -H "Cache-Control: no-cache" -H "Postman-Token: c0e9cb10-04a4-b6d0-e0fc-b1ec8ca88ad3" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "parametro={"cliente.codigo":3285%2C"grupo":"3"%2C"item":"9"%2C"tipo":"1"%2C"novaConsulta":true%2C"confCaptcha":false%2C"selecionar":false%2C"selecionar_multipla":false%2C"__identificadores":[]%2C"__filtros_consulta_padrao":[{"filtroCampo":"clicodigo"%2C"filtroTipo":"IN"%2C"filtroValor":""%2C"filtroValor02":""%2C"filtroTipoCampo":"lista_multipla"%2C"filtroPodeSalvar":"true"%2C"filtroEncoded":false}%2C{"filtroCampo":"empespecie"%2C"filtroTipo":"IN"%2C"filtroValor":["1"%2C"2"%2C"3"]%2C"filtroValor02":""%2C"filtroTipoCampo":"lista_multipla"%2C"filtroPodeSalvar":"true"%2C"filtroEncoded":false}%2C{"filtroCampo":"loaano"%2C"filtroTipo":"%3D"%2C"filtroValor":"2016"%2C"filtroValor02":""%2C"filtroTipoCampo":"lista"%2C"filtroPodeSalvar":"true"%2C"filtroEncoded":false}%2C{"filtroCampo":"uninomerazao"%2C"filtroTipo":"C"%2C"filtroValor"
@icaromh
icaromh / login.sh
Created October 29, 2016 22:19
cURL para login no senac
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \
"unidade": 63, \
"password": "password", \
"username": "631420378" \
}' 'https://api.easyac.xyz/login'
@icaromh
icaromh / formatDate.js
Created July 22, 2016 19:36
Parse String Dates to really Date format - MongodB
db.ClockTime.find().forEach(function(doc) {
doc.ClockInTime=new Date(doc.ClockInTime);
db.ClockTime.save(doc);
});
@icaromh
icaromh / RenameAll.sh
Created April 22, 2016 21:12
Rename all files in a folder setting to lower case
for FILENAME in *; do NEWFILENAME=$(echo "$FILENAME" | tr '[:upper:]' '[:lower:]' | tr ' ' '_'); mv "$FILENAME" "$NEWFILENAME"; done