This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############ Adobe badness ############# | |
# In your operating system, create a postscript printer whose address is 127.0.0.1 | |
# Fake a postscript printer using netcat | |
$ nc -l 127.0.0.1 9100 > printout.ps | |
# Print your pdf using Adobe Reader to the postscript printer on 127.0.0.1 | |
# Netcat will diligently dump the printout to printout.ps as a postscript file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lmwangi ~ work someproject virts vagrant provision | |
/Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.2/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /usr/local in PATH, mode 040777 | |
/Applications/Vagrant/embedded/gems/gems/bundler-1.6.2/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /usr/local in PATH, mode 040777 | |
==> default: Running provisioner: chef_solo... | |
Generating chef JSON and uploading... | |
1 def why_run_supported? | |
==> default: Running chef-solo... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fcntl | |
class FileLock: | |
def __init__(self, filename, lock_type): | |
self.fh = open(filename, "a") | |
self.lock_type = lock_type | |
def __enter__(self): | |
print "Acquiring lock" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tue Jul 8 11:51:18 UTC 2014 | |
Tue Jul 8 11:51:20 UTC 2014 | |
Tue Jul 8 11:51:22 UTC 2014 | |
Tue Jul 8 11:51:24 UTC 2014 | |
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | |
python 822 vagrant 3w REG 254,0 0 1973047 /tmp/some_lock_file | |
python 823 vagrant 3w REG 254,0 0 1973047 /tmp/some_lock_file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Starting process 1 | |
Starting process 2 | |
Starting process 3 | |
Starting process 4 | |
Starting process 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Variables | |
PKG_NAME=SomeCompany-python-api | |
PKG_VERSION=0.1 | |
[email protected] | |
export DEBFULLNAME="Laban Mwangi" | |
PKG_NAME_VERSION=${PKG_NAME}-${PKG_VERSION} | |
PKG_SCRIPT_NAME=$(echo $PKG_NAME | sed -e "s/-/_/g") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Executes commands at the start of an interactive session. | |
# | |
# Authors: | |
# Sorin Ionescu <[email protected]> | |
# | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/suibotdef.c b/src/server/suibotdef.c | |
index 494f73f..d5202e3 100644 | |
--- a/src/server/suibotdef.c | |
+++ b/src/server/suibotdef.c | |
@@ -405,7 +405,7 @@ static bool Get_object_proximity(player_t *pl, object_t *shot, double sqmaxdist, | |
/* ignore if there is enough time to deal with this object later */ | |
if((time_until_closest < 0) || (time_until_closest > maxtime)) | |
/*option instead of fixed value: options.dodgetime))*/ | |
+ return false; | |
- return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Locate the storedownload process | |
ps aux |grep storedown | |
user 494 12.3 0.2 3597016 19724 ?? S 21Sep15 31:14.11 /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/storedownloadd | |
2. Attach dtruss to the storedownloader process | |
sudo dtruss -p 494 2>&1 | tee storedownload | |
3. Start the download on the appstore application | |
4. Inspect the storedownload process using lsof to figure out the remote endpoints |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:C2BPaymentConfirmationRequest xmlns:ns1="http://cps.huawei.com/cpsinterface/c2bpayment"><TransType>PayBill</TransType><TransID>12655422469971</TransID><TransTime>20140227082020</TransTime><TransAmount>123.00</TransAmount><BusinessShortCode>777126</BusinessShortCode><BillRefNumber>TX1001</BillRefNumber><InvoiceNumber>X334343</InvoiceNumber><OrgAccountBalance>12345.00</OrgAccountBalance><ThirdPartyTransID>1234560000088888</ThirdPartyTransID><MSISDN>0722703615</MSISDN><KYCInfo><KYCName>[Personal Details][First Name]</KYCName><KYCValue>Hoiyor</KYCValue></KYCInfo><KYCInfo><KYCName>[Personal Details][Middle Name]</KYCName><KYCValue>G</KYCValue></KYCInfo><KYCInfo><KYCName>[Personal Details][Last Name]</KYCName><KYCValue>Chen</KYCValue></KYCInfo></ns1:C2BPaymentConfirmationRequest></soapenv:Body></soapenv:Envelope> |