Skip to content

Instantly share code, notes, and snippets.

View 0xv's full-sized avatar
🌴
On vacation

Natan 0xv

🌴
On vacation
View GitHub Profile
@0xv
0xv / blah.js
Created March 23, 2022 20:46
inject discord activities
var AppIds = ["755600276941176913", "880218394199220334", "755827207812677713", "773336526917861400", "814288819477020702", "832012774040141894", "879864070101172255", "879863881349087252", "832012854282158180", "878067389634314250", "902271654783242291", "879863686565621790", "879863976006127627", "852509694341283871", "832013003968348200", "832025144389533716", "763133495793942528", "880218832743055411", "878067427668275241", "879864010126786570", "879864104980979792", "891001866073296967", "832012586023256104", "832012682520428625", "832013108234289153", "763116274876022855", "832012730599735326", "832012938398400562", "832025061657280566", "801133024841957428", "832012815819604009", "832012894068801636", "832025114077298718", "832025993019260929"]
window.webpackChunkdiscord_app.push([[Math.random()], {}, (req) => {for (const m of Object.keys(req.c).map((x) => req.c[x].exports).filter((x) => x)) {if (m.default && m.default.getEnabledAppIds !== undefined) {return m.default.getEnabledAppIds = () => AppIds}}}
@0xv
0xv / gist:ad2dbc29c18617578d092f99388a11c7
Created March 2, 2019 01:46
fix bootstrap uneven column heights
.row.display-flex {
display: flex;
flex-wrap: wrap;
}
.row.display-flex > [class*='col-'] {
display: flex;
flex-direction: column;
}
@0xv
0xv / host
Created November 17, 2018 18:59
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
@0xv
0xv / asdf
Created October 25, 2017 15:14
asdf
var url = "http://api.myjson.com/bins/tzcjb"
var axios = require('axios');
axios.get(url)
.then(response =>{
console.log(response)
})
.catch(e => {
this.errors.push(e)

Keybase proof

I hereby claim:

  • I am 0xv on github.
  • I am 0xv (https://keybase.io/0xv) on keybase.
  • I have a public key ASD93kR-0OYAi_XdQsGgoBflqLgiwS8ZUEwRndqddcAfwwo

To claim this, I am signing this object:

@0xv
0xv / youtube_comment_bot.py
Created May 28, 2017 03:57 — forked from streetgt/youtube_comment_bot.py
Youtube Comment Bot - python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python bot for comment a list of urls in YouTube
import time
import numpy as np
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
@0xv
0xv / dailyui-016-popup-overlay.markdown
Created March 18, 2017 09:39
DailyUI #016 - Popup / Overlay
cd /var
mkdir repo && cd repo
mkdir site.git && cd site.git
git init --bare
cd hooks
cat > post-receive
#!/bin/sh
git --work-tree=/var/www/domain.com --git-dir=/var/repo/site.git checkout -f
chmod +x post-receive
@0xv
0xv / blash
Created February 15, 2017 13:42
public function details($appid){
$data["appdata"] = $this->db_models->app_detail($appid);
$data["similar"] = $this->papi_models->app_similar($appid,'5');
if(isset($data["appdata"]) && !empty($data["appdata"])){
//echo "ada di db langsung print dari db aja";
$data["gamebydev"] = json_decode($this->papi_models->developer($data["appdata"]["developer"]["devId"],"5"), true);
$this->load->view('detail/detail', $data);
//print_r($data["appdata"]["_id"]);
}
import re, json, urllib2, sys
class WpContent:
def __init__(self, url):
self.__url = url
self.__response = urllib2.urlopen(self.__url).read()
def get_api_wp(self):
return re.findall(r"https://api.w.org/' href='(.*)'", self.__response)[0]