Skip to content

Instantly share code, notes, and snippets.

View danvctr's full-sized avatar

Dan Victor danvctr

View GitHub Profile
@echo off
REM This is the "main loop", should be pretty obvious what it does
:pingloop
ping -n 1 google.com
if errorlevel 1 goto fix
if errorlevel 0 goto wait
REM Make sure you remove the "echo" or it won't do anything lol
:fix
[ 1248.069993] type=1400 audit(1410808163.247:17): apparmor="STATUS" operation="profile_replace" parent=5396 profile="unconfined" name="/usr/sbin/mysqld" pid=5400 comm="apparmor_parser"
[ 1248.085698] init: mysql pre-start process (5395) terminated with status 1
[ 1251.767276] type=1400 audit(1410808166.943:18): apparmor="STATUS" operation="profile_replace" parent=5478 profile="unconfined" name="/usr/sbin/mysqld" pid=5482 comm="apparmor_parser"
[ 1251.781248] init: mysql pre-start process (5477) terminated with status 1
[ 1295.268797] type=1400 audit(1410808210.447:19): apparmor="STATUS" operation="profile_replace" parent=6289 profile="unconfined" name="/usr/sbin/mysqld" pid=6293 comm="apparmor_parser"
[ 1295.281152] init: mysql pre-start process (6288) terminated with status 1
YTCSettings=>{"debugConsole":true,"gridCollectionPage":true,"logoLink":"/","hideRecommendedChannels":false,"repeatShowText":true,"enableYouTubeShortcuts":true,"disableFeedItemActionMenu":false,"disableGuideCount":false,"YouTubeExperiments":[],"headlineTitleExpanded":false,"videoThumbnailQualitySeparated":true,"embedWriteEmbedMethodReloadDelay":1000,"embedWriteEmbedMethod":"test5","fixHTML5Annotations":false,"saveErrorStatusTimeout":5000,"saveStatusTimeout":2000,"flexWidthOnChannelPage":true,"playerDarkSideBGRetro":false,"playerDarkSideBGColor":"#1b1b1b","playerDarkSideBG":false,"useSecureProtocol":true,"videoThumbnailRatingsBarHeight":2,"sparkbarHeight":2,"sparkbarLikesColor":"#590","sparkbarDislikesColor":"#ccc","commentsPlusLinkRedirectConfirm":true,"commentsPlusScrollToCommentAtCollapse":true,"commentsPlusRemoveLinks":false,"commentsPlusBlacklist":[{"type":"equals","length":1},{"type":"repeat","amount":9},{"type":"profilelinks","regex":"${username}","attr":"textContent"},{"type":"hashlinks","regex":"fixyou
@danvctr
danvctr / gist:452d25770c4c8817a256
Created August 10, 2014 15:50
DanVctr OneName Verification
Verifying myself: My Bitcoin username is +danvctr. https://onename.io/danvctr
def collatz(n, seq):
seq.append(n)
if n == 1:
return n
else:
if n % 2 == 0:
return collatz(int(n/2), seq)
else:
return collatz(((3*n)+1), seq)

Keybase proof

I hereby claim:

  • I am DanVctr on github.
  • I am danvctr (https://keybase.io/danvctr) on keybase.
  • I have a public key whose fingerprint is 305B 8F39 EA47 8DCA 4A28 C783 4B80 49C8 A413 041F

To claim this, I am signing this object:

@danvctr
danvctr / recover_blockchain.info_wallet.py
Last active August 29, 2015 13:56 — forked from fcicq/mywallet.py
A Python script for manually decrypting a Blockchain.info wallet.json file.
#!/usr/bin/env python
import base64, hashlib, hmac, json, sys, getpass
from Crypto.Cipher import AES
from Crypto.Hash import RIPEMD, SHA256
base58_chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
def prompt(p):
return getpass.getpass(p + ": ")