Skip to content

Instantly share code, notes, and snippets.

View dynamicguy's full-sized avatar
🎯
Focusing

Nurul Ferdous dynamicguy

🎯
Focusing
View GitHub Profile
@dynamicguy
dynamicguy / data-model
Created July 16, 2017 08:39
test data model
entity Region {
name String required,
continent String
}
entity Country {
code String required maxlength(3),
name String required,
surfaceArea Float,
indepYear Long,
<div id="objects_container" data-sigil="search-results"><div class="_4g33 _52we _5ca3 _5ca1 _ydx"><div class="_4g34 _195r _5cwg"><a class="_54k8 _5c9u _5caa" href="/search/people/?ssid=f46de9b418d0325fbf95076f221f6864&amp;search_source=filter&amp;refid=0&amp;q=all&amp;tsid&amp;o=274" role="button" data-sigil="touchable"><span class="_55sr">People</span></a></div><div class="_4g34 _195r _5cwg _5ca4"><a class="_54k8 _5c9u _5kqs _5caa" href="/search/pages/?ssid=f46de9b418d0325fbf95076f221f6864&amp;search_source=filter&amp;refid=0&amp;q=all&amp;tsid" role="button" data-sigil="touchable"><span class="_55sr">Pages</span></a></div><div class="_4g34 _195r _5cwg"><a class="_54k8 _5c9u _5caa" href="/search/events/?ssid=f46de9b418d0325fbf95076f221f6864&amp;search_source=filter&amp;refid=0&amp;q=all&amp;tsid" role="button" data-sigil="touchable"><span class="_55sr">Events</span></a></div><div class="_4g34 _195r _5cwg"><a class="_54k8 _5c9u _5caa" href="/search/groups/?ssid=f46de9b418d0325fbf95076f221f6864&amp;search_sour
@dynamicguy
dynamicguy / SVMClassifier.scala
Created February 1, 2017 01:01
SVM Classifier with SGD
package com.ferabb.spark.app.ml
import com.ferabb.spark.SparkApp
import com.ferabb.spark.analysis.LuceneTextAnalyzer
import com.ferabb.spark.fusion.FusionMLModelSupport
import org.apache.commons.cli.{CommandLine, Option}
import org.apache.spark.SparkConf
import org.apache.spark.mllib.classification.SVMWithSGD
import org.apache.spark.mllib.evaluation.BinaryClassificationMetrics
import org.apache.spark.mllib.feature.{HashingTF, Normalizer, StandardScaler}
@dynamicguy
dynamicguy / SVMClassifier.scala
Created February 1, 2017 01:01
SVM Classifier with SGD
package com.ferabb.spark.app.ml
import com.ferabb.spark.SparkApp
import com.ferabb.spark.analysis.LuceneTextAnalyzer
import com.ferabb.spark.fusion.FusionMLModelSupport
import org.apache.commons.cli.{CommandLine, Option}
import org.apache.spark.SparkConf
import org.apache.spark.mllib.classification.SVMWithSGD
import org.apache.spark.mllib.evaluation.BinaryClassificationMetrics
import org.apache.spark.mllib.feature.{HashingTF, Normalizer, StandardScaler}
@dynamicguy
dynamicguy / recreate_all_ios_simulators.rb
Last active April 2, 2025 11:58
Recreate all available iOS simulators
#!/usr/bin/env ruby
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'JSON'
device_types = JSON.parse `xcrun simctl list -j devicetypes`
runtimes = JSON.parse `xcrun simctl list -j runtimes`
devices = JSON.parse `xcrun simctl list -j devices`
@dynamicguy
dynamicguy / root.sh
Created October 27, 2016 13:50 — forked from Arinerron/root.sh
"Root" via dirtyc0w privilege escalation exploit (automation script) / Android (32 bit)
#!/bin/bash
# Give the usual warning.
clear;
echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds...";
sleep 10;
clear;
# Download and extract exploit files.
echo "[INFO] Downloading exploit files from GitHub...";
# basic pfctl control
# ==
# Related: http://www.OpenBSD.org
# Last update: Tue Dec 28, 2004
# ==
# Note:
# this document is only provided as a basic overview
# for some common pfctl commands and is by no means
# a replacement for the pfctl and pf manual pages.

Keybase proof

I hereby claim:

  • I am dynamicguy on github.
  • I am find (https://keybase.io/find) on keybase.
  • I have a public key ASAxBzWlb6bwGS1dIRPOjOA2xl_mblluwIKD_cdpwP1r7Qo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am dynamicguy on github.
  • I am find (https://keybase.io/find) on keybase.
  • I have a public key ASBVISQKJ0AeHMHV8wjQus4Zf6MR0xZ5w9OWmsNipaCdBwo

To claim this, I am signing this object:

Vagrant.require_version ">= 1.6.5"
unless Vagrant.has_plugin?("vagrant-vbguest")
raise "Please install the vagrant-vbguest plugin by running `vagrant plugin install vagrant-vbguest`"
end
VAGRANTFILE_API_VERSION = "2"
MEMORY = 4096
CPU_COUNT = 2