Ir em: Abrir Painel>Meus Filtros
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
command -nargs=1 SetTabSize call SetTabSize(<f-args>) | |
function SetTabSize(n) | |
let &l:tabstop=a:n | |
let &l:shiftwidth=a:n | |
let &l:softtabstop=a:n | |
endfunction |
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/bash | |
gs -o inverted.pdf \ | |
-sDEVICE=pdfwrite \ | |
-c "{1 exch sub}{1 exch sub}{1 exch sub}{1 exch sub} setcolortransfer" \ | |
-f input.pdf |
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
def validate_cnpj(cnpj): | |
if len(cnpj) != 14 or len(set(cnpj)) == 1: | |
return False | |
def calculate_verifier(digits,multipliers): | |
multiplied_pairwise = [(int(x)*int(y)) for x,y in zip(digits,multipliers)] | |
sum_ = sum(multiplied_pairwise) | |
modulo = sum_ % 11 | |
verifier = 0 if modulo < 2 else (11 - modulo) | |
return str(verifier) |
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
# WIFI CONFIG | |
iwctl device list | |
iwctl station wlan0 scan | |
iwctl station wlan0 get-networks | |
iwctl station wlan0 connect wifi_name | |
# for automated setup | |
# pacman -Sy git | |
# git clone https://github.com/ChrisTitusTech/ArchTitus |
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
import boto3 | |
from pprint import pprint | |
client = boto3.client('kinesis', region_name='us-east-1') | |
def put(): | |
response = client.put_record( | |
StreamName='teste', |
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
import json | |
import boto3 | |
from pprint import pprint | |
sqs = boto3.resource('sqs', region_name='us-east-1') | |
queue = sqs.Queue('https://sqs.us-east-1.amazonaws.com/666327610922/teste') | |
def get(): |
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
<?php | |
# helper function | |
const FAST_DESTRUCT_TEMP_KEY = 7896543210; | |
const FAST_DESTRUCT_FINAL_KEY = 7; | |
function process_object($object) | |
{ | |
$key = FAST_DESTRUCT_TEMP_KEY; | |
return [$key => $object, $key + 1 => $key]; | |
} |
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
docker network create -d bridge --subnet 192.168.0.0/24 --gateway 192.168.0.1 dockernet |
OlderNewer