Skip to content

Instantly share code, notes, and snippets.

@yak1ex
yak1ex / a.clang.s
Created April 22, 2017 21:12
x86_64 clang suspection
.text
.def __cxx_global_var_init;
.scl 3;
.type 32;
.endef
.p2align 4, 0x90
__cxx_global_var_init: # @__cxx_global_var_init
.Ltmp0:
.seh_proc __cxx_global_var_init
# BB#0:
===> lib/clang/libllvmminimal (obj,all,install)
/usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmminimal created for /usr/src/lib/clang/libllvmminimal
/usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmminimal/Support created for /usr/src/lib/clang/libllvmminimal
/usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmminimal/TableGen created for /usr/src/lib/clang/libllvmminimal
clang++ -O2 -pipe -I/usr/src/lib/clang/include -I/usr/src/contrib/llvm/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-freebsd11.0\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -ffunction-sections -fdata-sections -MD -MF.depend.Support_APInt.o -MTSupport/APInt.o -Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions -c /usr/src/contrib/llvm/lib/Support/APInt.cpp -o Support/APInt.o
In file included from /usr/src/contrib/llvm/lib/Supp
@yak1ex
yak1ex / .gitignore
Last active June 7, 2017 07:02
node-bootstrap
*.BAK
@yak1ex
yak1ex / chocolatey.md
Last active June 28, 2017 03:56
chocolatey memo

profile

Before install, \Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 should have more than 4 bytes

feature

install location settings

@yak1ex
yak1ex / YakSetup.psm1
Last active August 3, 2017 11:33
Bootstrap environment
# YakSetup.psm1
function Get-ArchivePath {
<#
.Synopsis
Get archive paths from URL content by using regexp.
.Description
Get archive paths from URL content by using regexp.
This function accepts multiple regexs and assumes each $matches[1] has archive path.
@yak1ex
yak1ex / badges.md
Last active June 28, 2017 06:12
badges

textutils Build Status JavaScript Style Guide Coverage Status

Test-Kealitee-Extra CPAN version CPAN license

@yak1ex
yak1ex / README.md
Created August 7, 2017 06:23
nwjs on Win32

nw

/**
 * Patch to circumvent win32 fs locking behavior
 */
if(require('os').platform() === 'win32')
{
  const realFs = require('fs')
 const gracefulFs = require('graceful-fs')
@yak1ex
yak1ex / AboutDlg.cpp
Last active August 20, 2018 15:24
MX FLOW
#include <windows.h>
#include <Strsafe.h>
#include <vector>
#include <boost/align/aligned_allocator.hpp>
typedef boost::alignment::aligned_allocator<void, 4> aligned_allocator;
class buffer
{
public:
@yak1ex
yak1ex / editor.c
Last active December 26, 2017 09:19
Editor redirector
#include <windows.h>
#define NUM_APP 2
LPWSTR lpszKey[NUM_APP][2] = {
{ L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Hidemaru", L"DisplayIcon" },
{ L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Notepad++", L"DisplayIcon" }
};
LPWSTR lpszAppSpec[][NUM_APP] = {
@yak1ex
yak1ex / Makefile
Last active January 16, 2018 11:19
About dialog from version resource
dlg.exe: dlg.obj dlg.res
cl /EHsc /I c:\usr\local\boost dlg.obj dlg.res user32.lib version.lib
dlg.obj: dlg.cpp
cl /EHsc /c /I c:\usr\local\boost dlg.cpp
dlg.res: dlg.rc
rc dlg.rc