This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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;})); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
╭───────────┬───────────╮ | |
│ Heading │ Heading2 │ | |
├───────────┼───────────┤ | |
│ Text │ Text │ | |
╰───────────┴───────────╯ | |
┌───────────┬───────────┐ | |
│ Heading │ Heading2 │ | |
├───────────┼───────────┤ | |
│ Text │ Text │ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""ssm.py: Simple service monitor.""" | |
__author__ = "Eun" | |
__copyright__ = "Copyright 2015, Eun" | |
__license__ = "GPL" | |
__version__ = "1.0.0" | |
# Service Configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
OlderNewer