Posts by iurisilvio • 261 points
4 posts
-
7
votes3
answers25438
viewsA: How to run programs written in Python in windows by hiding terminal feedback
Python in Windows has two executables. O python.exe and the pythonw.exe. The difference between them is that the pythonw.exe does not open a terminal window. If to run the program by clicking on it,…
-
4
votes2
answers5179
viewsA: Return all data from the first to the last day of the month with mysql
You can only select the month and year instead of selecting for an interval of days. SELECT * FROM minha_tabela WHERE MONTH(created_at)=MONTH(CURDATE()) AND YEAR(created_at)=YEAR(CURDATE()) This…
mysqlanswered iurisilvio 261 -
1
votes4
answers6715
viewsA: How to call an external function without sending the 'self'?
You can just wrapper the function you want to test. # TESTS.PY class OrderTests(TestCase, ShopTest): def _VIEW(self, *args, **kwargs): views.order(*args, **kwargs) def test_gateway_answer(self): url…
pythonanswered iurisilvio 261 -
1
votes2
answers158
viewsA: Software/Script/Application to manage access to multiple SSH accounts
The Fabric is usually used for Deployment, but works for your case. from fabric.api import * env.hosts = ['[email protected]'] def download(): get('/diretorio/remoto/', '/diretorio/local/') This…
sshanswered iurisilvio 261