This file contains 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 React, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
class Listing extends Component { | |
constructor(params){ | |
super(params); | |
this.title = params.title; | |
this.ups = params.ups; | |
} |
This file contains 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 requests | |
from collections import defaultdict | |
csv_prefix = "https://research.google.com/youtube8m/csv" | |
r = requests.get("{0}/verticals.json".format(csv_prefix)) | |
verticals = r.json() | |
block_urls = defaultdict(list) | |
count = 0 |
This file contains 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
#!/bin/bash | |
while read line; | |
do | |
if [[ "$line" == *"CLOSE" ]] | |
then | |
echo "CLOSE" | |
gnome-screensaver-command -l | |
elif [[ "$line" == *"OPEN" ]] | |
then |
This file contains 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
➜ gr-iridium git:(master) ✗ iridium-extractor -D 4 examples/hackrf.conf | |
Mac OS; Clang version 7.0.0 (clang-700.0.72); Boost_105800; UHD_003.009.001-0-unknown | |
gr-osmosdr v0.1.4-48-g86ad5842 (0.1.5git) gnuradio 3.7.8 | |
built-in source types: file fcd rtl rtl_tcp uhd hackrf rfspace | |
Using HackRF One with firmware 2014.08.1 | |
(RF) Gain: 14.0 (Requested 10) | |
BB Gain: 20.0 (Requested 20) | |
IF Gain: 40.0 (Requested 40) |
This file contains 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
Process: Python [45070] | |
Path: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python | |
Identifier: Python | |
Version: 2.7.11 (2.7.11) | |
Code Type: X86-64 (Native) | |
Parent Process: zsh [42784] | |
Responsible: iTerm2 [289] | |
User ID: 501 | |
Date/Time: 2016-09-02 01:15:24.644 +0100 |
This file contains 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 requests | |
GIPHY_API_KEY = "dc6zaTOxFJmzC" # Giphy public beta API key | |
def decode(s): | |
""" | |
Convert base62 (i.e. a-z,A-Z,0-9) to base 10 | |
PILLAGED FROM https://gist.github.com/adyliu/4494223 | |
""" | |
This file contains 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 java.util.Scanner; | |
public class DecompilationTest{ | |
public int SomeField = 123; | |
public static void main(String args[]){ | |
DecompilationTest dt = new DecompilationTest(); | |
dt.SomeMethod(); | |
} |
This file contains 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
root@beryllium:~# wget http://cachefly.cachefly.net/100mb.test | |
converted 'http://cachefly.cachefly.net/100mb.test' (ANSI_X3.4-1968) -> 'http://cachefly.cachefly.net/100mb.test' (UTF-8) | |
--2015-09-03 11:28:49-- http://cachefly.cachefly.net/100mb.test | |
Resolving cachefly.cachefly.net (cachefly.cachefly.net)... 62.210.187.96 | |
Connecting to cachefly.cachefly.net (cachefly.cachefly.net)|62.210.187.96|:80... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 104857600 (100M) [application/octet-stream] | |
Saving to: '100mb.test' | |
100mb.test 100%[==========================================================================================================================================>] 100.00M 50.1MB/s in 2.0s |
This file contains 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
"Enable Vundle | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
"Vundles! Wo0oho0o! | |
Bundle 'gmarik/vundle' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'altercation/vim-colors-solarized' | |
Bundle 'vim-scripts/JavaScript-Indent' | |
Bundle 'jcf/vim-latex' |
This file contains 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
#!/bin/bash | |
#path to folder containing folders referenced by nginx server blocks | |
SERVERPATH="/var/www" | |
#name of logs folder | |
LOGFOLDER="logs" | |
#name of www folder (i.e. folder where web files are held) | |
WWWFOLDER="public_html" |