Skip to content

Instantly share code, notes, and snippets.

View dimisdas's full-sized avatar
:octocat:
I'm not Turing complete.

Dimis dimisdas

:octocat:
I'm not Turing complete.
View GitHub Profile
@dimisdas
dimisdas / index.html
Last active March 18, 2019 09:21
Questionnaire
<div class="wrapper" ng-app="questionaire" ng-controller="qaCtrl">
<div class="qa-panel">
<button type="button" class="startBtn" ng-click="openQuestions()" ng-hide="!hideInput">start</button>
<div class="qa-panel-label">
<span ng-bind="currentLabel"></span>
</div>
<button type="button" ng-show="quizComplete" class="cancelBtn" ng-click="cancelQuestions()">
restart</button>
<div class="qa-panel-input" ng-hide="hideInput || quizComplete">
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
if (sys.version_info < (3, 0)):
# Python 3 code in this block
print('Python v3.5 or above required for Instaloader module at the moment. Exiting...')
quit()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from .unfollow_protocol import unfollow_protocol
from .userinfo import UserInfo
import atexit
import datetime
import itertools
import json
$post_data = http_build_query(
array(
'secret' => CAPTCHA_SECRET,
'response' => $_POST['g-recaptcha-response'],
'remoteip' => $_SERVER['REMOTE_ADDR']
)
);
$opts = array('http' =>
array(
'method' => 'POST',
@dimisdas
dimisdas / lighty.sh
Last active December 10, 2015 20:08
Install lighttpd on CentOS 6.
cd ~
sudo yum update -y
yum groupinstall Editors "Development Tools" "Development Libraries" -y
yum install pcre-devel pcre zlib zlib-devel bzip2 bzip2-devel curl -y
mkdir ~/tmp
cd ~/tmp/
wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.32.tar.gz -O lighttpd.tar.gz
@dimisdas
dimisdas / lighttpd.conf
Last active December 10, 2015 20:08
Lighttpd default configuration file
## Lighttpd Configuration File ##
# Default Document Root
# This is the site that the server will revert to incase of an unknown Virtual Host
server.document-root = "/var/www/"
server.modules = (
"mod_access",
"mod_accesslog",
"mod_fastcgi",
@dimisdas
dimisdas / es.sh
Created January 8, 2013 17:48 — forked from rajraj/es.sh
Install elastic search on CentOS 6.
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk.i686 -y
wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.2.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share