This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| # ---------------------------------------------------------------------- | |
| # Processor module template script | |
| # (c) Hex-Rays | |
| import sys | |
| import ida_ida | |
| from ida_bytes import * | |
| from ida_ua import * | |
| from ida_idp import * | |
| from ida_auto import * |
This file contains hidden or 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
| # the key you get from http://www.hitbox.tv/settings/youruser/livestreams | |
| HITBOX_KEY="youruser?key=xxxxx" | |
| # top-left corner of capture window | |
| CAPTURE_POS="250,200" | |
| # width/height of capture window | |
| CAPTURE_SIZE="1050x600" | |
| # Audio bitrate | |
| BITRATE="128k" | |
| # Ensure pulseaudio has the loopback module enabled |
This file contains hidden or 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
| cd /path/to/your/repo | |
| curl https://gist.githubusercontent.com/johnhamelink/577b8613ae82d2b3037b/raw/ad71fb72a1b86ee9a90ac62eccc4a55367578625/pre-push.sh > .git/hooks/pre-push | |
| chmod u+x .git/hooks/pre-push |
This file contains hidden or 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
| No route matches {:controller=>"users/cms", :action=>"neighbourhood_attractions_destroy"} | |
| - <td><%= link_to 'Destroy', cms_neighbourhood_attractions_delete_path(:id => attraction.id), method: :delete, data: { confirm: 'Are you sure?' } %></td> | |
| ------------------------------- | |
| routes.rb: | |
| delete "admin/neighbourhood_attractions/delete/:id" => "users/cms#neighbourhood_attractions_destroy", :as => :cms_neighbourhood_attractions_delete | |
| ---------------------------------- |
This file contains hidden or 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
| var fs = require('fs'), | |
| m = require('mongoose'); | |
| fs.readdirSync(__dirname).forEach(function(filename) { | |
| var schemaName = filename.replace(/\.js$/, ''), | |
| Schema = require('./' + schemaName); | |
| m.model(schemaName, Schema); | |
| }); |