Skip to content

Instantly share code, notes, and snippets.

View Kicey's full-sized avatar

KiceyScream Kicey

  • HEBEI UNIVERSITY OF TECHNOLOGY
View GitHub Profile
@Kicey
Kicey / linux-vms-on-apple-m1-with-networking.md
Created August 6, 2025 08:48 — forked from max-i-mil/linux-vms-on-apple-m1-with-networking.md
Short summary to run Linux VMs on an Apple M1 host using QEMU, libvirt and HVF with a working network setup

Linux Virtual Machines with Private Network on an Apple M1 Device

Background

The aim was to be able to:

  1. Run multiple Linux VMs on an Apple M1/ARM device
  2. Use Apple's HVF for native performance speeds
  3. Configure VMs to allow network access to each other
  4. Configure VMs to allow access to the internet
  5. Not rely on custom modifications of software
@Kicey
Kicey / gdb_memory_write.log
Created July 15, 2025 10:45
When response >= 300, the rtp_relay_ctx is not released.
--- Start context track ---
Hardware watchpoint 2: -location *$addr
Old value = 1
New value = 2
0x00007fff6e45033f in rtp_relay_reqin (t=0x7fff7012c2e8, type=1, ps=0x7fffffffc890) at rtp_relay_ctx.c:452
452 RTP_RELAY_CTX_REF(ctx);
--- BEFORE WRITE ---
Memory at 0x7fff7012bcc8 contains: 2
@Kicey
Kicey / gdb_memory_write.log
Created July 15, 2025 10:41
When response < 300, the rtp_relay_ctx is released correctly.
--- Start context track ---
Hardware watchpoint 2: -location *$addr
Old value = 1
New value = 2
0x00007fff6e45033f in rtp_relay_reqin (t=0x7fff7012c4f0, type=1, ps=0x7fffffffc890) at rtp_relay_ctx.c:452
452 RTP_RELAY_CTX_REF(ctx);
--- BEFORE WRITE ---
Memory at 0x7fff7012beb0 contains: 2
word count from Wikipedia the free encyclopedia
the word count is the number of words in a document or passage of text Word counting may be needed when a text
is required to stay within certain numbers of words This may particularly be the case in academia legal
proceedings journalism and advertising Word count is commonly used by translators to determine the price for
the translation job Word counts may also be used to calculate measures of readability and to measure typing
and reading speeds usually in words per minute When converting character counts to words a measure of five or
six characters to a word is generally used Contents Details and variations of definition Software In fiction
In non fiction See also References Sources External links Details and variations of definition
This section does not cite any references or sources Please help improve this section by adding citations to
reliable sources Unsourced material may be challenged and removed
@Kicey
Kicey / java
Created September 3, 2023 18:39
WordCount
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;
@Kicey
Kicey / gist:dd67adb42298de88163e5029c1643a0d
Created September 3, 2023 18:25
Docker compose Hadoop config.
CORE-SITE.XML_fs.default.name=hdfs://namenode
CORE-SITE.XML_fs.defaultFS=hdfs://namenode
HDFS-SITE.XML_dfs.namenode.rpc-address=namenode:8020
HDFS-SITE.XML_dfs.replication=1
MAPRED-SITE.XML_mapreduce.framework.name=yarn
MAPRED-SITE.XML_yarn.app.mapreduce.am.env=HADOOP_MAPRED_HOME=$HADOOP_HOME
MAPRED-SITE.XML_mapreduce.map.env=HADOOP_MAPRED_HOME=$HADOOP_HOME
MAPRED-SITE.XML_mapreduce.reduce.env=HADOOP_MAPRED_HOME=$HADOOP_HOME
YARN-SITE.XML_yarn.resourcemanager.hostname=resourcemanager
YARN-SITE.XML_yarn.nodemanager.pmem-check-enabled=false