Skip to content

Instantly share code, notes, and snippets.

<?php
/*
* Clone de la fonction MessageBox de Win32.
* https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx
*
* NB : limitations
* -> doit être appellé uniquement APRES le le head, et depuis le PHP (forcément)
*/
@Arc0re
Arc0re / keen.tmTheme
Created October 22, 2016 19:34
Keen theme from Dayle Rees
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
======================================================================
Keen
======================================================================
A Sublime Text 2 / Textmate theme.
Copyright (c) 2014 Dayle Rees.
Released under the MIT License <http://opensource.org/licenses/MIT>
======================================================================
@Arc0re
Arc0re / OpenWithSublimeText3.bat
Created September 29, 2016 18:27 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@Arc0re
Arc0re / custom_user_bindings.sublime-keymap
Created September 23, 2016 20:35 — forked from tommymarshall/custom_user_bindings.sublime-keymap
Custom User Bindings for using AlignTab with ='s, =>'s, and :'s in Sublime Text
[
{
"keys": ["control+alt+;"], "command": "align_tab",
"args" : {
"user_input" : ":/f"
}
},
{
"keys": ["control+alt+="], "command": "align_tab",
"args" : {
@Arc0re
Arc0re / DisplayLineCount.py
Created August 20, 2016 13:45
Sublime Text 3 plugin to display total line count of a file.
import sublime, sublime_plugin, time
last_change = time.time()
update_interval = 1.5 # s
class DisplayLineCount(sublime_plugin.EventListener):
def update_line_count(self, view):
line_count = view.rowcol(view.size())[0] + 1
view.set_status("line_count", "{0} lines".format(line_count))
@Arc0re
Arc0re / dl.py
Created June 18, 2016 00:02
Jpg apache dir downloader
import BeautifulSoup
import sys
import requests
def bin_image(url, filename):
f = open(filename, "wb")
f.write(requests.get(url).content)
f.close()
def get_jpgs(url):
@Arc0re
Arc0re / sv_richard_obfuscated_c.c
Created May 21, 2016 22:15
Good shit "Trying to find a hidden message in the code? Dream on assholes"
#include <stdio.h>
#include <stdlib.h>
typedef unsigned long u64;
/* Start here */
typedef void enc_cfg_t;
typedef int enc_cfg2_t;
typedef __int128_t dcf_t;
behave mswin
" Indentation style
"set tabstop=4 " columns per tab
"set softtabstop=4 " force tab use
"set shiftwidth=4 " columns per indentation
"set noexpandtab " prevent tab from inserting spaces
"set colorcolumn=81 " highlight 81st column
" Nethack C style indentation
gcc -I/Library/Frameworks/SDL2.framework/Headers -F/Library/Frameworks -framework SDL2
@Arc0re
Arc0re / windows.emacs
Last active March 24, 2016 23:45
.emacs for windows using my elisp folder (github)
; Loading plugins and shit
(add-to-list 'load-path "~/elisp")
(add-to-list 'custom-theme-load-path "~/elisp/themes/")
(require 'php-mode)
(require 'nyan-mode)
; MELPA repo
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize)