Skip to content

Instantly share code, notes, and snippets.

Sarim Khan sarim

Block or report user

Report or block sarim

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View vscode-user-pref.json
{
"explorer.openEditors.visible": 0,
"editor.wordWrap": "on",
"editor.renderIndentGuides": false,
"window.openFilesInNewWindow": "off",
"editor.minimap.enabled": false,
"workbench.sideBar.location": "right",
"window.titleBarStyle": "custom",
"remote.onstartup": true,
"editor.fontSize": 20,
@sarim
sarim / .bash_profile
Created Dec 16, 2017
supercharge your youtube-dl
View .bash_profile
yt-dl() {
youtube-dl --external-downloader=aria2c --external-downloader-args="--download-result=hide" $@
}
yt-dl-q() {
cat $1 | xargs -I {} bash -l -c "yt-dl {};"
}
1080p() {
yt-dl -f 137+140 $1
View output.html
<table>
<tbody>
<tr>
<td><img src="http://dyncdn.me/static/over/156dc9f0d7d05e610850b6ac60e0a157fbcfa8f6.jpg" border=0></td>
<td>UFC.208.PPV.HDTV.x264-PLUTONiUM[rartv]</td>
<td>2017-02-12 09:29:11 +0000 UTC</td>
</tr>
<tr>
View .bash_profile
export GOROOT=/usr/local/Cellar/go/1.6.2/libexec
export GOPATH=/usr/local/Cellar/go/1.6.2/packages
export PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/go/libexec/bin:$GOPATH/bin
export ANDROID_HOME=/Volumes/Codes/android-sdk-macosx
export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
alias runurt="open /Volumes/Codes/UrbanTerror42/Quake3-UrT.app"
export HISTFILESIZE=
export HISTSIZE=
View spam.md

So i got a spam mail. Phising for my google account. Nice design, even prefilled my emaill address :p

Copy and paste the link in incognito

http://25954.d797059cae3fcfc28f28cea4636914a1sessioninboxmsg115637011.ssl-login-32.com/aowcdlg.html?rgnlfuj=p2SlnJ0lZQN1DTqgLJyfYzAioD==&pxhg=896561&sh=s_&vo=4&i5nfclcy=rJSbo28hL29g&wv=e9d91117c82a54273c72fc836ff150d7&xkq=1474443938&xmr=7.5.9848&m_d=MUAjYJ1mM2Ilpv0kZwVhL29g
View fucking-java.log
[jasper@gittu buildomatic]$ /home/jasper/jasperreports-server-cp-6.3.0/apache-ant/bin/ant import-minimal-ce
Buildfile: /home/jasper/jasperreports-server-cp-6.3.0/buildomatic/build.xml
[echo] Filtering properties (cleaning out blank spaces)
[echo] chkAndSetLocaleDbSettings: dbType is postgresql
[echo] chkAndSetLocaleDbSettings: db.set.lc_collate and db.set.lc_ctype are NOT both set
[echo] chkAndSetLocaleDbSettings: parse: scripts.properties for db commands
[echo] using settings file: /home/jasper/jasperreports-server-cp-6.3.0/buildomatic/build_conf/default/maven_settings.xml
import-minimal-ce:
[echo]
View pyqttest.py
import sys
from PyQt5.QtWidgets import QMainWindow, QAction, qApp, QApplication, QMenuBar, QMenu
from PyQt5.QtGui import QIcon
class Example(QMainWindow):
def __init__(self):
super().__init__()
self.initUI()
View gui.py
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
View -
oa_site.twig.setting_extension:
class: OASiteBundle\Twig\SettingExtension
arguments:
- @doctrine.orm.entity_manager
tags:
- { name: twig.extension }
View urtmon.2m.py
#!/usr/bin/env python
import socket, sys, getopt
from datetime import datetime, timedelta
def get_server_details(host, port):
# Data Place Holders
urt_server_details = {}
# Socket Request Message
MESSAGE = "\377\377\377\377getstatus"
You can’t perform that action at this time.