Skip to content

Instantly share code, notes, and snippets.

View elongl's full-sized avatar
♠️
Ace Of Spades

Elon Gliksberg elongl

♠️
Ace Of Spades
View GitHub Profile
@elongl
elongl / dbt_project.yml
Created July 14, 2022 13:15
Elementary's schema in dbt_project.yml.
models:
## elementary models will be created in the schema '<your_schema>_elementary'
## when you add a profile for CLI alerts, make sure to configure this schema and db
## see docs: https://docs.elementary-data.com/
elementary:
+schema: 'elementary'
1.
// locales.json
{
"first-name": {
"en": "first name",
"he": "שם פרטי"
}
}
2.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00001e92d4173a5d in ?? ()
[Current thread is 1 (Thread 0x7f3b02609700 (LWP 187))]
ERROR: Could not find ELF base!
ERROR: Could not find ELF base!
LEGEND: STACK | HEAP | CODE | DATA | RWX | RODATA
───────────────────────────────────────────────────[ REGISTERS ]───────────────────────────────────────────────────
RAX 0xa
RBX 0xa
RCX 0x1
@elongl
elongl / gadgets
Last active April 10, 2020 21:48
Gadgets information
============================================================
0x080b6695 : aaa ; add byte ptr [eax], al ; jmp 0x80b66b9
0x080501b5 : aaa ; add byte ptr [eax], al ; mov esi, eax ; mov ecx, dword ptr [ebx] ; jmp 0x80500f1
0x0805cf0d : aaa ; add dword ptr [eax], eax ; add byte ptr [eax + 0x4e], al ; jmp 0x805cfac
0x080e83d7 : aaa ; add dword ptr [edx], ecx ; ret
0x080acef8 : aaa ; add esp, 4 ; pop ebx ; pop esi ; ret
0x080828d7 : aaa ; jmp 0x8082872
0x0809b295 : aaa ; jmp 0x809b293
0x080bd3de : aaa ; jmp 0x80bd4b9
080485b1 <main>:
80485b1: 55 push ebp
80485b2: 89 e5 mov ebp,esp
80485b4: 53 push ebx
80485b5: 83 ec 5c sub esp,0x5c
80485b8: c7 45 e4 4f 4b 5e 47 mov DWORD PTR [ebp-0x1c],0x475e4b4f
80485bf: c7 45 e8 53 59 42 45 mov DWORD PTR [ebp-0x18],0x45425953
80485c6: c7 45 ec 58 5e 59 00 mov DWORD PTR [ebp-0x14],0x595e58
80485cd: c7 45 f8 00 87 04 08 mov DWORD PTR [ebp-0x8],0x8048700
80485d4: c7 45 f4 18 87 04 08 mov DWORD PTR [ebp-0xc],0x8048718
import React, { Component } from 'react';
import backgroundTask from 'react-native-background-task';
backgroundTask.define(() => {
console.log('Background Task Activated!');
backgroundTask.finish();
});
export default class App extends Component {
componentDidMount() {
@elongl
elongl / AppRouter.tsx
Last active May 6, 2018 11:19
Calling setState after component was unmounted by appStart function.
async componentDidMount() {
await appStart();
this.setState({ loading: false });
}
export default function regusterGoogleStrategy() {
const googleConfig: IOAuth2StrategyOption = {
clientID: process.env.GOOGLE_CLIENT_ID || 'client id undefined',
clientSecret: process.env.GOOGLE_CLIENT_SECRET || 'client secret undefined',
callbackURL: process.env.GOOGLE_CALLBACK_URL || 'callback url undefined'
};
passport.use(
new googleAuth(
googleConfig,