This file contains 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
#by: https://therealmarv.com/how-to-fully-uninstall-the-offical-docker-os-x-installation/ | |
#Uninstall steps for boot2docker / Docker | |
boot2docker stop | |
boot2docker delete | |
#Remove Docker and boot2docker command line tools: | |
sudo rm /usr/local/bin/docker | |
sudo rm /usr/local/bin/boot2docker |
This file contains 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/sh | |
# telegram | |
wget https://updates.tdesktop.com/tlinux/tsetup.0.9.42.tar.xz | |
tar xvfJ tsetup.0.9.42.tar.xz | |
mv Telegram/ /opt/telegram | |
rm -rf tsetup.0.9.42.tar.xz | |
#telegram image | |
wget https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Telegram_logo.svg/128px-Telegram_logo.svg.png |
This file contains 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/sh | |
# meetfranz | |
wget --max-redirect=10 -O Franz-linux-x64.tgz http://bit.ly/1UoL5es | |
mkdir -p /opt/meetfranz | |
tar zxvf Franz-linux-x64.tgz -C /opt/meetfranz | |
rm -rf Franz-linux-x64.tgz | |
# Add to applications list (thanks 4ndrej) | |
echo -e '' >> /opt/meetfranz/meetfranz.desktop; |
This file contains 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/sh | |
# Sublime Text 3 install with Package Control (last update: 25 September 2016) | |
# | |
# No need to download this script, just run it on your terminal: | |
# | |
# $ curl -L git.io/sublimetext | sh | |
# Detect the architecture |
This file contains 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
#!/usr/bin/env python | |
__author__ = 'Frank Smit <frank@61924.nl>' | |
__version__ = '0.1.0' | |
import functools | |
import psycopg2 | |
from tornado.ioloop import IOLoop, PeriodicCallback |
This file contains 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
window.getComputedStyle = window.getComputedStyle || function( element ) { | |
return element.currentStyle; | |
} | |
//https://stackoverflow.com/questions/22907735/get-the-computed-style-and-omit-defaults | |
function getStylesWithoutDefaults( element ) { | |
var dummy = document.createElement(element.tagName); | |
document.body.appendChild( dummy ); | |
var defaultStyles = getComputedStyle( dummy ); | |
var elementStyles = getComputedStyle( element ); |
This file contains 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
echo -e " | |
def handler(event, context): | |
return { | |
'texto': 'hello world lambda usando awscli', | |
} | |
" >> main.py | |
zip -qr awsclicreatelambda.zip main.py | |
aws lambda create-function \ |
This file contains 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
mkdir lambda_com_pacotes && cd lambda_com_pacotes | |
#criando o arquivo main.py | |
echo -e " | |
import requests | |
def handle(event, context): | |
r = requests.get('https://api.github.com/events') | |
return { |
This file contains 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
# Criando a estrutura inicial: | |
apex init | |
# Alterando estrutura para rodar python | |
# Executando o deploy | |
apex deploy | |
# Listando as funcoes | |
apex list |
This file contains 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 amazonlinux | |
RUN yum update -y | |
RUN yum groupinstall "Development Tools" -y | |
RUN yum install -y \ | |
gcc \ | |
bzip2-devel \ | |
libffi \ | |
openssl-devel \ | |
perl-core \ |
OlderNewer