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
| 1. Configurar IPv4 estático e IPv6 estático no pihole (YMMV) | |
| 192.168.1.2 e 2001:818:xxxx::192:168:1:2 no meu caso | |
| 2. Configurar DNS uplink do pihole igual ao IP do Router (192.168.1.1) | |
| 3. Configurar Router | |
| Huawei HS8247W (Smart Router 2) | |
| 1. Configurações Avançadas -> LAN -> Configuração de DHCP | |
| Servidor DNS Primário: 192.168.1.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
| using UnityEngine; | |
| [RequireComponent( typeof(Camera) )] | |
| public class FlyCamera : MonoBehaviour { | |
| public float acceleration = 50; // how fast you accelerate | |
| public float accSprintMultiplier = 4; // how much faster you go when "sprinting" | |
| public float lookSensitivity = 1; // mouse look sensitivity | |
| public float dampingCoefficient = 5; // how quickly you break to a halt after you stop your input | |
| public bool focusOnEnable = true; // whether or not to focus and lock cursor immediately on enable |
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
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
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 json | |
| import random | |
| import logging | |
| import re | |
| from azure.cosmosdb.table.tableservice import TableService | |
| from azure.storage.queue import QueueService, QueueMessageFormat | |
| class JobManager(object): | |
| def __init__(self, accound_name: str, account_key: str, job_group: str, job_id: str = None): |
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 -e | |
| if [ "$(uname -s)" != "Darwin" ] | |
| then | |
| echo "This script is for building a Debian x86_64 image to use on MacOS" | |
| exit 1 | |
| fi | |
| TEMP="$(mktemp -d build.XXXXX)" | |
| cp preseed.cfg $TEMP |
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 | |
| # This script will install AMDGPU-PRO OpenCL and Vulkan support. | |
| # | |
| # For Ubuntu and it's flavor, just install the package using this command | |
| # in extracted driver directory instread. | |
| # | |
| # ./amdgpu-pro-install --opencl=legacy,pal --headless --no-dkms | |
| # | |
| # For Arch Linux or Manjaro, use the opencl-amd or rocm-opencl-runtime on AUR instread. |
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
| addEventListener('fetch', event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }) | |
| /** | |
| * Fetch and log a request | |
| * @param {Request} request | |
| */ | |
| async function handleRequest(request) { | |
| let url = request.url |
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 binascii | |
| import struct | |
| def pronto2lirc(pronto): | |
| codes = [long(binascii.hexlify(pronto[i:i+2]), 16) for i in xrange(0, len(pronto), 2)] | |
| if codes[0]: | |
| raise ValueError('Pronto code should start with 0000') | |
| if len(codes) != 4 + 2 * (codes[2] + codes[3]): | |
| raise ValueError('Number of pulse widths does not match the preamble') |
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
| """Provide high-level UDP endpoints for asyncio. | |
| Example: | |
| async def main(): | |
| # Create a local UDP enpoint | |
| local = await open_local_endpoint('localhost', 8888) | |
| # Create a remote UDP enpoint, pointing to the first one |
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
| @echo off | |
| setlocal EnableDelayedExpansion | |
| ver | find "10." > nul | |
| if errorlevel 1 ( | |
| echo Your Windows version is not Windows 10... yet. Brace yourself, Windows 10 is coming^^! | |
| pause | |
| exit | |
| ) |