Skip to content

Instantly share code, notes, and snippets.

View danechitoaie's full-sized avatar
🏠
Working from home

Daniel Anechitoaie danechitoaie

🏠
Working from home
View GitHub Profile

Compiling v8 and Hello, World Example on Mac OSX Mavericks (10.9.4)

by Keith Rosenberg (netpoetica)

Note: do this in some sort of project/ directory that makes sense. depot_tools are going to need to be in your path, so you may want to install them somewhere you are comfortable with.

1) Get the v8 source

git clone https://github.com/v8/v8.git

2) Install depot tools

@danechitoaie
danechitoaie / notify.py
Last active August 29, 2015 14:24 — forked from lukaszb/notify.py
#!/usr/bin/env python
from Foundation import NSUserNotification
from Foundation import NSUserNotificationCenter
from Foundation import NSUserNotificationDefaultSoundName
from optparse import OptionParser
def main():
parser = OptionParser(usage='%prog -t TITLE -m MESSAGE')
@danechitoaie
danechitoaie / xss-owasp-cheatsheet
Last active September 18, 2015 17:45 — forked from sseffa/xss-owasp-cheatsheet
xss-owasp-cheatsheet
#
# https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
# based on the RSnake original http://ha.ckers.org/xss.html
# Retrieved on 2013-11-20
# Much of this wildly obsolete
#
# XSS Locator 2
'';!--"<XSS>=&{()}
@danechitoaie
danechitoaie / gist:9efcecd126364f5138e6
Created October 4, 2015 09:44 — forked from robertknight/gist:3149811
Mac FSEvents wrapper
// MacFSEventsWatcher.h
#pragma once
#include "libMendeleyExport.h"
#include <QtCore/QObject>
#include <QtCore/QStringList>
typedef struct __FSEventStream* FSEventStreamRef;
@danechitoaie
danechitoaie / models.py
Created November 14, 2015 12:29 — forked from arecker/models.py
models
from uuid import uuid4
from django.db import models
from django.core.validators import MinValueValidator
class Rate(models.Model):
id = models.UUIDField(primary_key=True,
editable=False,
default=uuid4,
unique=True)
@danechitoaie
danechitoaie / app_virtualenv.service
Created November 16, 2015 23:00
Virtualenv Systemd Service
[Unit]
Description=Python Virtualenv service example
After=network.target
[Service]
User=my_user
Group=my_group
Environment=VIRTUAL_ENV=/home/my_user/.virtualenvs/my_venv
Environment=PATH=$VIRTUAL_ENV/bin:$PATH
ExecStart=$VIRTUAL_ENV/bin/my_entrypoint
@danechitoaie
danechitoaie / lol.js
Created February 17, 2016 22:39 — forked from wesbos/lol.js
// paste in your console
speechSynthesis.onvoiceschanged = function() {
var msg = new SpeechSynthesisUtterance();
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0];
msg.text = Object.keys(window).join(' ');
this.speak(msg);
};
#!/bin/bash
#
# When you are working on your macbook sitting in cafe and you have to go pee,
# you need some way to guard you machine.
#
# Start this script, remove any earphones, and go do the job.
# The assumption is the thief will close the lid of the laptop before taking it away.
# This script detects the closing of the lid and plays some loud audio that will
# likely distract the thief and/or grab attention of nearby people, making the
@danechitoaie
danechitoaie / IPB4_Centminmod.conf
Created April 2, 2016 18:11
Invision Power Board v4 Nginx configuration file for use with Centminmod.
# IPB4 Working NGINX site conf file
# Tested on IPB 4.1.8.1+ and Centminmod 123.09beta01
# This file is for a FORCED SSL site. Non-SSL requests will be directed to SSL.
# Replace 10.0.0.121 with your IP address or domain name.
# Information gathered from
# Centminmod.com / Information pulled from multiple guides. Thx eva2000!
# Makoto on IPB Forum via https://community.invisionpower.com/topic/384522-how-to-set-up-a-secure-ipboard-installation-with-nginx-and-php-fpm/ version 3.4.8 guide.
# Base building forum thread: https://community.centminmod.com/threads/ipb-v4-1-x-files.4922/
# Anyone else not mentioned who helped modify and create this file: Thanks!
<!-- main.js -->
import Vue from "vue";
import VueRouter from "vue-router";
import App from "./App";
Vue.use(VueRouter);
new Vue({
el : "#app",