Skip to content

Instantly share code, notes, and snippets.

View mrlnc's full-sized avatar

Merlin Chlosta mrlnc

View GitHub Profile
@mrlnc
mrlnc / gist:1ebaaeac5d7b3951f6a7bfa2a0abc468
Created June 30, 2022 08:30
Github Action: run python script & commit results
name: fetch website and commit results
on:
schedule:
- cron: "30 * * * *"
jobs:
build:
runs-on: ubuntu-latest
@mrlnc
mrlnc / carrier.xml
Created June 8, 2022 21:57
iOS FR-ALERT Configuration
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CellBroadcast</key>
<dict>
<key>AlertTypes</key>
<dict>
<key>SevereAlerts(Level3)</key>
<dict>
@mrlnc
mrlnc / Info.plist
Last active June 3, 2022 11:42
iOS Country Bundles 2022-06-03
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleShortVersionString</key>
<string>50.1.0</string>
<key>CFBundleDeviceFamily</key>
<string>iPhone</string>
<key>CFBundleIdentifier</key>
<string>com.apple.Ukraine</string>
@mrlnc
mrlnc / iOS_CellBroadcast.md
Created May 24, 2022 09:48
iOS Emergency Configs

This file contains all Cell Broadcast configs from the iOS IPCC Carrier Bundles.

NOTE: not all configurations are in use - some are outdated. if you're interested in current versions, check the BundleMappings in the IPCC index XML.

Config file: data/031-16743-20150119-BAC78E82-A18F-11E4-BAAE-77D114E258F2_vtr_cl_iPhone.ipcc-dir/Payload/vtr_cl.bundle/carrier.plist
{
  "AlertConfigurations": {
@mrlnc
mrlnc / ipcc.md
Created April 25, 2022 11:03
iOS IPCC Carrier Configs

Inspect iOS Carrier Profiles (IPCC)

Carrier Profiles configure your smartphone for mobile networks. I'm not sure if Carrier Profiles are just a legacy or are actually required nowadays, since all configuration should be done through the mobile network itself.

You'll find things in there like:

  • enable VoLTE for specific carriers
  • disable some bands (makes sense if your carrier isn't transmitting there)

Download the list of all IPCCs:

@mrlnc
mrlnc / srsran_debug.md
Created November 4, 2021 10:11
srsRAN Debug vscode
  • srsRAN requires to run with sudo for accessing USRP software radios.
  • vscode runs as unprivileged user.
  • attaching a debugger (running unprivileged) to srsRAN (privileged) won't work.

See here: microsoft/vscode-remote-release#2053 (comment)

Create a file /usr/share/polkit-1/actions/com.ubuntu.pkexec.gdb.policy and add:

<?xml version="1.0" encoding="UTF-8"?>
@mrlnc
mrlnc / silent_ping_sms.md
Last active October 28, 2021 12:06
Building "Silent Ping SMS" Android App

Building the app "Silent Ping SMS".

Install JDK and gradle.

apt install gradle openjdk-8-jdk 

The README says: ./gradle clean installDebug, which fails:

@mrlnc
mrlnc / pysim-suci.md
Last active March 20, 2025 12:15
pysim-suci.md
@mrlnc
mrlnc / free5gc-run-tests-extern-5gc.md
Last active March 13, 2021 18:25
free5gc-run-tests-extern-5gc.md

You can use Free5GC's set of testcases (free5gc/test/registration_test.go) to test other core networks, too.

1.) change IPs in registration_test.go to point to your 5GC instance.

const ranN2Ipv4Addr string = "127.0.0.1"
const amfN2Ipv4Addr string = "127.0.0.1"

2.) run tests with the noinit parameter -- this will inhibit initialization of a local free5gc instance