Skip to content

Instantly share code, notes, and snippets.

View AmirolAhmad's full-sized avatar
💭
I may be slow to respond.

Xambitt AmirolAhmad

💭
I may be slow to respond.
View GitHub Profile
@AmirolAhmad
AmirolAhmad / GoogleDorking.md
Created November 7, 2023 07:44 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@AmirolAhmad
AmirolAhmad / game.rb
Created July 9, 2018 07:12
matz live or dead game
# live < 2, die
# live 2/3. live
# live with > 3, die
# dead with == 3, spawn
size = 20
board = Array.new(size*size) { rand(2) }
loop do
board.each.with_index { |cell, index| print "\n" if index % size == 0; print cell }
@AmirolAhmad
AmirolAhmad / aprx
Created August 5, 2017 16:30
/etc/default/aprx
#
# STARTAPRX: start aprx on boot. Should be set to "yes" once you have
# configured aprx.
#
STARTAPRX="yes"
#
# Additional options that are passed to the Daemon.
#
DAEMON_OPTS=""
@AmirolAhmad
AmirolAhmad / aprx.conf
Last active August 5, 2017 16:31
/etc/aprx.conf
mycall 9M2ROL-1
<aprsis>
passcode 14257
server aprs.myaprs.my 14580
server aprs2.myaprs.my 14580
server asia.aprs2.net 14580
filter t/moq/9M2ROL-1/100
</aprsis>
@AmirolAhmad
AmirolAhmad / application.html.erb
Created June 17, 2017 12:08 — forked from the-bass/application.html.erb
Using Google Analytics with Rails 5 and Turbolinks 5. This code is taken from the conversation between @preetpalS and @packagethief on https://github.com/turbolinks/turbolinks/issues/73.
<%# Put this code snippet between the <head></head>-tags in your application layout and %>
<%# replace 'UA-XXXXXXXX-X' with your own unique Google Analytics Tracking ID %>
<%# ... %>
<head>
<%# ... %>
<% if Rails.env.production? %>
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@AmirolAhmad
AmirolAhmad / rails-postgres-backbone-bootstrap-bootswatch
Created September 27, 2016 20:44 — forked from sionc/rails-postgres-backbone-bootstrap-bootswatch
Instructions on creating a new app using Ruby on Rails, Postgresql, Backbone.js, Twitter Boostrap, Bootstwatch
- Check rails version
$ rails -v
- To update rails
$ gem update rails
- Creating a new rails app using postgresql
$ mkdir rails_projects
$ cd rails_projects
$ rails new myapp --database=postgresql
@AmirolAhmad
AmirolAhmad / cw_conversation.txt
Last active April 7, 2016 09:40
A sample CW conversation between station 1 (S1) and station 2 (S2)
S1:
CQ CQ CQ DE S1 K
- Calling anyone (CQ), this is (DE) S1, listening for any response (K)
S2:
S1 DE S2 KN
- Calling S1, this is S2, listening for a response only from designated station (KN) (Two-way connection established)
S1:
S2 DE S1 = GA DR OM UR RST 5NN HR = QTH TIMBUKTU = OP IS JOHN = HW? S2 DE S1 KN
@AmirolAhmad
AmirolAhmad / guide.md
Last active September 15, 2015 04:40
Setup Ruby on Rails on MacOS
  1. Install homebrew (http://brew.sh/)
  2. Install Ruby. We are going to use rbenv (https://github.com/sstephenson/rbenv)
brew install rbenv ruby-build

# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
@AmirolAhmad
AmirolAhmad / tmux-cheatsheet.markdown
Last active August 29, 2015 14:26 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@AmirolAhmad
AmirolAhmad / seeds.rb
Last active August 29, 2015 14:11
Malaysia Country & State
Location.find_or_create_by(name: "Johor",
name: "Kedah",
name: "Kelantan",
name: "Kuala Lumpur",
name: "Melaka",
name: "Negeri Sembilan",
name: "Pahang",
name: "Penang",
name: "Perak",
name: "Perlis",