Skip to content

Instantly share code, notes, and snippets.

View intech's full-sized avatar
🌍
The idea is not to live forever, it is to create something that will

Ivan Zhuravlev intech

🌍
The idea is not to live forever, it is to create something that will
View GitHub Profile
@smx-smx
smx-smx / XZ Backdoor Analysis
Last active June 2, 2024 07:22
[WIP] XZ Backdoor Analysis and symbol mapping
XZ Backdoor symbol deobfuscation. Updated as i make progress
@cGandom
cGandom / RaspberryPi4-qemu.md
Last active July 18, 2024 16:00
Emulating Raspberry Pi 4 with Qemu

Emulating Raspberry Pi 4 with Qemu

Just a quick update before we dive in: what we're actually doing here is running Raspberry Pi OS (64-bit) on a QEMU virtual ARM setup. This isn't full-blown hardware emulation of the Raspberry Pi 4, but more about creating a virtual environment for the OS. It doesn't mimic all the specific hardware features of the Pi 4, but it's pretty useful and great for general testing. I turned to this solution mainly to extract a modified sysroot from the Raspberry Pi OS, something not readily available in other resources. For those looking into detailed emulation of the actual Raspberry Pi 4's hardware in QEMU, check out this link for the latest updates: https://gitlab.com/qemu-project/qemu/-/issues/1208.

Hope it helps! :D

Shortcomings: No GUI yet, only console.

Steps

@djsime1
djsime1 / Preamble.md
Created August 7, 2022 23:07
Flipper Zero developer Q&A: Aug 6 2022

Flipper Zero developer Q&A

August 6th 2022

Below are my notes regarding every question asked and answered, covering both sessions.
While the 1st session's audio is lost to time, I have a full recording of the second session.
Stream and download the MP3 here: https://nc.dj.je/s/9FZAqbs9LwcSnio (I'm looking for a better way to host the file, perhaps I might upload the next one to archive.org)

NOTE: The transcription of questions and answeres may contain errors, take it all with a grain of salt.

@fusetim
fusetim / protonvpn-wireguard-generator.py
Last active July 24, 2024 17:28
Generate lots of Wireguard configuration for your ProtonVPN Account.
import http.client
import http.cookies
import json
import base64
import hashlib
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import x25519
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives import hashes
@jinschoi
jinschoi / nscd.sub
Created March 25, 2022 02:02
de Bruijn .sub file for Flipper Zero for NSCD garage doors
Filetype: Flipper SubGhz RAW File
Version: 1
Frequency: 318000000
Preset: FuriHalSubGhzPresetOok650Async
Protocol: RAW
RAW_Data: 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 500 -4000 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 500 -4000 4000 -500 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 4000
@abdavid
abdavid / CacheComposer.ts
Last active March 23, 2021 11:57
Cache composing in MoleculerJS
/**
POC of cache composing.
The idea behind this madnes was to compose multiple layers of LRU type caches,
with the first layer being local (LRUMemcache) with a 1:1 with configured TTL, and for each subsequent tier 1:n of the configured ttl.
In effect that would mean that when a cached item gets shifted out of the first layer due to being regarded as the least recently used,
it would still exising in the second layer giving it a grace period of sorts before deleting the cache entry from all layers.
BUT WHY you may ask?
@nullenc0de
nullenc0de / auto_git_query
Last active July 13, 2024 08:51
Automated Github Queries (Can open 29 tabs at a time)
https://github.com/search?q=BROWSER_STACK_ACCESS_KEY= OR BROWSER_STACK_USERNAME= OR browserConnectionEnabled= OR BROWSERSTACK_ACCESS_KEY=&s=indexed&type=Code
https://github.com/search?q=CHROME_CLIENT_SECRET= OR CHROME_EXTENSION_ID= OR CHROME_REFRESH_TOKEN= OR CI_DEPLOY_PASSWORD= OR CI_DEPLOY_USER=&s=indexed&type=Code
https://github.com/search?q=CLOUDAMQP_URL= OR CLOUDANT_APPLIANCE_DATABASE= OR CLOUDANT_ARCHIVED_DATABASE= OR CLOUDANT_AUDITED_DATABASE=&s=indexed&type=Code
https://github.com/search?q=CLOUDANT_ORDER_DATABASE= OR CLOUDANT_PARSED_DATABASE= OR CLOUDANT_PASSWORD= OR CLOUDANT_PROCESSED_DATABASE=&s=indexed&type=Code
https://github.com/search?q=CONTENTFUL_PHP_MANAGEMENT_TEST_TOKEN= OR CONTENTFUL_TEST_ORG_CMA_TOKEN= OR CONTENTFUL_V2_ACCESS_TOKEN=&s=indexed&type=Code
https://github.com/search?q=-DSELION_BROWSER_RUN_HEADLESS= OR -DSELION_DOWNLOAD_DEPENDENCIES= OR -DSELION_SELENIUM_RUN_LOCALLY=&s=indexed&type=Code
https://github.com/search?q=ELASTICSEARCH_PASSWORD= OR ELASTICSEARCH_USERNAME= OR EMAIL_NOTIFI
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 25, 2024 13:42
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

Docker Macvlan and Ipvlan Experimental Driver Examples

  • The build will be vendored into github.com/docker/docker in the next few days. In the meantime here is the binary that will be getting vendored. docker-1.11.0-dev.zip
  • Ipvlan L2 mode network with multiple subnets without a parent specified
  • For a long test that will create 54 networks and 120+ containers, then delete them all and recreate them again try ipvlan-macvlan-it.sh Instructions here Docker Macvlan and Ipvlan Manual IT Test
  • FYI Note: When the parent is empty or the --internal flag is used, a linux type dummy interface is dynamically created by Libnetwork to act as the parent. This network is completely isolated and is the equivalent to a --internal flag. This is a good mode for demoing.
  • The first test requires an interface
@noff
noff / gist:8124475
Created December 25, 2013 15:59
parse utm's
var source = '';
var medium = '';
var campaign = '';
var q = document.location.search;
q = q.substring(1,q.length);
q = q.split('&');
for(var a in q) {
if (q.hasOwnProperty(a)){
var b = q.split('');