Skip to content

Instantly share code, notes, and snippets.

@iosecure
iosecure / iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment.md
Last active May 7, 2024 14:23
iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

This post by a security researcher who prefers to remain anonymous will elucidate concerns about certain problematic decisions Apple has made and caution about future decisions made in the name of “security” while potentially hiding questionable motives. The content of this article represents only the opinion of the researcher. The researcher apologises if any content is seen to be inaccurate, and is open to comments or questions through PGP-encrypted mail.



TL;DR

@uuklanger
uuklanger / howto_setup_pylint_with_pycharm.md
Last active May 7, 2024 14:23
HOWTO - Setup pylint with PyCharm and the PyLint Plugin

Overivew

Setting up a linter can help detect odd or non-typical coding practices. The following will describe how to setup PyCharm for basic linting with the PyCharm PyLint plugin.

This assumes you have a venv setup within your current project.

Install Pylint

For pylint for your current project venv the following two commands should be run in your project root. The first will install pylint and the second will create an rc file which you can then adjust for your current project.

VIVA LA MAIN

A proposta é manter apenas uma branch: main.

Dev abre PR, e o CI roda testes, verifica se build passa, é feito code review e o merge é feito para main.

Todo código novo na main vai gerar uma nova CI e CD, uma release para ambiente de staging, onde é feito o QA pelas partes interessadas (Dev, QA, Product).

O controle do que pode ser exibido por ambiente é feito por feature flags, basicamente um if no código que verifica se no ambiente X (staging | production) a feature pode ser ativada ou desativada.

@smithclay
smithclay / index.js
Created June 16, 2017 18:30
"Hello World" AWS Lambda + Terraform Example
// 'Hello World' nodejs6.10 runtime AWS Lambda function
exports.handler = (event, context, callback) => {
console.log('Hello, logs!');
callback(null, 'great success');
}
@Thinkscape
Thinkscape / README.md
Last active May 7, 2024 14:20
Fix lodash edge compatibility (vercel, cloudflare workers)

Lodash and Edge Runtimes

See: lodash/lodash#5862

Lodash uses Function(String) which upsets Next.js and is incompatible with CloudFlare workers (Vercel Edge), resulting in errors like:

Failed to compile.
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime
@cmuller
cmuller / matrix1.md
Last active May 7, 2024 14:19
Matrix Synapse : how to prevent users from creating rooms or communities

Matrix Synapse : how to prevent users from creating rooms or communities

This can be useful for admins running local synapse servers.

Forbid Group/Community creation

in order to prevent users from creating communities, there is an option: put in your /matrix/synapse/config/homeserver.yaml file:

@andriyudatama
andriyudatama / VS Code Disable GPU Acceleration
Last active May 7, 2024 14:18
Disable Hardware Acceleration (GPU) on Visual Studio Code
Visual Studio Code frequently crashes linux. Using NVIDIA GPU
1. Open command pallete (Ctrl + Shift + P)
2. Enter "Preferences: Configure Runtime Arguments"
3. Add config: "disable-hardware-acceleration": true
4. Restart VS Code
@jevakallio
jevakallio / readme.md
Last active May 7, 2024 14:18
`adb pull` from app data directory without root access

TL;DR;

com.package.name is your app identifier, and the file path is relative to the app user's home directory, e.g. '/data/user/0/com.package.name.

adb shell run-as com.package.name cp relative/path/file.ext /sdcard
adb pull /sdcard/file.ext

See long explanation below.

@jamesbar2
jamesbar2 / postal-codes.json
Last active May 7, 2024 14:17 — forked from matthewbednarski/postal-codes.json
Global postal codes regex formats
[{
"Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup",
"Country": "Afghanistan",
"ISO": "AF",
"Format": "NNNN",
"Regex": "^\\d{4}$"
}, {
"Note": "With Finland, first two numbers are 22.",
"Country": "Åland Islands",
"ISO": "AX",
@fortunecookiezen
fortunecookiezen / Jenkinsfile
Last active May 7, 2024 14:15
terraform-parameterized-jenkinsfile-with-approval
pipeline {
agent {
docker {
image 'hashicorp/terraform:light'
args '--entrypoint="" -u root'
}
}
environment {
AWS_ACCESS_KEY_ID = credentials('DEV_AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = credentials('DEV_AWS_SECRET_ACCESS_KEY')