Skip to content

Instantly share code, notes, and snippets.

View tvorogme's full-sized avatar

Andrey Tvorozhkov tvorogme

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tvorogme on github.
  • I am xenx (https://keybase.io/xenx) on keybase.
  • I have a public key ASAc35QmqTKos_eIMECsi3BhWX7Ow-sQhR2yWZzo9EMqewo

To claim this, I am signing this object:

LLVM

Low Level Virtual Machine

^ но виртуалки там нет

Язык LLVM IR

LLVM - фреймворк для создания компилятора.

Keybase proof

I hereby claim:

  • I am tvorogme on github.
  • I am tvorogme (https://keybase.io/tvorogme) on keybase.
  • I have a public key ASBkOqZ5ohB8aGtHATIfJUEpxo9pA4nXQlEmZfh5i6Dg3go

To claim this, I am signing this object:

#! /bin/bash
SLEEP_TIME=5 # Default time between checks.
SAFE_PERCENT=30 # Still safe at this level.
DANGER_PERCENT=20 # Warn when battery at this level.
CRITICAL_PERCENT=5 # Hibernate when battery at this level.
NAGBAR_PID=0
export DISPLAY=:0.0
#!/bin/bash
if screen -ls | grep vkusvill_$BRANCH
then
screen -X -S vkusvill_$BRANCH quit
else
echo "Session doesn't exist, going on..."
fi
screen -dmS vkusvill_$BRANCH
# LS_COLORS
# Maintainers: Magnus Woldrich <[email protected]>,
# Ryan Delaney <[email protected]> OpenGPG: 0D98863B4E1D07B6
# URL: https://github.com/trapd00r/LS_COLORS
# Version: 0.254
# Updated: Tue Mar 29 21:25:30 AEST 2016
#
# This is a collection of extension:color mappings, suitable to use as your
# LS_COLORS environment variable. Most of them use the extended color map,
# described in the ECMA-48 document; in other words, you'll need a terminal
import React, {Component} from 'react'
import {connect} from 'react-redux'
import {updateLol} from './Redux'
class App extends Component {
constructor(props) {
super(props);
const a = updateLol("lolkekcheburek");
console.log(a);
{
"presets": ["env", "react"]
}
#!/bin/bash
if screen -ls | grep $SCREEN_NAME
then
screen -X -S $SCREEN_NAME quit
else
echo "Session doesn't exist, going on..."
fi
screen -dmS $SCREEN_NAME
@tvorogme
tvorogme / exception.py
Created August 31, 2018 11:26
Python exception into string
try:
from lol import f
f()
except:
exc_type, exc_value, exc_traceback = sys.exc_info()
with io.StringIO() as buf:
traceback.print_exception(exc_type, exc_value, exc_traceback, file=buf)
print(buf.getvalue())