Skip to content

Instantly share code, notes, and snippets.

View x0x8x's full-sized avatar
🏠
Working from home

x0x8x x0x8x

🏠
Working from home
View GitHub Profile
@x0x8x
x0x8x / dlclt.py
Created June 12, 2017 04:39 — forked from uchida/dlclt.py
CUI Downloader of Command Line Tools for Xcode
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# CUI Downloader of "Command Line Tools for Xcode"
# by Akihiro Uchida, CC0 dedicated to the public domain
# see http://creativecommons.org/publicdomain/zero/1.0/
import sys, os
import urllib, urllib2, cookielib
from getpass import getpass
from HTMLParser import HTMLParser
@x0x8x
x0x8x / build-ffmpeg.sh
Created June 12, 2017 12:29 — forked from m1entus/build-ffmpeg.sh
Installing ffmpeg ios libraries armv7, armv7s, i386
#!/bin/bash
###########################################################################
# Choose your ffmpeg version and your currently-installed iOS SDK version:
#
VERSION="2.0.2"
SDKVERSION="7.0"
ARCHS="armv7 armv7s i386"
#
#
@x0x8x
x0x8x / openssl-build.sh
Created June 12, 2017 12:45 — forked from foozmeat/openssl-build.sh
A shell script to build openssl for iOS and Mac. It currently builds: Mac -> i386 & x86_64 // iOS -> armv7, arm64 // iOS Simulator -> i386 & x86_64.
#!/bin/bash
# This script builds the iOS and Mac openSSL libraries
# Download openssl http://www.openssl.org/source/ and place the tarball next to this script
# Credits:
# https://github.com/st3fan/ios-openssl
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh
@x0x8x
x0x8x / README.md
Created June 20, 2017 19:46 — forked from christiangalsterer/README.md
Atlassian Jira: Number of issues in a Jira Query Language (JQL) search

Description

A Dashing widget to display the number of issues returned by a Jira Query Language (JQL) search. The number of issues will be displayed using the Numbers widget. This widget is a generalized version of the Atlassian Jira: Number of issues in a Jira filter query widget, which shows the number of issues for saved Jira filter.

Dependencies

The following dependencies are required. Please add them to your dashing gemfile.

gem 'jira-ruby', :require => 'jira'
@x0x8x
x0x8x / csd-wrapper.sh
Created August 12, 2017 01:12 — forked from l0ki000/csd-wrapper.sh
Cisco Anyconnect CSD wrapper for OpenConnect (exhanced to autodownload and autoupdate hostscan)
#!/bin/bash
# Cisco Anyconnect CSD wrapper for OpenConnect
# Enter your vpn host here
CSD_HOSTNAME=
if [[ -z ${CSD_HOSTNAME} ]]
then
echo "Define CSD_HOSTNAME with vpn-host in script text. Exiting."
exit 1
fi
@x0x8x
x0x8x / ovpn-server-with-cert.rsc
Last active August 25, 2017 03:16 — forked from SmartFinn/ovpn-server-with-certs.md
MikroTik (RouterOS) script for setup OpenVPN server and generate certificates
# Setup OpenVPN Server
#
# Edit variables below and copy paste the script
# in a MikroTik terminal window.
#
:global CN "VeriSign Class 3 Secure Server CA - G2"
:global COUNTRY "US"
:global STATE "VeriSign"
:global LOC "VeriSign Trust Network"
/ip firewall filter
add action=reject chain=forward comment="Reject MS Telemetry" \
dst-address-list=MStelemetry reject-with=icmp-network-unreachable
/ip firewall address-list
add address=111.221.29.177 list=MStelemetry
add address=111.221.29.253 list=MStelemetry
add address=131.253.40.37 list=MStelemetry
add address=134.170.30.202 list=MStelemetry
add address=134.170.115.60 list=MStelemetry
18 ;;; 7/0 goes to WAN1
chain=prerouting action=mark-connection new-connection-mark=WAN1_conn passthrough=yes
dst-address-type=!local in-interface=LAN1 connection-mark=no-mark
per-connection-classifier=both-addresses-and-ports:7/0
19 ;;; 7/1 goes to WAN2
chain=prerouting action=mark-connection new-connection-mark=WAN2_conn passthrough=yes
dst-address-type=!local in-interface=LAN1 connection-mark=no-mark
per-connection-classifier=both-addresses-and-ports:7/1
@x0x8x
x0x8x / gist:4d57d6e85013f704d2b278fd21dc221a
Created August 25, 2017 11:07 — forked from agudulin/gist:2942039
Python: Looking for the most beautiful girl in vk.com/girlsview
import vkontakte
import json
import sqlite3
import time
from pprint import pprint
def fill_db(db_name):
conn = sqlite3.connect(db_name)
c = conn.cursor()
@x0x8x
x0x8x / Social buttons.txt
Created August 25, 2017 11:08 — forked from CoolS2/Social buttons.txt
Social buttons
<div class="share-buttons">
<a class="share-btn-fb" href="http://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=<?=get_the_title($id)?>&p%5Bsummary%5D=DESC&p%5Burl%5D=<?=$actual_link?>&p%5Bimages%5D%5B0%5D=<?=wp_get_attachment_image_src( get_post_thumbnail_id($id), 'medium' )[0]?>" onclick="return !window.open(this.href, 'Facebook', 'width=640,height=580')">
<div class="facebook share-block">
<i class="fa fa-facebook" aria-hidden="true"></i>
</div>
</a>
<a href="http://vk.com/share.php?url=<?=$actual_link?>&title=<?=get_the_title($id)?>&description=<?=get_the_excerpt($id)?>&image=<?=wp_get_attachment_image_src( get_post_thumbnail_id($id), 'medium' )[0]?>&noparse=true" target="_blank" onclick="return Share.me(this);">
<div class="vk share-block">
<i class="fa fa-vk" aria-hidden="true"></i>
</div>