Skip to content

Instantly share code, notes, and snippets.

@vishless
vishless / Rinkeby.md
Created June 14, 2019 06:17 — forked from learner-long-life/Rinkeby.md
How to get on Rinkeby Testnet in less than 10 minutes

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

@vishless
vishless / letsencrypt-ssl-cmds
Created May 24, 2019 05:47
Command for generating pkcs.p12 and storing it in a java keystore
Generate certificate and key from zerossl website
openssl pkcs12 -export -in domain-crt.txt -inkey domain-key.txt -out pkcs.p12 -name NAME
keytool -importkeystore -deststorepass password -destkeypass password -destkeystore keystore.jks -srckeystore pkcs.p12 -srcstoretype PKCS12 -srcstorepass password -alias NAME
@vishless
vishless / steam_keypad_codes
Created May 12, 2019 03:33
The keypad codes used to bind console commands in steam games like CSGO, Garry's Mod etc
Keypad 0 - "kp_ins" - bind kp_ins "say /me salutes"
Keypad 1 - "kp_end"
Keypad 2 - "kp_downarrow"
Keypad 3 - "kp_pgdn"
Keypad 4 - "kp_leftarrow"
Keypad 5 - "kp_5"
Keypad 6 - "kp_rightarrow"
Keypad 7 - "kp_home"
Keypad 8 - "kp_uparrow"
Keypad 9 - "kp_pgup"
@vishless
vishless / eth_testrpc_startup_100_ether
Created March 15, 2019 09:00
Start ethereum testrpc wallet with 100 Ether
$ testrpc --account="0x7231a774a538fce22a329729b03087de4cb4a1119494db1c10eae3bb491823e7, 10000000000000000000"
Syntax is $ testrpc --account="<privatekey>,balance" [--account="<privatekey>,balance"]
@vishless
vishless / rubygem-cmds
Created February 2, 2019 06:08
rubygems commands
# build gem
gem build <gem-name>
# publish gem
gem push <gem-name>
# delete gem from rubygems
gem yank <gem-name> -v <version>
@vishless
vishless / ruby-bin-locations-logstash-server
Created February 2, 2019 06:06
ruby and gem binary file locations in logstash server
/usr/share/logstash/bin/ruby
/usr/share/logstash/vendor/jruby/bin/gem
@vishless
vishless / lxqt-rc.xml
Created December 28, 2018 04:30
lubuntu lxqt config file located at ~/.config/openbox/lxqt-rc.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/ instead. -->
<openbox_config xmlns="http://openbox.org/3.4/rc"
xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
@vishless
vishless / powershell-rename-number.txt
Created September 14, 2018 05:01
A powershell script to rename files and give them numbers in increasing order
Dir | %{Rename-Item $_ -NewName ("{0}.835" -f $nr++)}
@vishless
vishless / win-line-count-files-in-dir
Created September 5, 2018 05:13
Powershell command to output the number of lines in files of current directory
Powershell command to find the number of lines of files in current directory
dir -Recurse *.txt | Get-Content | Measure-Object -Line
@vishless
vishless / disable_optimization_ue4
Created September 5, 2018 04:02
Disable optimization in Ureal Engine 4
// To disable optimization for given code just use this:
#pragma optimize( "", off )
// your code
#pragma optimize( "", on )