curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
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
/* | |
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) |
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
# Use if the aufs/diff directory gets too big: | |
docker rmi $(docker images -aq --filter dangling=true) |
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
# 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 |
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
#!/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 |
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
version: '2' | |
volumes: | |
sentry_data: {} | |
services: | |
sentry_redis: | |
image: redis:latest | |
sentry_postgres: |
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
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 |
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
# Create and Enable Allow Ping Rule | |
# Windows server 2012 | |
New-NetFirewallRule –DisplayName “Allow Ping” –Direction Inbound –Action Allow –Protocol icmpv4 –Enabled True |
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
def find_next_prime(n): | |
''' | |
>>> find_next_prime(6) | |
7 | |
>>> find_next_prime(10) | |
11 | |
>>> find_next_prime(11) | |
13 | |
''' | |
def is_prime(p): |
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
import unittest | |
NUMB = """ | |
73167176531330624919225119674426574742355349194934 | |
96983520312774506326239578318016984801869478851843 | |
85861560789112949495459501737958331952853208805511 | |
12540698747158523863050715693290963295227443043557 | |
66896648950445244523161731856403098711121722383113 | |
62229893423380308135336276614282806444486645238749 | |
30358907296290491560440772390713810515859307960866 |