Skip to content

Instantly share code, notes, and snippets.

View kamcpp's full-sized avatar
😖
{ x, { x, { x, ... } } }

Kam Amini kamcpp

😖
{ x, { x, { x, ... } } }
  • @ ActiveVideo
  • Amsterdam, Netherlands
View GitHub Profile
@kamcpp
kamcpp / reserve.js
Created March 7, 2023 21:47
How to call reserveMe() function
export const reserveForMeABI = `
[
{
"inputs": [
{
"internalType": "uint256",
"name": "nrOfTokensToReserve",
"type": "uint256"
},
{
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.4
A nice apartment in Amsterdam Oud-West, very close to Kinkerstraat!
Price is exclusive and the property is nice for a couple.
For more info and pictures, please follow:
https://goo.gl/RbD65v
#!/bin/bash
while true
do
num_of_proc=`ps aux | grep whs | wc -l`
if [ "$num_of_proc" -eq "1" ]; then
./start.sh
sleep 30
fi
sleep 10
deb http://192.168.1.14:3142/us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://192.168.1.14:3142/us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://192.168.1.14:3142/us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://192.168.1.14:3142/us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb http://192.168.1.14:3142/us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://192.168.1.14:3142/us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://192.168.1.14:3142/us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://192.168.1.14:3142/us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://192.168.1.14:3142/us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://192.168.1.14:3142/us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://deb.i.ntnaeem.ir:3142/us.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://deb.i.ntnaeem.ir:3142/us.archive.ubuntu.com/ubuntu/ vivid main restricted
deb http://deb.i.ntnaeem.ir:3142/us.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://deb.i.ntnaeem.ir:3142/us.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb http://deb.i.ntnaeem.ir:3142/us.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://deb.i.ntnaeem.ir:3142/us.archive.ubuntu.com/ubuntu/ vivid universe
deb http://deb.i.ntnaeem.ir:3142/us.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://deb.i.ntnaeem.ir:3142/us.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb http://deb.i.ntnaeem.ir:3142/us.archive.ubuntu.com/ubuntu/ vivid multiverse
deb-src http://deb.i.ntnaeem.ir:3142/us.archive.ubuntu.com/ubuntu/ vivid multiverse
@kamcpp
kamcpp / gist:c525d8c864969618f63f
Created November 5, 2015 01:24
APT Source File for apt-cacher
# deb cdrom:[Ubuntu-Server 15.04 _Vivid Vervet_ - Release amd64 (20150422)]/ vivid main restricted
#deb cdrom:[Ubuntu-Server 15.04 _Vivid Vervet_ - Release amd64 (20150422)]/ vivid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://192.168.1.156:3142/us.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://192.168.1.156:3142/us.archive.ubuntu.com/ubuntu/ vivid main restricted
## Major bug fix updates produced after the final release of the
@kamcpp
kamcpp / gist:755ddd48d090313810bb
Created October 12, 2015 22:37
Postfix Restriction Rules
##########################################################################################
# Allow connections from trusted networks only.
#smtpd_client_restrictions = permit_mynetworks, reject
# Don't talk to mail systems that don't know their own hostname.
# With Postfix < 2.3, specify reject_unknown_hostname.
smtpd_helo_restrictions = reject_unknown_helo_hostname
# Don't accept mail from domains that don't exist.
@kamcpp
kamcpp / LHC Queries
Created February 1, 2015 10:47
LHC Queries
SELECT * FROM `lh_msg` where msg like '%فره%' and user_id = 3
---------------------
SELECT * FROM `lh_chat` where id in (select chat_id from lh_msg where msg like '%ادمین%')
@kamcpp
kamcpp / LHC Admin Link
Created January 31, 2015 12:16
LHC Admin Link