Some of the most important advancements in programming came from adding restrictions to the way we program.
Famous article by Edsger Dijkstra Go To Statement Considered Harmful
shows how introducing one statement into programming language breaks many nice properties of that language.
goto
gives us freedom and solves couple of simple problems like breaking from nested loops easily,
but it can make programs very hard to understand.
This happens, because we cannot look at two pieces of code in spearation.
The execution can jump to some other place in code or even worse: it can jump from other piece of code to here and We need to keep that in mind.
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
In order to work the Bose QC35 Headset Bluetooth do the following: | |
- sudo pacman -Syu pulseaudio-alsa pulseaudio-bluetooth bluez bluez-libs bluez-utils | |
- turn off bluetooth from your computer | |
- sudo btmgmt ssp of | |
- gpasswd -a YOUR_USER lp |
- Site Reliability Engineering: How Google Runs Production Systems
- Operating Systems
- Operating Systems: Three Easy Pieces
- How Linux Works, 2nd Edition
- Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation
- [Systems Performance: Enterprise and the Cloud](https://www.amazon.com/gp/product/0133390098?ie=UTF8&tag=deirdrestraug-20&linkCode=as2&camp=1789&creative=390957&creativ
I hereby claim:
- I am andrealmar on github.
- I am andrealmar (https://keybase.io/andrealmar) on keybase.
- I have a public key ASBVrFj0dzmy_-oL1agIHIuNoRm49y8T-1-kDTGc0yqVSQo
To claim this, I am signing this object:
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
du -sh /var/* | sort -n |
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
# Author: Andre Almar - [email protected] | |
import os, subprocess | |
from subprocess import call | |
print 'Validando FileSystem /webaplic' | |
if os.path.isdir('/webaplic'): | |
print "Diretorio /webaplic ja existe" | |
else: | |
try: |
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
# TO RUN the WLST script just type the command below: | |
# /webtools/oracle/plat1200_1/middleware/oracle_common/common/bin/wlst.sh weblogic_ad_users.py | |
# Author: ANDRE ALMAR | |
servidor = raw_input('Digite o servidor: ') | |
porta = raw_input('Digite a porta: ') | |
usuario = raw_input('Digite o usuario: ') | |
password = raw_input('Digite o password: ') | |
roles = ['Deployer', 'Monitor', 'Operator', 'IntegrationDeployer', 'IntegrationMonitor', 'IntegrationOperator'] |
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
Então mudaremos, na própria linha de comando do vi, a palavra "amamu" pelo correto, amamos. | |
Sendo key-sensitive a utilização deste comando, execute: | |
:%s/amamu/amamos/g |
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
Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
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
-p # port binding eg.HOST:CONTAINER - 5433:5432 | |
-e # env variabls | |
# Run a container mounting an outside volume inside the container | |
docker run -it -v /Users/andrealmar/primeiro_dockerfile/:/volume alpine | |
# Inspect mounted volume of a Container | |
docker inspect -f {{.Mounts}} 8a73d606bd9c | |
# creating and executing a PostgreSQL container using another container as a Volume |