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
| import os | |
| # Try to connect to a socket | |
| def isOpen(ip,port): | |
| import socket | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| s.settimeout(2) | |
| try: | |
| s.connect((ip, int(port))) | |
| s.shutdown(2) |
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
| #!/bin/bash | |
| for i in *.webp; do ffmpeg -i "$i" "${i%.webp}.jpg" ; done | |
| for i in *.webm; do ffmpeg -i "$i" "${i%.webm}.mp4" ; done |
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 enable tap to click on touchpad using libinput create a file in Xorg config: | |
| $ touch /etc/X11/xorg.conf.d/99-synaptics-overrides.conf | |
| And add the following configuration: | |
| Section "InputClass" | |
| Identifier "touchpad overrides" | |
| Driver "libinput" | |
| MatchIsTouchpad "on" | |
| Option "Tapping" "on" |
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
| #!/usr/bin/python3 | |
| # coding=UTF-8 | |
| import tweepy | |
| import datetime | |
| import shelve | |
| import re | |
| #Block Pattern | |
| bp = re.compile(r"^\D+\d{5,}$") |
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
| #!/usr/bin/python3 | |
| #Checks for hosts alive in the network. | |
| #If all hosts are offline, assume that power has failed | |
| #and initiate a shutdown | |
| #Luiz Fellipe Carneiro - 01/2021 | |
| import socket | |
| import os |
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
| ///////////////////////////////////////////////////////////////////////////// | |
| // Land | |
| ///////////////////////////////////////////////////////////////////////////// | |
| // Make groundfall. Try to avoid a rapid unplanned disassemble. | |
| // Warranty void if used with air | |
| // | |
| // Usage: RUN LANDVAC(<mode>,<latitude>,<longitude>). | |
| // | |
| // Parameters: | |
| // <mode>: Can be TARG, COOR or SHIP. |
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
| O ano é 2029. Hélio está mais uma vez aproveitando o trajeto semanal até a sede de seu escritório para por em dia suas séries favoritas. Enquanto relaxa tranquilamente no banco do seu carro elétrico, com o para-brisas tomado pelo streaming de vídeo em ultra alta definição. O volante, devidamente escamoteado, como é de costume e incentivado pelas seguradoras, deixa ao cargo dos computadores do veículo a tarefa de se conduzir, em velocidades estonteantes, até o centro da cidade. | |
| Esse trajeto, apesar de demorar cerca de duas horas, era quase sempre monótono. Vez ou outra algum animal incauto, ou mesmo um boêmio, ingressava na auto pista – termo esse que ganhou uma conotação completamente diferente a usada nas décadas anteriores – e acabava criando um verdadeiro balé onde os veículos desviavam e freavam automaticamente, e em sincronia, evitando uma colisão. Para os passageiros, esses acontecimentos normalmente não passavam de um contratempo, ou no máximo uma bebida derramada. | |
| Assistir a essas manobras pela primei |
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
| using System; | |
| using System.Numerics; | |
| namespace Fibonacci | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| BigInteger a = 1; |
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
| import datetime | |
| a = 1 | |
| b = 1 | |
| c = 0 | |
| i = 0 | |
| inicio = datetime.datetime.now() | |
| print("Inicio: " + str(inicio)) |
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
| // rover.ks | |
| // Written by KK4TEE | |
| // License: GPLv3 | |
| // | |
| // This program provides stability assistance | |
| // for manually driven rovers | |
| // GUI, Stability control and other improvements by FellipeC 2017 | |
| parameter turnfactor is 8. // Allow for passing the turnfactor for different rovers. |