Skip to content

Instantly share code, notes, and snippets.

View santagada's full-sized avatar

Leonardo Santagada santagada

  • Guerrilla Games
  • Amsterdam
View GitHub Profile
diff --git a/llvm/tools/llvm-objcopy/CMakeLists.txt b/llvm/tools/llvm-objcopy/CMakeLists.txt
index 8406786e9e4..0a9e33e568a 100644
--- a/llvm/tools/llvm-objcopy/CMakeLists.txt
+++ b/llvm/tools/llvm-objcopy/CMakeLists.txt
@@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
+ DebugInfoCodeView
Object
Option
Support
@santagada
santagada / CMakeLists.txt
Created January 26, 2018 15:26
llvm-objcopy
set(LLVM_LINK_COMPONENTS
DebugInfoCodeView
Object
ObjectYAML
Support
MC
)
add_llvm_tool(llvm-objcopy
llvm-objcopy.cpp
Object.cpp
@santagada
santagada / console output
Created January 22, 2018 13:34
clang vs cl double definition
clang-cl main.cpp -c -o main.o
In file included from main.cpp:3:
./win32.h(29,21): error: conflicting types for 'GetCursorPos'
WIN32_IMPORT(BOOL) GetCursorPos(LPPOINT lpPoint);
^
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winuser.h(9110,1): note: previous declaration is here
GetCursorPos(
^
1 error generated.
/* ardp schema data */
CREATE SCHEMA ardp
AUTHORIZATION automated;
ALTER USER looker SET search_path TO '$user', looker_scratch, facts, legacy, hub, metadata, accounts, vs, ardp, public;
CREATE TABLE ardp.events
(
event_id INTEGER NOT NULL,
from collections import defaultdict
import nsq
import msgpack
from time import strftime
from colorama import init, Fore, Style
init()
def wraphand(topic):
def handler(message):
def dec(key):
@santagada
santagada / prompt.xsh
Last active October 31, 2016 09:59
simple powerline for xonsh
import os
from collections import namedtuple
Section = namedtuple('Section', ['line', 'fg', 'bg'])
PARTS = 3
def cwd_sec():
cwd = $PWD
if cwd.startswith($HOME):
import threading
import time
import sys
import os
TIMEOUT = 1.0
def GetPhoto():
time.sleep(5)
py-setproctitle master $ python setup.py develop
running develop
running egg_info
writing top-level names to setproctitle.egg-info/top_level.txt
writing dependency_links to setproctitle.egg-info/dependency_links.txt
writing setproctitle.egg-info/PKG-INFO
Traceback (most recent call last):
File "setup.py", line 105, in <module>
**kwargs)
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 148, in setup
<?php
class FakePost {
public function __construct($ID, $post_parent) {
$this->ID = $ID;
$this->post_parent = $post_parent;
}
}
@santagada
santagada / gist:b08c950b121c9f0409f8
Last active August 29, 2015 14:13
where are my tmp_disk_tables
mysql> show global status like '%tmp%';
+-------------------------+-----------+
| Variable_name | Value |
+-------------------------+-----------+
| Created_tmp_disk_tables | 146954844 |
| Created_tmp_files | 812363 |
| Created_tmp_tables | 220784074 |
+-------------------------+-----------+
mysql> show variables like '%tmp%';