Skip to content

Instantly share code, notes, and snippets.

@tsdmgz
tsdmgz / wireguard-ansible.yaml
Last active January 1, 2022 22:05
Rudimentary wireguard jinja template and playbook
# defaults/main.yml
wireguard_listen_port: 51820
wireguard_conf_dir: '/etc/wireguard/'
wireguard_device: wg0
wireguard_public_exposed: true
---
# templates/wg-config.j2
{# interface header #}
Device : samsung SM-J510GN (j5xnltedx)
Android : 6.0.1 (J510GNDXU1APD5, MMB29M.J510GNDXU1APD5)
Memory : 29M (7.79% free, 512M max)
Memclass: 128
OS Host : SWHD8917
App : Signal 3.29.6
--------- beginning of system
02-15 18:54:40.798 13005 13005 D ResourcesManager: For user 0 new overlays fetched Null
02-15 18:54:44.478 13005 13248 D ResourcesManager: For user 0 new overlays fetched Null
sudo nmap -vvvv -sS -p 21,22,23,80,8080,8000,443 202.92.142.0/23
Starting Nmap 7.12 ( https://nmap.org ) at 2016-07-31 02:34 PHT
Initiating Ping Scan at 02:34
Scanning 512 hosts [4 ports/host]
Completed Ping Scan at 02:34, 4.88s elapsed (512 total hosts)
Initiating Parallel DNS resolution of 512 hosts. at 02:34
Completed Parallel DNS resolution of 512 hosts. at 02:34, 0.02s elapsed
DNS resolution of 113 IPs took 0.02s. Mode: Async [#: 2, OK: 113, NX: 0, DR: 0, SF: 0, TR: 113, CN: 0]
Nmap scan report for 202.92.142.0 [host down, received no-response]
@tsdmgz
tsdmgz / i8552-vysor-logcat
Created April 6, 2016 12:47
Samsung Galaxy Win, 4.1.2 rooted failing Vysor logcat
I/VysorMain( 6865): Received command line password: 260e61d6
I/ClipboardService( 496): Got clipboard for user=0
I/VysorMain( 6865): Server starting
I/VysorMain( 6865): Waiting for exit
D/PowerManagerService( 496): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1008000 uid : 1000 pid : 496 tag : ActivityManager
D/AndroidRuntime( 6869): Shutting down VM
I/AndroidRuntime( 6869): NOTE: attach of thread 'Binder_3' failed
D/dalvikvm( 6869): GC_CONCURRENT freed 104K, 77% free 597K/2560K, paused 0ms+0ms, total 4ms
W/ActivityManager( 496): mDVFSLock.acquire()
E/ThermalDaemon( 1003): CPU[1] offline
@tsdmgz
tsdmgz / dmesg-et-al
Created March 12, 2015 07:16
dmesg, suspend.log, and other relevant logs
--dmesg--
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.16.7-7-desktop (geeko@buildhost) (gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux) ) #1 SMP PREEMPT Wed Dec 17 18:00:44 UTC 2014 (762f27a)
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.16.7-7-desktop root=UUID=57539cb4-bc4c-474e-a9a5-29cca9dffab7 resume=/dev/disk/by-uuid/2345be2c-1a5d-4d94-80d2-09b70339d544 showopts elevator=deadline i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 nouveau.modeset=0
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009e7ff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009e800-0x000000000009ffff] reserved
@tsdmgz
tsdmgz / magis-email-header
Created January 24, 2015 13:28
Magis acads headers
Delivered-To: <snip>
Received: by 10.194.101.135 with SMTP id fg7csp1018714wjb;
Mon, 19 Jan 2015 04:34:56 -0800 (PST)
X-Received: by 10.66.132.44 with SMTP id or12mr44122404pab.42.1421670895156;
Mon, 19 Jan 2015 04:34:55 -0800 (PST)
Return-Path: <magisacads@magisacademicmentors.org>
Received: from APAC01-SG1-obe.outbound.protection.outlook.com (mail-sg1on0118.outbound.protection.outlook.com. [134.170.132.118])
by mx.google.com with ESMTPS id h5si16180814pdn.26.2015.01.19.04.34.52
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
Mon, 19 Jan 2015 04:34:55 -0800 (PST)
@tsdmgz
tsdmgz / modeswitch-huawei-e1550
Last active August 29, 2015 14:11
Huawei E1550 usb_modeswitch magic
#From http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?p=4473#p4473
sudo /usr/sbin/usb_modeswitch -v 12d1 -p 1446 -M "55534243123456780000000000000011060000000000000000000000000000"