Skip to content

Instantly share code, notes, and snippets.

@cybern0id
cybern0id / YamahaFM.md
Created August 1, 2023 22:16 — forked from bryc/YamahaFM.md
Collecting info on Yamaha FM soundchips

Keybase proof

I hereby claim:

  • I am cybern0id on github.
  • I am cybern0id (https://keybase.io/cybern0id) on keybase.
  • I have a public key ASATP4BAl5nwpTxwMmhW_NYa60rwyiyJ4HfW6PHSPO1t2wo

To claim this, I am signing this object:

@cybern0id
cybern0id / make_deb.sh
Created July 27, 2020 00:07 — forked from satmandu/make_current_arm64_rpi_kernel_debs.sh
Make arm64 deb packages for the offical Raspberry Pi Foundation arm64 kernels
#!/bin/bash -ex
# Builds arm64 debian packages from the rpi firmware repository kernels.
# This runs on an arm64 host with arm64 compilation tools...
# or with some sort of cross-compilation setup.
# Debs are put in $workdir/build
#
# This will NOT work in Raspbian unless you have an arm64 compilation
# environment setup. Has not been tested yet on
# Raspberry Pi OS (64 bit) beta test version
#
I found the need to route specific machines and ports around the VPN. Since I run the VPN client in my router, all my traffic by default goes through the VPN. but if you have FTP, trackers that dont allow VPN/Proxy, RDP, SSH or other ports that you would like to go through your ISP's IP address there is a way to do this!
I found the answer on a another VPN forum. I can post the link but I am unsure if that will be breaking TorGuards rules.
In a nutshell... what this script does is it makes all of your IP address bypass the VPN, and then it adds rules using
ip_addrs_lst="192.168.1.1-192.168.1.50"
@cybern0id
cybern0id / gsm-setup.md
Created December 19, 2016 20:31 — forked from heyalexej/gsm-setup.md
SIM Card Management Through GSM Modem On Linux

SIM Card Management Over GSM Modem

A small guide on how to send and receive USSD codes on Linux

I am using the built in GSM (UMTS) modem of my Thinkpad X1 extensively because I am often in places with flaky internet connections. I connect through the standard Network Manager on Ubuntu and everything works fine. There was one major annoyance though. Every time I wanted to top up the SIM balance or book a new package, I needed a phone to send and receive USSD codes. So I took some time to figure out how to do it from the shell. I wrote this down as a help for others and a reminder for myself. Without further ado...

First intsall gammu and picocom.

~  sudo apt-get install -y gammu picocom
diff -Naur addons/web_editor/static/src/js.orig/backend.js addons/web_editor/static/src/js/backend.js
--- addons/web_editor/static/src/js.orig/backend.js 2016-11-22 02:59:37.212513617 +0000
+++ addons/web_editor/static/src/js/backend.js 2016-11-22 03:18:00.540454826 +0000
@@ -161,11 +161,6 @@
return !this.get('value') || this.get('value') === "<p><br/></p>" || !this.get('value').match(/\S/);
},
commit_value: function () {
- // leave code view before saving
- if (this.$content.prev('textarea').length === 1) {
- var layoutInfo = { 'editor': function() { return this.$content; }.bind(this) };
***QEMU STARTED***
Apr 21 15:56:22 debjess NetworkManager[871]: <info> (tap1): link connected
Apr 21 15:56:22 debjess kernel: [ 1021.139589] bridge0: port 3(tap1) entered listening state
Apr 21 15:56:22 debjess kernel: [ 1021.139611] bridge0: port 3(tap1) entered listening state
Apr 21 15:56:22 debjess kernel: [ 1021.140733] qemu-system-x86: sending ioctl 5326 to a partition!
Apr 21 15:56:23 debjess kernel: [ 1021.884607] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
Apr 21 15:56:23 debjess kernel: [ 1021.903905] vfio-pci 0000:00:1b.0: enabling device (0000 -> 0002)
Apr 21 15:56:25 debjess acpid: input device has been disconnected, fd 5
Apr 21 15:56:26 debjess kernel: [ 1024.554619] kvm: zapping shadow pages for mmio generation wraparound
@cybern0id
cybern0id / gist:d4c79cc7dfb928a4d7e8bd4fb9500c5a
Created April 21, 2016 11:00
Debian Jessie host lspci, lspci -v, lsusb -t and lsusb -v output for QEMU
:~$lspci
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)