Skip to content

Instantly share code, notes, and snippets.

View dezgeg's full-sized avatar

Tuomas Tynkkynen dezgeg

  • Helsinki, Finland
View GitHub Profile
use Irssi;
use strict;
use vars qw($VERSION %IRSSI);
$VERSION = '1.0';
%IRSSI = (
authors => 'Tuomas Tynkkynen',
contact => '[email protected]',
name => 'noawaymsg',
description => 'Ignore useless messages on /away',
license => 'GPLv2',
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
struct Foo {
asd: Option<String>,
}
fn doit(foos: &Vec<Foo>) {
for foo in foos.iter() {
let cloned: Foo = *(foo.clone()); // <--
}
}
diff --git arch/arm/boot/dts/tegra124.dtsi arch/arm/boot/dts/tegra124.dtsi
index 6e6bc4e..aa8753a 100644
--- arch/arm/boot/dts/tegra124.dtsi
+++ arch/arm/boot/dts/tegra124.dtsi
@@ -613,6 +613,8 @@
<&tegra_car TEGRA124_CLK_PLL_U>,
<&tegra_car TEGRA124_CLK_USBD>;
clock-names = "reg", "pll_u", "utmi-pads";
+ resets = <&tegra_car 59>, <&tegra_car 22>;
+ reset-names = "usb", "utmi-pads";
diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi
index d675186..5b14d79 100644
--- a/arch/arm/boot/dts/tegra124.dtsi
+++ b/arch/arm/boot/dts/tegra124.dtsi
@@ -643,6 +643,8 @@
<&tegra_car TEGRA124_CLK_PLL_U>,
<&tegra_car TEGRA124_CLK_USBD>;
clock-names = "reg", "pll_u", "utmi-pads";
+ resets = <&tegra_car 22>, <&tegra_car 22>;
+ reset-names = "usb", "utmi-pads";
@dezgeg
dezgeg / gist:27dc818851e301d8058a
Created May 6, 2015 09:23
NixOS on Jetson TK1
U-Boot SPL 2014.10-rc2-00001-g9f88c9e (Dec 01 2014 - 14:29:15)
U-Boot 2014.10-rc2-00001-g9f88c9e (Dec 01 2014 - 14:29:15)
TEGRA124
Board: NVIDIA Jetson TK1
I2C: ready
DRAM: 2 GiB
MMC: Tegra SD/MMC: 0, Tegra SD/MMC: 1
@dezgeg
dezgeg / gist:e364bbf9f513b7f222e6
Created May 6, 2015 11:10
Initial bootstrap configuration.nix
{ config, pkgs, ... }: {
environment.systemPackages = with pkgs; [
gitMinimal
psmisc # killall
tree
];
networking.domain = "dezgeg.me";
networking.firewall.enable = false;
1431171100 INFO RandomSeed.c:42 Attempting to seed random number generator
1431171100 INFO RandomSeed.c:50 Trying random seed [/dev/urandom] Success
1431171100 INFO RandomSeed.c:56 Trying random seed [sysctl(RANDOM_UUID) (Linux)] Failed
1431171100 INFO RandomSeed.c:50 Trying random seed [/proc/sys/kernel/random/uuid (Linux)] Success
1431171100 INFO RandomSeed.c:64 Seeding random number generator succeeded with [2] sources
These metrics are speed of encryption and decryption similar to the usage pattern
when decrypting a packet, switching it, and re-encrypting it with another key.
Test sending 1000 64 byte hello packets
Finished in 10593ms. 48 Kb/s
processor : 0
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 24.00
Features : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc0f
CPU revision : 3
[10053.929142] BUG: Bad page map in process git pte:9272079f pmd:ea20a831
[10053.935893] page:ee890080 count:1 mapcount:-1 mapping:d8d77e3c index:0x482d
[10053.942905] flags: 0x2027c(referenced|uptodate|dirty|lru|active|arch_1|mappedtodisk)
[10053.950846] page dumped because: bad pte
[10053.954783] page->mem_cgroup:ed805800
[10053.958458] addr:b3e1e000 vm_flags:00000071 anon_vma: (null) mapping:d8d77e3c index:482d
[10053.966699] file:pack-2579daa3b5dff7d187159e93b6f2e2b5c4ba5643.idx fault:filemap_fault mmap:ext4_file_mmap readpage:ext4_readpage
[10053.978435] CPU: 0 PID: 5659 Comm: git Not tainted 4.2.0-rc3 #1-NixOS
[10053.984900] Hardware name: NVIDIA Tegra SoC (Flattened Device Tree)
[10053.991203] [<c021b164>] (unwind_backtrace) from [<c0215f20>] (show_stack+0x20/0x24)