Skip to content

Instantly share code, notes, and snippets.

@dlintw
dlintw / patchdbg
Created June 1, 2019 05:16
replace dbg: as dbg:<line_number>
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"path"
"regexp"
@dlintw
dlintw / PKGBUILD
Created April 18, 2019 03:39
patched url for vim-clang-format-git
# Maintainer : Jason Raymond Bell <jason@epixxware.com>
_pkgname="vim-clang-format"
pkgname="vim-clang-format-git"
pkgver=1
pkgrel=1
pkgdesc='Plugin which uses clang for formatting C and C++ code. Git version.'
arch=(any)
url='https://github.com/rhysd/vim-clang-format'
license=('MIT')
@dlintw
dlintw / console.log
Created March 25, 2019 00:06
boot sh4twbox on sda3 with ext3 failed
Board: STx7105-PDK [32-bit mode]
U-Boot 1.3.1 (Oct 6 2013 - 04:36:18) - stm23_0045
DRAM: 256 MiB
SPI: ST M25P80 (1MiB) device (page=256,erase=4096)
In: serial
Out: serial
Err: serial
#!/bin/bash
set -ex
cd /tmp
#pacman -S --needed --noconfirm base-devel
#git clone https://aur.archlinux.org/nosudo
#cd nosudo
#makepkg -o
#cp nosudo /bin/sudo
/usr/bin/ld: stri_brkiter.o: in function `StriBrkIterOptions::setType(SEXPREC*, char const*)':
stri_brkiter.cpp:(.text+0x9c): relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `vtable for icu_61_stringi::UnicodeString' defined in .data.rel.ro._ZTVN14icu_61_stringi13UnicodeStringE[_ZTVN14icu_61_stringi13UnicodeStringE] section in icu61/common/unistr.o
/usr/bin/ld: stri_brkiter.cpp:(.text+0x9c): warning: too many GOT entries for -fpic, please recompile with -fPIC
/usr/bin/ld: final link failed: symbol needs debug section which does not exist
collect2: error: ld returned 1 exit status
make[1]: *** [/usr/share/R//make/shlib.mk:6: stringi.so] Error 1
make[1]: Leaving directory '/tmp/Rtmptqa7sb/R.INSTALL267e59b4e33f/stringi/src'
ERROR: compilation failed for package ‘stringi’
julia> df = CSV.read("test.csv", DataFrame)
ERROR: CSV.Error on row=4963, column=8:
Parsers.Error (INVALID: SENTINEL, DELIMITED, INVALID_DELIMITER):
initial value parsing failed, a sentinel value was parsed, a valid delimiter was parsed, invalid delimiter
attempted to parse Missing from: "ESVUFR,"
Stacktrace:
[1] stream!(::CSV.Source{Parsers.Delimited{false,Parsers.Quoted{Parsers.Strip{Parsers.Sentinel{typeof(Parsers.defaultparser),Parsers.Trie{0x00,false,missing,2,Tuple{}}}}},Parsers.Trie{0x00,false,missing,8,Tuple{Parsers.Trie{0x2c,true,missing,8,Tuple{}},Parsers.Trie{0x0a,true,missing,8,Tuple{}},Parsers.Trie{0x0d,true,missing,8,Tuple{Parsers.Trie{0x0a,true,missing,8,Tuple{}}}}}}},Base.GenericIOBuffer{Array{UInt8,1}},Dates.DateFormat{Symbol("yyyy-mm-dd\\THH:MM:SS.s"),Tuple{Dates.DatePart{'y'},Dates.Delim{Char,1},Dates.DatePart{'m'},Dates.Delim{Char,1},Dates.DatePart{'d'},Dates.Delim{Char,1},Dates.DatePart{'H'},Dates.Delim{Char,1},Dates.DatePart{'M'},Dates.Delim{Char,1},Dates.DatePart{'S'},Dates.Delim{Char
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Aaron Lindsay <aaron@aaronlindsay.com>
# Contributor: Tiago Camargo <tcamargo@gmail.com>
# Contributor: Daniel YC Lin <dlin.tw at gmail.com>
pkgname=devkitppc-bin
pkgver=r29.1
pkgrel=2
pkgdesc='PowerPC toolchain for Nintendo Gamecube/Wii/Wii U homebrew development (precompiled)'
arch=('i686' 'x86_64')
@dlintw
dlintw / cloudSettings
Created December 29, 2017 05:49
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-29T05:49:40.730Z","extensionVersion":"v2.8.7"}
@dlintw
dlintw / output.log
Created May 7, 2017 06:51
install Arch Linux on Android m7 failed log
+ PATH=/data/user/0/ru.meefik.linuxdeploy/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ printf $'>>> deploy\n'
>>> deploy
+ /data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy -d -t deploy
+ config_which linux
+ local conf_file=linux
+ [ -n linux ]
+ [ -n linux ]
+ conf_file=/data/user/0/ru.meefik.linuxdeploy/env/config/linux.conf
+ echo /data/user/0/ru.meefik.linuxdeploy/env/config/linux.conf
@dlintw
dlintw / PKGBUILD
Created April 28, 2017 05:13
PKGBUILD for rstudio-desktop-git
# Maintainer: Artem Klevtsov <a.a.klevtso@gmail.com>
pkgname=rstudio-desktop-git
_gitname=rstudio
pkgver=1.1.214
_gwtver=2.7.0
_ginver=1.5
_clangver=3.8.0
pkgrel=1
pkgdesc="A powerful and productive integrated development environment (IDE) for R programming language"