Skip to content

Instantly share code, notes, and snippets.

class Sslscan2Beta < Formula
desc "Test SSL/TLS enabled services to discover supported cipher suites"
homepage "https://github.com/rbsec/sslscan"
url "https://github.com/rbsec/sslscan/archive/2.0.0-beta1.tar.gz"
version "2.0.0-beta1"
sha256 "4a77ddfd0dad740fa1f830feab24702f9ecea8881cfc26d08e82573a4d141023"
head "https://github.com/rbsec/sslscan.git"
bottle do
cellar :any_skip_relocation
@junxy
junxy / aliyun-CentOS-Base.repo
Last active December 10, 2019 10:18
Centos8 国内源
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
@junxy
junxy / post-WSL.md Installing node via windows subsystem for linux

Windows 10 Fall Creators Update - Installing Node.js on Windows Subsystem for Linux (WSL)

Windows just released the windows subsystem for linux feature to the public with its latest windows fall creator update, if you are not familiar with this feature it allows you to run linux binaries natively on windows - F.A.Q.

Enabling WSL

The feature is not enabled by default and you need to activate it, you can do it via powershell (with admin rights):

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Or you can open: Control-Panel -> Programs -> Turn Windows feature on ro off, and click the "windows subsystem for linux (beta)" button.

@junxy
junxy / ddns_dnspod.sh
Created March 24, 2019 11:51
ddns(dnspod.com) update script
#!/bin/sh
# get public ip
myip=$(dig +short myip.opendns.com @resolver1.opendns.com)
echo "My IP: $myip"
curl -X 'POST' 'https://api.dnspod.com/Record.Ddns' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
--data-urlencode 'format=json' \
--data-urlencode 'sub_domain=xxx' \
@junxy
junxy / .wakeup
Last active June 14, 2018 02:40 — forked from ralph089/.wakeup
Restarts Bluetooth Module on Mac OS X. You can use the script as shortcut to restart Bluetooth on demand or you can use it with "SleepWatcher" to automatically restart Bluetooth on wakeup (See README.md). I created it, because my Logitech Bluetooth Mouse doesn't stay connected after sleep-mode, so i had to manually re-pair my mouse.
#!/bin/bash
#
# Restart Bluetooth Module on Mac OS X
#
# Requires Blueutil to be installed: http://brewformulas.org/blueutil
BT="/usr/local/bin/blueutil"
log() {
echo "$@"
@junxy
junxy / fastonosql.rb
Last active December 14, 2017 03:58
fixes fastonosql .dmg file download 404 error. source: https://github.com/caskroom/homebrew-cask/blob/master/Casks/fastonosql.rb
cask 'fastonosql' do
version '1.10.0'
sha256 '38bf2c7b272040d8e25ec4cace4799c7a378bbf9e742192bff9d350e75d35292'
url "https://www.fastonosql.com/anonim_users_downloads/macosx/fastonosql-#{version}-x86_64.dmg"
appcast 'https://github.com/fastogt/fastonosql/releases.atom',
checkpoint: 'efc5b58bbfdeed9f028c65295b17774b0e5cb99548c160c91fa6a1085c3f13f4'
name 'FastoNoSQL'
homepage 'https://www.fastonosql.com/'
@junxy
junxy / Jenkins Email Template Jelly get git env README.md
Last active January 11, 2017 11:39
Jenkins Email Template Jelly 中获取当前环境变量 build git branch

Jenkins Email Template Jelly 中获取当前环境变量 build git branch

<j:set var="buildenv" value="${build.getEnvironment(listener)}"/>
<j:set var="branch" value="${buildenv.get('GIT_BRANCH')}"/>

${branch}

Environment variables

@junxy
junxy / CleanWindowTempCabFiles.ps1
Created December 2, 2016 02:41
清理 windows temp cab_* 临时文件? PS: 这些文件不断生成占用C盘空间,暂时没找到方法,删除也没发现有什么问题,只好先用脚本定期清理一下。
Set-Location "C:\Windows\Temp"
Get-ChildItem -Filter "cab_*" | Where-Object {$_.length -gt 1 }
Get-ChildItem -Filter "cab_*" | Where-Object {$_.length -gt 1 } | Remove-Item -Force
Write-Host "done"
@junxy
junxy / batch_ping.ps1
Created November 25, 2016 10:16
批量ping,并输出ping不通的ip
$stringlist =
'192.168.36.104',
'192.168.36.130',
'192.168.22.126',
'192.168.50.111',
'192.168.36.129',
'192.168.36.133'
# http://ilovepowershell.com/2010/04/13/powershell-how-to-ping-computers/
$ping = new-object system.net.networkinformation.ping