Skip to content

Instantly share code, notes, and snippets.

View jangeador's full-sized avatar
🐵

Delio Castillo jangeador

🐵
View GitHub Profile
@jangeador
jangeador / cod_black_ops_3.c
Last active July 21, 2022 23:51
Black Ops 3 GPC Script
/*
GPC Online Library
COD Black Ops 3(BO3) Script
=============================================================================
Device: Titan One
Author: Terry (aka UK_Wildcats_Fans)
Game: Call of Duty Black Ops 3 (BO3)
System: PlayStation 4 (PS4)
Controller: DualShock 4 (DS4)
@jangeador
jangeador / remove_dangling_images.sh
Last active October 7, 2016 17:14
Docker Commands
# Use if the aufs/diff directory gets too big:
docker rmi $(docker images -aq --filter dangling=true)
@jangeador
jangeador / sync_sublime.sh
Created May 10, 2016 03:03
Sync Sublime with Dropbox
# First Machine
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
mkdir ~/Dropbox/Sublime
mv User ~/Dropbox/Sublime/
ln -s ~/Dropbox/Sublime/User
# Other Machines
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
rm -r User
ln -s ~/Dropbox/Sublime/User
@jangeador
jangeador / README.md
Last active May 14, 2016 01:02 — forked from denji/README.md
Remove WebStorm; PhpStorm; PyCharm; RubyMine; AppCode; CLion, IntelliJ; 0xDBE10 settings and CLI-Links from Mac OSX

Quick uninstall JetBrains settings:

curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
@jangeador
jangeador / kodi.sh
Created June 7, 2016 02:05
Kodi remote commands update library and export library
#!/usr/bin/env bash
# Update library
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://localhost:8080/jsonrpc
# Clean library
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Clean", "id": "mybash"}' -H 'content-type: application/json;' http://localhost:8080/jsonrpc
# Export library to separate files:
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Export", "params": { "options": { "overwrite": false, "actorthumbs": false, "images": true } }, "id": 1 }' -H 'content-type: application/json;' http://localhost:8080/jsonrpc
@jangeador
jangeador / docker-compose-sentry.yml
Last active June 16, 2016 18:02 — forked from ebuildy/docker-compose-sentry.yml
A simple docker-compose YML to run Sentry.
version: '2'
volumes:
sentry_data: {}
services:
sentry_redis:
image: redis:latest
sentry_postgres:
SENTRY_SECRET_KEY=longsecrethere
DOCKERPREFIX=eric
cat <<-EOF > requirements.txt
sentry-slack==0.5.0
EOF
cat <<-EOF > Dockerfile
FROM sentry:8.5-onbuild
EOF
@jangeador
jangeador / enable-allow-ping.ps1
Last active September 28, 2016 16:09
Windows Firewall Commands
# Create and Enable Allow Ping Rule
# Windows server 2012
New-NetFirewallRule –DisplayName “Allow Ping” –Direction Inbound –Action Allow –Protocol icmpv4 –Enabled True
@jangeador
jangeador / find_next_prime.py
Created October 5, 2016 12:02
rmotr.com assignment 1
def find_next_prime(n):
'''
>>> find_next_prime(6)
7
>>> find_next_prime(10)
11
>>> find_next_prime(11)
13
'''
def is_prime(p):
@jangeador
jangeador / prod_of_big_numbers.py
Created October 5, 2016 12:28
rmotr assignment 2
import unittest
NUMB = """
73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
12540698747158523863050715693290963295227443043557
66896648950445244523161731856403098711121722383113
62229893423380308135336276614282806444486645238749
30358907296290491560440772390713810515859307960866