Skip to content

Instantly share code, notes, and snippets.

View osteotek's full-sized avatar
👻

Arthur Tazhitdinov osteotek

👻
View GitHub Profile
@osteotek
osteotek / dmesg
Created February 29, 2020 18:10
dmesg and lsusb from my Thinkpad T470 running latest brunch with octopus image
[ 0.000000] Linux version 4.14.149-brunch-sebanc (sebanc@tablet) (gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1)) #1 SMP PREEMPT Fri Feb 28 18:32:48 CET 2020
[ 0.000000] Command line: BOOT_IMAGE=(hd0,7)/kernel boot=local noresume noswap loglevel=7 disablevmx=off cros_secure cros_debug options=broadcom_sta
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
@osteotek
osteotek / privatechain.sol
Created June 1, 2018 12:06
ethereum private chain anchoring
pragma solidity ^0.4.18;
contract PrivateChain {
struct BLOCK {
address miner;
address validator;
uint time;
uint txListHash;
}
pragma solidity ^0.4.0;
contract UfaPollingCenter {
address public owner;
mapping (string=>Poll) polls;
event PollCreated(string, Poll);
0x00258584ffc280EE6194d92D635D8015679b58e7

Keybase proof

I hereby claim:

  • I am osteotek on github.
  • I am osteotek (https://keybase.io/osteotek) on keybase.
  • I have a public key whose fingerprint is DACF AA8A 40F2 05E2 F674 B199 2AE3 F354 AFB5 EEFF

To claim this, I am signing this object:

@osteotek
osteotek / mongo-dump-csv.sh
Created July 14, 2016 11:45 — forked from mderazon/mongo-dump-csv.sh
Export all of Mongodb collections as csv without the need to specify fields
OIFS=$IFS;
IFS=",";
# fill in your details here
dbname=DBNAME
user=USERNAME
pass=PASSWORD
host=HOSTNAME:PORT
# first get all collections in the database
@osteotek
osteotek / itunes.sh
Created July 13, 2016 20:25 — forked from palladius/itunes.sh
control iTunes from command line (fichissimo!)
#!/bin/bash
#
####################################
# iTunes Command Line Control v1.0
# originally written by David Schlosnagle
# created 2001.11.08
# edit 2010.06.01 rahul kumar
# edit 2011.12.11 Riccardo Carlesso
####################################
cls
@echo off
title Postgres2Mysql Check Activitiy
echo Find process
echo.
tasklist | find "Postgres2Mysql.exe"
if errorlevel 1 goto NotRun
echo.
echo Datasnap Server is restarting
@osteotek
osteotek / README.md
Created August 24, 2012 20:16 — forked from Tarrasch/README.md
Unity plus xmonad configuration (Ubuntu 12.04)

What

This is my xmonad+unity panel config. With this config, you'll have a well integrated panel from unity but still have xmonad as your window manager with your gnome apps, including the pretty gnome-terminal (for those too lazy to learn xmoobar).

This config doesn't have the unity launcher, mainly becuse it causes windows to be unfloatable, besides I'm not fond of it anymore.

How

Copy and paste these lines (or understand what it does and do it manually).

#include "config.h"
typedef FARPROC (__stdcall* GPA)( HMODULE , LPCSTR );
GPA rGetProcAddress;
typedef HMODULE (__stdcall* LLA)(LPCSTR);
LLA rLoadLibraryA;
typedef HANDLE (__stdcall* CRT)(LPSECURITY_ATTRIBUTES,SIZE_T ,LPTHREAD_START_ROUTINE ,LPVOID ,DWORD , LPDWORD );