- Baixar o firefox versao 48.0
wget https://ftp.mozilla.org/pub/firefox/releases/48.0/linux-x86_64/pt-BR/firefox-48.0.tar.bz2
wget https://ftp.mozilla.org/pub/firefox/releases/48.0/linux-x86_64/pt-BR/firefox-48.0.tar.bz2
import os | |
basedir = "/root/Scripts/myren/sandbox" | |
for old_name in os.listdir(basedir): | |
res = " ".join(reversed(old_name.rsplit('-'))) | |
print("Reverse folder.: " + str(old_name)) | |
new_name = str(res).replace(" ","-") | |
print("Reversing to...: " + str(new_name)) | |
os.rename(os.path.join(basedir,old_name),os.path.join(basedir,new_name)) | |
print("done!") | |
Get the information of PHP | |
========================== | |
$ sudo apt show php | |
OR | |
$ sudo apt show php -a | |
$ sudo apt install php // this will install default php version ( may be 7.2 ) | |
T0 Install Different Versions Of PHP |
Markdown Preview Enhanced supports rendering flow charts
, sequence diagrams
, mermaid
, PlantUML
, WaveDrom
, GraphViz
, Vega & Vega-lite
, Ditaa
diagrams.
You can also render TikZ
, Python Matplotlib
, Plotly
and all sorts of other graphs and diagrams by using Code Chunk.
Please note that some diagrams don't work well with file exports such as PDF, pandoc, etc.
This feature is powered by flowchart.js.
# To have script anywhere, anytime, ever, everybody | |
mkdir temp && cd temp | |
# for linux 'amd64' architecture install those packages: | |
sudo apt-get install libx11-6:i386 libpam0g:i386 libstdc++5:i386 lib32z1 lib32ncurses5 | |
wget https://vpnportal.aktifbank.com.tr/SNX/INSTALL/snx_install.sh | |
sudo sh snx_install.sh |
Git freak como sou, precisava compartilhar algo útil sobre ele, claro. E, já que não vejo muito por aí o pessoal usando, resolvi falar dos alias do git! É um recurso que eu uso muito, e nunca entendi porque muitas pessoas não são adeptas. 😕
Pelo nome você já deve perceber que os alias no git são atalhos. Atalhos pro quê? São atalhos para comandos do git e até comandos shell se você quiser. E é bem fácil cadastrar um alias:
$ git config --global alias.st status
git config http.postBuffer 524288000 #Set to 500MB |
#!/bin/sh | |
# Sublime Text 3 Install (last update: Monday 13 March 2017) | |
# | |
# No need to download this script, just run it on your terminal: | |
# | |
# curl -L git.io/sublimetext | sh | |
# Detect the architecture |
# For use in Chef: | |
# Adds a command: git-pull-recursive | |
file "/usr/local/bin/git-pull-recursive" do | |
owner "root" | |
group "root" | |
mode "0755" | |
action :create | |
content 'find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;' | |
end |