Skip to content

Instantly share code, notes, and snippets.

View palaa159's full-sized avatar
🔥
Burning good karma

Apon Palanuwech palaa159

🔥
Burning good karma
  • Parsons The New School
  • New York City
View GitHub Profile
{
"workbench.iconTheme": "material-icon-theme",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.wordWrap": "on",
"editor.formatOnType": false,
"workbench.startupEditor": "newUntitledFile",
"window.zoomLevel": 2,
"editor.fontLigatures": true,
"editor.find.autoFindInSelection": true,
{"lastUpload":"2021-09-02T08:49:42.227Z","extensionVersion":"v3.4.3"}
const axios = require('axios')
const igHandle = 'jennieramida'
const sessionId = '9218400%3AGJqz0Eewttl0x8%3A13'
const Cookie = `sessionid=${sessionId}`
let i = 0
async function requestUserData () {
const url = `https://www.instagram.com/${igHandle}/?__a=1`
console.info(`Making request to: ${url}`)
<?php
$posts = array();
$args = array(
'posts_per_page' => 100,
'offset' => 0,
'post_type' => 'post',
'post_status' => 'publish',
);
@palaa159
palaa159 / git-deployment.md
Created February 20, 2018 17:34 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.

@palaa159
palaa159 / bash-cheatsheet.sh
Created September 30, 2017 05:06 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@palaa159
palaa159 / mysql-docker.sh
Created September 25, 2017 05:36 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@palaa159
palaa159 / osx_install.sh
Last active July 13, 2017 15:34 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install Xcode first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
xcode-select --install
echo Install Homebrew, Postgres, wget and cask
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap homebrew/science
brew install zsh zsh-completions
@palaa159
palaa159 / Guardfile
Last active August 29, 2015 14:21 — forked from burtlo/Guardfile
guard 'shell' do
watch(/(.*).(?:haml|ya?ml)/) do |file|
haml_file = file.first.gsub(/ya?ml/,'haml')
html_file = file.first.gsub(/[yh]a?ml/,'html')
puts "Converting #{haml_file} to #{html_file}"
`haml #{haml_file} > #{html_file} --trace`
end
end