Skip to content

Instantly share code, notes, and snippets.


Antonios Hadjigeorgalis AntoniosHadji

View GitHub Profile
AntoniosHadji / TTUSAPI1.cs
Created Feb 24, 2014
TTUSAPI Gateway Available and AutoLogin setings
View TTUSAPI1.cs
if (ASG.TTUS.m_Users.ContainsKey(dr[0].ToString()))
TTUSAPI.DataObjects.User u = ASG.TTUS.m_Users[dr[0].ToString()];
TTUSAPI.DataObjects.UserProfile up = new TTUSAPI.DataObjects.UserProfile(u);
foreach (string key in up.UserGatewayLogins.Keys)
TTUSAPI.DataObjects.UserGatewayLoginProfile UserGWP = new TTUSAPI.DataObjects.UserGatewayLoginProfile(up.UserGatewayLogins[key]);
AntoniosHadji /
Created Dec 3, 2014
This shell script will toggle the screen lock setting in Ubuntu. System Settings > Brightness & Lock > Turn screen off when inactive for:
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
Z=$(gsettings get org.gnome.desktop.session idle-delay)
echo $Z
# 600 for 10 minutes, change to suit your needs
if [ "$Z" = "uint32 600" ]; then
gsettings set org.gnome.desktop.session idle-delay 0
echo set zero
AntoniosHadji / style.css
Created Aug 21, 2012
Genesis Sample Child theme - responsive header image and header area
View style.css
/*in this section of code */
@media only screen and (max-width: 600px) {
/* I added this code block */
#header {
background-size: contain !important;
min-height: 100%;
AntoniosHadji / index.html
Created Feb 24, 2013
i found this on codepen. Cool Css loading animation - one element css animation using box shadows the animation with the filling up circle uses 2 elements
View index.html
<div class="loader"></div>
<div class="loader fill">
<div class="filler"></div>
View Excel-SetRTDUpdaterate
Public Function SetRTDUpdateRate(mSeconds As Long) As String
'Set RTDUpdate Rate registry value
Application.RTD.ThrottleInterval = mSeconds
SetRTDUpdateRate = mSeconds & " mS"
End Function
AntoniosHadji / gist:f116abb1cfd65b30b9fb
Created Nov 22, 2013
These are two commands that can be run on windows to automatically uninstall all X_TRADER components or all TT software.
View gist:f116abb1cfd65b30b9fb
# Uninstall all software from Trading Technologies
wmic product where "Vendor like 'Trading Tech%%'" call uninstall /nointeractive
# Uninstall all X_TRADER components
wmic product where "name like 'TT%%'" call uninstall /nointeractive
AntoniosHadji /
Created Sep 10, 2016 — forked from olasitarska/
Builds epub book out of Paul Graham's essays.
# -*- coding: utf-8 -*-
Builds epub book out of Paul Graham's essays:
Author: Ola Sitarska <>
Copyright: Licensed under the GPL-3 (
This script requires python-epub-library:
View clinfo.txt
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.0 AMD-APP (2442.7)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Name: AMD Accelerated Parallel Processing
View ethminer.txt
ethminer -G -M -v 9
ℹ 19:46:47|ethminer Found suitable OpenCL device [ Ellesmere ] with 6200512512 bytes of GPU memory
Benchmarking on platform: CL
Preparing DAG for block #0
cl 19:46:47|cl-0 No work. Pause for 3 s.
Warming up...
cl 19:46:50|cl-0 New work: header #50c856ae… target 0000000000000002000000000000000000000000000000000000000000000000
cl 19:46:50|cl-0 New seed #00000000…
cl 19:46:51|cl-0 Platform: AMD Accelerated Parallel Processing
cl 19:46:51|cl-0 Device: Ellesmere / OpenCL 1.2 AMD-APP (2442.7)
View gist:a87bab0026cd85c101a44185b7f3d3bb
Verifying my Blockstack ID is secured with the address 1CAQpfwPf5wtQ514LN4NsgvH1TXsd1gZkb