Skip to content

Instantly share code, notes, and snippets.

View Eun's full-sized avatar
💭
I may be slow to respond.

Tobias Salzmann Eun

💭
I may be slow to respond.
View GitHub Profile
8/28/14 9:54:01.647 PM Console[360] Marker - Aug 28, 2014, 9:54:01 PM
8/28/14 9:54:08.857 PM WindowServer[127] MPServiceForDisplayDevice: Invalid device alias (0)
8/28/14 9:54:08.858 PM WindowServer[127] Display 0x3c0a5001: GL mask 0x2; bounds (0, 0)[1920 x 1080], 57 modes available
Main, Active, on-line, enabled, OpenGL-accel, Vendor 22f0, Model 2940, S/N 0, Unit 1, Rotation 0
UUID 0x6cf051d0a54ee27a54143ac538a46c30, ColorProfile { 2, "HP 2711"}
8/28/14 9:54:08.858 PM WindowServer[127] GLCompositor: GL renderer id 0x01022724, GL mask 0x0000001f, accelerator 0x000048f3, unit 0, caps QEX|MIPMAP, vram 2048 MB
texture max 16384, viewport max {16384, 16384}, extensions FPRG|NPOT|GLSL|FLOAT
8/28/14 9:54:08.858 PM WindowServer[127] Display 0x2b38430c: GL mask 0x1; bounds (1920, 0)[1680 x 1050], 78 modes available
Active, on-line, enabled, boot, OpenGL-accel, Vendor 10ac, Model e009, S/N 3255414c, Unit 0, Rotation 0
UUID 0x17ac33357e39d98787f29d643d009902, ColorProfile { 3, "DELL 2005FPW"}
@Eun
Eun / ks.sh
Created October 9, 2014 17:06
Kimsufi Avability Checker
#!/bin/bash
while true
do
wget -O kimsufi http://www.kimsufi.com/en/order/kimsufi.cgi?hard=142sk1
c=$(grep "Validate and go to the next step" kimsufi | wc -l)
if [ $c -ge 1 ]
then
echo "AVAIBLE"
afplay /System/Library/Sounds/Ping.aiff &
sleep 0.2
@Eun
Eun / Makefile
Last active May 16, 2016 10:41
Makefile
## MAKEFILE V 1.4 ##
BIN = a.out
CC = gcc
CPLUS = g++
LINK = g++
OBJC = $(shell find ./src -name "*.c" | sed 's/\.c/\.o/g' | sed 's/\.\/src\//\.\/obj\//g')
OBJCPP = $(shell find ./src -name "*.cpp" | sed 's/\.cpp/\.opp/g' | sed 's/\.\/src\//\.\/obj\//g')
OBJ = $(OBJC) $(OBJCPP)
@Eun
Eun / phantomjs.sublime-snippet
Created December 11, 2014 10:03
phantomjs.sublime-snippet
<snippet>
<content><![CDATA[
var page = require('webpage').create();
page.open('http://${1:url}',
function (status) {
if (status !== 'success') {
console.log('Failed');
} else {
console.log(page.evaluate(function(){return document.body.innerText;}));
}
@Eun
Eun / UTF8 Tables
Created January 14, 2015 08:11
UTF8 Tables
╭───────────┬───────────╮
│ Heading │ Heading2 │
├───────────┼───────────┤
│ Text │ Text │
╰───────────┴───────────╯
┌───────────┬───────────┐
│ Heading │ Heading2 │
├───────────┼───────────┤
│ Text │ Text │
@Eun
Eun / uncover-pass.js
Last active January 21, 2016 19:15
Uncover and view passwords in Firefox, Chrome, IE, Safari
// this gist demonstrates how easy an attacker can get all your saved passwords in almost any browser
// usage:
// 1. goto any website where your browser has stored a password for you
// 2. open the Developer Console (F12), may vary from browser to browser
// 3. paste following code & execute it
for (var els = document.querySelectorAll("input[type=password]"), i = els.length - 1; i >= 0; --i)
{
els[i].type = "text";
}
@Eun
Eun / displayinfo.c
Created May 19, 2015 12:39
DisplayInfo
#include <CoreFoundation/CoreFoundation.h>
#include <ApplicationServices/ApplicationServices.h>
int main (int argc, const char * argv[]) {
CGDisplayCount displayCount;
CGDirectDisplayID displays[4];
int i;
CGGetOnlineDisplayList(4, displays, &displayCount);
@Eun
Eun / ssm.py
Last active September 5, 2015 13:05
Simple service monitor
#!/usr/bin/env python
"""ssm.py: Simple service monitor."""
__author__ = "Eun"
__copyright__ = "Copyright 2015, Eun"
__license__ = "GPL"
__version__ = "1.0.0"
# Service Configuration
@Eun
Eun / open_command_window_for_files.reg
Created June 2, 2016 08:56
"Open command window here" for files
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\cmd]
@="@shell32.dll,-8506"
"Extended"=""
[HKEY_CLASSES_ROOT\*\shell\cmd\command]
@="cmd.exe /s /k \"pushd \"%%HOMEDRIVE%%\\%%HOMEPATH%%\" & echo >%%TEMP%%\\cmd.vbs set shell = CreateObject(\"WScript.Shell\"):shell.SendKeys \"%1\":CreateObject(\"Scripting.FileSystemObject\").DeleteFile(Wscript.ScriptFullName) & %%TEMP%%\\cmd.vbs\""
@Eun
Eun / status.sql
Last active June 16, 2022 04:36
Get Skype for Business Status via SQL
SELECT LOWER(UserAtHost) AS UserAtHost, Status=
CASE
WHEN Availability BETWEEN 0 AND 2999 THEN Availability
WHEN Availability BETWEEN 3000 AND 4499 THEN 'Available'
WHEN Availability BETWEEN 4500 and 5999 THEN 'Available - Idle'
WHEN Availability BETWEEN 6000 and 7499 THEN 'Busy'
WHEN Availability BETWEEN 7500 and 8999 THEN 'Busy - Idle'
WHEN Availability BETWEEN 9000 and 11999 THEN 'Do not Disturb'
WHEN Availability BETWEEN 12000 and 14999 THEN 'Be right back'
WHEN Availability BETWEEN 15000 and 17999 THEN 'Away'