View rede_de_dormir.py
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
#!/usr/bin/env python | |
from sympy import sinh, acosh, sqrt, nsolve, Symbol, Float | |
def calcular_rede(altura_rede, altura_ganchos, distancia_ganchos): | |
H = distancia_ganchos | |
h = altura_ganchos - altura_rede | |
a = Symbol('a') | |
L = Symbol('L') |
View plot.py
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 re | |
import math | |
import itertools | |
import matplotlib.pyplot as plt | |
import matplotlib.dates as mdates | |
import numpy as np | |
from datetime import datetime | |
from collections import defaultdict | |
View synth-cw.py
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
#!/usr/bin/env python3 | |
import jack | |
import curses | |
import queue | |
from math import sin, pi | |
f = 700 # Hz | |
#duration = 0.240 # seconds | |
duration = 0.080 # seconds | |
latency = 0.020 # seconds |
View gerar_certificados_aciepe.py
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
#!/usr/bin/env python3 | |
import xml.etree.ElementTree as ET | |
from urllib.parse import urlencode | |
from html import unescape | |
import argparse | |
import requests | |
import locale | |
import time | |
import csv | |
import os |
View check_trustees.py
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
#!/usr/bin/env python3 | |
import requests | |
import sys | |
import os | |
import re | |
election_uuid = sys.argv[1] | |
base_url = 'https://votacao.ufscar.br' | |
login_url = '{}/auth/ldap/login'.format(base_url) |
View reeval_pr.py
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
#!/usr/bin/env python3 | |
from nizkctf.team import Team | |
from nizkctf.acceptedsubmissions import AcceptedSubmissions | |
from nizkctf.settings import Settings | |
from nizkctf.proof import proof_open | |
import os | |
import sys | |
import requests | |
import datetime | |
import pytz |
View PKGBUILD
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
# Maintainer: Jiuyang Liu <liujiuyang1994@gmail.com> | |
# Maintainer: Paulo Matias <matias@ufscar.br> | |
pkgname=bluespec-git | |
pkgver=r285.9dfe8f5 | |
pkgrel=1 | |
pkgdesc='Bluespec Compiler (BSC)' | |
arch=('x86_64') | |
url='https://github.com/B-Lang-org/bsc' | |
license=('BSD') |
View sync_accepted.py
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
#!/usr/bin/python3 | |
from nizkctf.team import Team, SUBMISSIONS_FILE | |
from nizkctf.acceptedsubmissions import AcceptedSubmissions | |
from nizkctf.subrepo import SubRepo | |
from nizkctf.settings import Settings | |
import os | |
import subprocess | |
import requests | |
import datetime | |
import pytz |
View juggle.xml
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
<?xml version="1.0" encoding="UTF-8"?> | |
<meal> | |
<course> <!-- #0 --> | |
<!-- jump if there are iterations to do --> | |
<plate><paella>5</paella></plate> <!-- course number --> | |
<plate><paella>1</paella></plate> | |
<plate><불고기/></plate> | |
<plate><æblegrød/></plate> | |
<!-- otherwise print flag and exit --> |
View unisolate.sh
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 | |
gw="$(ip route | grep -Po '^default via \K\d+\.\d+\.\d+\.\d+')" | |
iface="$(ip route | grep -Po '^default via \d+\.\d+\.\d+\.\d+ dev \K[^ ]+')" | |
local_subnet_forwarding_rule="$(ip route | grep -P "^\d+\.\d+\.\d+\.\d+/\d+ dev $iface .*? link src")" | |
gw_forwarding_rule="$gw $(echo "$local_subnet_forwarding_rule" | grep -Po '^\d+\.\d+\.\d+\.\d+/\d+ \K.+')" | |
if [[ ! -z "$local_subnet_forwarding_rule" ]]; then | |
set -xe |
NewerOlder