Skip to content

Instantly share code, notes, and snippets.

View SourceCode's full-sized avatar
👽
Byte Inspector

Ryan R SourceCode

👽
Byte Inspector
  • Weyland-Yutani Corporation
  • USA
View GitHub Profile
@SourceCode
SourceCode / secuscanprio.io.scan.response.json
Last active September 27, 2017 04:24
secuscanpro.io - example scan response
{
"response_code": 1,
"verbose_msg": "Scan finished, scan information embedded in this object",
"resource": "99017f6eebbac24f351415dd410d522d",
"scan_id": "52d3df0ed60c46f336c131bf2ca454f73bafdc4b04dfa2aea80746f5ba9e6d1c-1273894724",
"md5": "99017f6eebbac24f351415dd410d522d",
"sha1": "4d1740485713a2ab3a4f5822a01f645fe8387f92",
"sha256": "52d3df0ed60c46f336c131bf2ca454f73bafdc4b04dfa2aea80746f5ba9e6d1c",
"scan_date": "2010-05-15 03:38:44",
"permalink": "secuscanpro.io/tsapi/v1/analysis/52d3df0ed60c46f336c131bf2ca454f73bafdc4b04dfa2aea80746f5ba9e6d1c/1273894724/",
@SourceCode
SourceCode / OddOccurrencesInArray.cs
Created September 26, 2017 07:32
Odd Occurrences in Array - Codibility - C#
using System;
using System.Collections.Generic;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int[] example = { 0, 0, 1, 2, 2, 3, 3, 0, 0, 2, 2, 2, 3, 3, 1, 8 };
@SourceCode
SourceCode / BinaryGap.cs
Last active June 20, 2023 23:22
Binary Gap - Codibility - C#
using System;
namespace ObjectApp1
{
class Program
{
static void Main(string[] args)
{
var S = new Solution();
Console.WriteLine(S.solution(0));
@SourceCode
SourceCode / xy.js
Last active August 20, 2017 00:35
Move and sort x, y coordinates in a grid of objects
//This sorts a list of x,y cords for moving points
const cords = [
{ id: 1, x: 1, y: 1 },
{ id: 2, x: 1, y: 2 },
{ id: 3, x: 1, y: 3 },
{ id: 4, x: 1, y: 4 },
{ id: 5, x: 2, y: 1 },
{ id: 6, x: 2, y: 2 },
@SourceCode
SourceCode / exe.vmptions
Created July 21, 2017 02:25
Settings for jetbrains screen for opengl
-Dawt.useSystemAAFontSettings=lcd
-Dawt.java2d.opengl=true
echo $(hostname -I | cut -d\ -f1) $(hostname) | sudo tee -a /etc/hosts
@SourceCode
SourceCode / grunt-multi-task.js
Created September 24, 2016 07:02
Grunt Multi Task Example
grunt.initConfig({
concat: {
foo: {
// concat task "foo" target options and files go here.
},
bar: {
// concat task "bar" target options and files go here.
},
},
uglify: {
@SourceCode
SourceCode / Deployment Bootstrap Script
Created September 4, 2016 20:38
Basic Bootstrap Shell Script to Start a Deployment
cd ~
wget http://mydomain/deployment/deployment.script
awk '{ sub("\r$", ""); print }' deployment.script > deploy.sh
chmod +x deploy.sh
./deploy.sh
echo 'Deployment Complete'
@SourceCode
SourceCode / phpstorm xdebug php.ini
Last active September 4, 2016 00:50
phpstorm xdebug config - update the <path>, <tmp dir> and your xdebug dll
; XDEBUG Extension
[xdebug]
zend_extension ="<path>/php_xdebug-*.dll"
xdebug.remote_enable = 1
xdebug.remote_port=9000
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="<tmp dir>"
xdebug.show_local_vars=1
@SourceCode
SourceCode / git-since-date
Created August 3, 2016 00:33
git command to get commits since date
git log --after=2016-06-31 --pretty=format:"Committed %h on %cd %s"